mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 22:48:21 +00:00
Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9 - https://peps.python.org/pep-0585/ - https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
# [This file includes modifications made by New Vector Limited]
|
||||
#
|
||||
#
|
||||
from typing import Tuple
|
||||
from unittest.mock import AsyncMock, Mock
|
||||
|
||||
from twisted.internet.testing import MemoryReactor
|
||||
@@ -363,7 +362,7 @@ class TestResourceLimitsServerNoticesWithRealRooms(unittest.HomeserverTestCase):
|
||||
|
||||
self.assertTrue(notice_in_room, "No server notice in room")
|
||||
|
||||
def _trigger_notice_and_join(self) -> Tuple[str, str, str]:
|
||||
def _trigger_notice_and_join(self) -> tuple[str, str, str]:
|
||||
"""Creates enough active users to hit the MAU limit and trigger a system notice
|
||||
about it, then joins the system notices room with one of the users created.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user