diff options
author | David Robertson <davidr@element.io> | 2021-10-08 15:25:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 14:25:16 +0000 |
commit | 51a5da74ccd383806378b53ee8a09e27a8829f31 (patch) | |
tree | 23b1f1e5aebd931ce9e3faba8e8f301d1f079595 /synapse/storage/util/sequence.py | |
parent | Relax `ignore-missing-imports` for modules that have stubs now and update myp... (diff) | |
download | synapse-51a5da74ccd383806378b53ee8a09e27a8829f31.tar.xz |
Annotate synapse.storage.util (#10892)
Also mark `synapse.streams` as having has no untyped defs Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'synapse/storage/util/sequence.py')
-rw-r--r-- | synapse/storage/util/sequence.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/util/sequence.py b/synapse/storage/util/sequence.py index bb33e04fb1..75268cbe15 100644 --- a/synapse/storage/util/sequence.py +++ b/synapse/storage/util/sequence.py @@ -81,7 +81,7 @@ class SequenceGenerator(metaclass=abc.ABCMeta): id_column: str, stream_name: Optional[str] = None, positive: bool = True, - ): + ) -> None: """Should be called during start up to test that the current value of the sequence is greater than or equal to the maximum ID in the table. @@ -122,7 +122,7 @@ class PostgresSequenceGenerator(SequenceGenerator): id_column: str, stream_name: Optional[str] = None, positive: bool = True, - ): + ) -> None: """See SequenceGenerator.check_consistency for docstring.""" txn = db_conn.cursor(txn_name="sequence.check_consistency") @@ -244,7 +244,7 @@ class LocalSequenceGenerator(SequenceGenerator): id_column: str, stream_name: Optional[str] = None, positive: bool = True, - ): + ) -> None: # There is nothing to do for in memory sequences pass |