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:
Eric Eastwood 2024-06-24 10:15:15 -05:00
parent b1b4231ccb
commit 87fac19fde

View file

@ -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