mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-18 23:39:12 -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
|
@ -171,7 +171,7 @@ class CasHandler:
|
|||
|
||||
# Iterate through the nodes and pull out the user and any extra attributes.
|
||||
user = None
|
||||
attributes = {} # type: Dict[str, List[Optional[str]]]
|
||||
attributes: Dict[str, List[Optional[str]]] = {}
|
||||
for child in root[0]:
|
||||
if child.tag.endswith("user"):
|
||||
user = child.text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue