mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 07:44:48 -04:00
Use inline type hints in handlers/
and rest/
. (#10382)
This commit is contained in:
parent
36dc15412d
commit
98aec1cc9d
43 changed files with 212 additions and 215 deletions
|
@ -83,7 +83,7 @@ class SamlHandler(BaseHandler):
|
|||
self.unstable_idp_brand = None
|
||||
|
||||
# a map from saml session id to Saml2SessionData object
|
||||
self._outstanding_requests_dict = {} # type: Dict[str, Saml2SessionData]
|
||||
self._outstanding_requests_dict: Dict[str, Saml2SessionData] = {}
|
||||
|
||||
self._sso_handler = hs.get_sso_handler()
|
||||
self._sso_handler.register_identity_provider(self)
|
||||
|
@ -386,10 +386,10 @@ def dot_replace_for_mxid(username: str) -> str:
|
|||
return username
|
||||
|
||||
|
||||
MXID_MAPPER_MAP = {
|
||||
MXID_MAPPER_MAP: Dict[str, Callable[[str], str]] = {
|
||||
"hexencode": map_username_to_mxid_localpart,
|
||||
"dotreplace": dot_replace_for_mxid,
|
||||
} # type: Dict[str, Callable[[str], str]]
|
||||
}
|
||||
|
||||
|
||||
@attr.s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue