mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-06-01 13:54:23 -04:00
Use inline type hints in handlers/
and rest/
. (#10382)
This commit is contained in:
parent
36dc15412d
commit
98aec1cc9d
43 changed files with 212 additions and 215 deletions
|
@ -52,7 +52,7 @@ class UserDirectoryHandler(StateDeltasHandler):
|
|||
self.search_all_users = hs.config.user_directory_search_all_users
|
||||
self.spam_checker = hs.get_spam_checker()
|
||||
# The current position in the current_state_delta stream
|
||||
self.pos = None # type: Optional[int]
|
||||
self.pos: Optional[int] = None
|
||||
|
||||
# Guard to ensure we only process deltas one at a time
|
||||
self._is_processing = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue