diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-12-30 08:09:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 08:09:53 -0500 |
commit | 637282bb5019ce1656001927eea1be46c4854815 (patch) | |
tree | 7e9a9ba64918de5e995241a02054174ced099d75 /synapse/storage/keys.py | |
parent | Doc/move database setup instructions in install md (#8987) (diff) | |
download | synapse-637282bb5019ce1656001927eea1be46c4854815.tar.xz |
Add additional type hints to the storage module. (#8980)
Diffstat (limited to 'synapse/storage/keys.py')
-rw-r--r-- | synapse/storage/keys.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/keys.py b/synapse/storage/keys.py index afd10f7bae..c03871f393 100644 --- a/synapse/storage/keys.py +++ b/synapse/storage/keys.py @@ -17,11 +17,12 @@ import logging import attr +from signedjson.types import VerifyKey logger = logging.getLogger(__name__) @attr.s(slots=True, frozen=True) class FetchKeyResult: - verify_key = attr.ib() # VerifyKey: the key itself - valid_until_ts = attr.ib() # int: how long we can use this key for + verify_key = attr.ib(type=VerifyKey) # the key itself + valid_until_ts = attr.ib(type=int) # how long we can use this key for |