mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:06:02 -04:00
Use inline type hints in http/federation/
, storage/
and util/
(#10381)
This commit is contained in:
parent
3acf85c85f
commit
bdfde6dca1
38 changed files with 149 additions and 161 deletions
|
@ -91,7 +91,7 @@ class StateFilter:
|
|||
Returns:
|
||||
The new state filter.
|
||||
"""
|
||||
type_dict = {} # type: Dict[str, Optional[Set[str]]]
|
||||
type_dict: Dict[str, Optional[Set[str]]] = {}
|
||||
for typ, s in types:
|
||||
if typ in type_dict:
|
||||
if type_dict[typ] is None:
|
||||
|
@ -194,7 +194,7 @@ class StateFilter:
|
|||
"""
|
||||
|
||||
where_clause = ""
|
||||
where_args = [] # type: List[str]
|
||||
where_args: List[str] = []
|
||||
|
||||
if self.is_full():
|
||||
return where_clause, where_args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue