mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 21:54:55 -04:00
Add missing type hints to non-client REST servlets. (#10817)
Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions.
This commit is contained in:
parent
8c7a531e27
commit
b93259082c
27 changed files with 169 additions and 96 deletions
|
@ -419,7 +419,7 @@ class UserRegisterServlet(RestServlet):
|
|||
self.nonces: Dict[str, int] = {}
|
||||
self.hs = hs
|
||||
|
||||
def _clear_old_nonces(self):
|
||||
def _clear_old_nonces(self) -> None:
|
||||
"""
|
||||
Clear out old nonces that are older than NONCE_TIMEOUT.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue