mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 03:04:09 -04:00
Add missing type hints to the admin API servlets (#10105)
This commit is contained in:
parent
fa1db8f156
commit
d558292548
6 changed files with 48 additions and 40 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue