mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 07:15:32 -04:00
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>
This commit is contained in:
parent
797ee7812d
commit
51a5da74cc
8 changed files with 124 additions and 65 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue