summary refs log tree commit diff
path: root/synapse/rest/admin/_base.py
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2021-06-07 16:12:34 +0200
committerGitHub <noreply@github.com>2021-06-07 15:12:34 +0100
commitd558292548178dde785462bbca7f84c06c1e9eda (patch)
tree77f5c08fa6b99e2c05b2526a2dbaa65ffa5407cb /synapse/rest/admin/_base.py
parentDelete completes to-device messages earlier in /sync (#10124) (diff)
downloadsynapse-d558292548178dde785462bbca7f84c06c1e9eda.tar.xz
Add missing type hints to the admin API servlets (#10105)
Diffstat (limited to 'synapse/rest/admin/_base.py')
-rw-r--r--synapse/rest/admin/_base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/admin/_base.py b/synapse/rest/admin/_base.py

index f203f6fdc6..d9a2f6ca15 100644 --- a/synapse/rest/admin/_base.py +++ b/synapse/rest/admin/_base.py
@@ -13,6 +13,7 @@ # limitations under the License. import re +from typing import Iterable, Pattern from synapse.api.auth import Auth from synapse.api.errors import AuthError @@ -20,7 +21,7 @@ from synapse.http.site import SynapseRequest from synapse.types import UserID -def admin_patterns(path_regex: str, version: str = "v1"): +def admin_patterns(path_regex: str, version: str = "v1") -> Iterable[Pattern]: """Returns the list of patterns for an admin endpoint Args: