diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2021-06-07 16:12:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 15:12:34 +0100 |
commit | d558292548178dde785462bbca7f84c06c1e9eda (patch) | |
tree | 77f5c08fa6b99e2c05b2526a2dbaa65ffa5407cb /synapse/rest/admin/_base.py | |
parent | Delete completes to-device messages earlier in /sync (#10124) (diff) | |
download | synapse-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.py | 3 |
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: |