mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 04:04:59 -04:00
Remove redundant types from comments. (#14412)
Remove type hints from comments which have been added as Python type hints. This helps avoid drift between comments and reality, as well as removing redundant information. Also adds some missing type hints which were simple to fill in.
This commit is contained in:
parent
882277008c
commit
d8cc86eff4
55 changed files with 174 additions and 176 deletions
|
@ -169,10 +169,11 @@ class DictionaryCache(Generic[KT, DKT, DV]):
|
|||
if it is in the cache.
|
||||
|
||||
Returns:
|
||||
DictionaryEntry: If `dict_keys` is not None then `DictionaryEntry`
|
||||
will contain include the keys that are in the cache. If None then
|
||||
will either return the full dict if in the cache, or the empty
|
||||
dict (with `full` set to False) if it isn't.
|
||||
If `dict_keys` is not None then `DictionaryEntry` will contain include
|
||||
the keys that are in the cache.
|
||||
|
||||
If None then will either return the full dict if in the cache, or the
|
||||
empty dict (with `full` set to False) if it isn't.
|
||||
"""
|
||||
if dict_keys is None:
|
||||
# The caller wants the full set of dictionary keys for this cache key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue