mirror of
https://github.com/element-hq/synapse
synced 2024-07-04 09:53:32 +00:00
Fix lints
See https://github.com/element-hq/synapse/pull/17320#discussion_r1647701997 ``` synapse/federation/federation_server.py:677: error: Cannot determine type of "_join_rate_per_room_limiter" [has-type] synapse/federation/federation_server.py:720: error: Cannot determine type of "_join_rate_per_room_limiter" [has-type] ```
This commit is contained in:
parent
b1b4231ccb
commit
87fac19fde
|
@ -31,10 +31,12 @@ else:
|
|||
from pydantic import Extra
|
||||
|
||||
from synapse.events import EventBase
|
||||
from synapse.handlers.relations import BundledAggregations
|
||||
from synapse.types import JsonDict, JsonMapping, StreamToken, UserID
|
||||
from synapse.types.rest.client import SlidingSyncBody
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from synapse.handlers.relations import BundledAggregations
|
||||
|
||||
|
||||
class ShutdownRoomParams(TypedDict):
|
||||
"""
|
||||
|
@ -197,7 +199,7 @@ class SlidingSyncResult:
|
|||
initial: bool
|
||||
required_state: List[EventBase]
|
||||
timeline_events: List[EventBase]
|
||||
bundled_aggregations: Optional[Dict[str, BundledAggregations]]
|
||||
bundled_aggregations: Optional[Dict[str, "BundledAggregations"]]
|
||||
is_dm: bool
|
||||
stripped_state: Optional[List[JsonDict]]
|
||||
prev_batch: StreamToken
|
||||
|
|
Loading…
Reference in a new issue