mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:16:07 -04:00
Add type hints to synapse/storage/databases/main/e2e_room_keys.py
(#11549)
This commit is contained in:
parent
0147b3de20
commit
ecfcd9bbbe
6 changed files with 188 additions and 79 deletions
|
@ -59,9 +59,11 @@ StateKey = Tuple[str, str]
|
|||
StateMap = Mapping[StateKey, T]
|
||||
MutableStateMap = MutableMapping[StateKey, T]
|
||||
|
||||
# the type of a JSON-serialisable dict. This could be made stronger, but it will
|
||||
# do for now.
|
||||
# JSON types. These could be made stronger, but will do for now.
|
||||
# A JSON-serialisable dict.
|
||||
JsonDict = Dict[str, Any]
|
||||
# A JSON-serialisable object.
|
||||
JsonSerializable = object
|
||||
|
||||
|
||||
# Note that this seems to require inheriting *directly* from Interface in order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue