diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2021-12-14 17:46:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 17:46:47 +0000 |
commit | ecfcd9bbbed62f8ca5d42bd8ba02b696e9079573 (patch) | |
tree | 953d3c342445153c29e8c1a2413abac8c82658b0 /synapse/types.py | |
parent | Add missing type hints to `synapse.logging.context` (#11556) (diff) | |
download | synapse-ecfcd9bbbed62f8ca5d42bd8ba02b696e9079573.tar.xz |
Add type hints to `synapse/storage/databases/main/e2e_room_keys.py` (#11549)
Diffstat (limited to 'synapse/types.py')
-rw-r--r-- | synapse/types.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/types.py b/synapse/types.py index fb72f19343..b06979e8e8 100644 --- a/synapse/types.py +++ b/synapse/types.py @@ -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 |