mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:06:08 -04:00
Use inline type hints in various other places (in synapse/
) (#10380)
This commit is contained in:
parent
c7603af1d0
commit
bf72d10dbf
79 changed files with 329 additions and 336 deletions
|
@ -66,8 +66,8 @@ class EmailPusher(Pusher):
|
|||
|
||||
self.store = self.hs.get_datastore()
|
||||
self.email = pusher_config.pushkey
|
||||
self.timed_call = None # type: Optional[IDelayedCall]
|
||||
self.throttle_params = {} # type: Dict[str, ThrottleParams]
|
||||
self.timed_call: Optional[IDelayedCall] = None
|
||||
self.throttle_params: Dict[str, ThrottleParams] = {}
|
||||
self._inited = False
|
||||
|
||||
self._is_processing = False
|
||||
|
@ -168,7 +168,7 @@ class EmailPusher(Pusher):
|
|||
)
|
||||
)
|
||||
|
||||
soonest_due_at = None # type: Optional[int]
|
||||
soonest_due_at: Optional[int] = None
|
||||
|
||||
if not unprocessed:
|
||||
await self.save_last_stream_ordering_and_success(self.max_stream_ordering)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue