summary refs log tree commit diff
path: root/synapse/appservice
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2021-12-02 15:30:05 +0000
committerGitHub <noreply@github.com>2021-12-02 15:30:05 +0000
commit435f04480728c5d982e1a63c1b2777784bf9cd26 (patch)
tree1739f511566d586e12cfacb521eab9dd6e0506bd /synapse/appservice
parent`scripts-dev/sign_json`: support for signing events (#11486) (diff)
downloadsynapse-435f04480728c5d982e1a63c1b2777784bf9cd26.tar.xz
Add type annotations to `tests.storage.test_appservice`. (#11488)
Diffstat (limited to 'synapse/appservice')
-rw-r--r--synapse/appservice/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py

index 6504c6bd3f..f9d3bd337d 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py
@@ -13,6 +13,7 @@ # limitations under the License. import logging import re +from enum import Enum from typing import TYPE_CHECKING, Iterable, List, Match, Optional from synapse.api.constants import EventTypes @@ -27,7 +28,7 @@ if TYPE_CHECKING: logger = logging.getLogger(__name__) -class ApplicationServiceState: +class ApplicationServiceState(Enum): DOWN = "down" UP = "up"