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:
committed by
GitHub
parent
cba3a814c6
commit
fc244bb592
@@ -18,7 +18,6 @@
|
||||
# [This file includes modifications made by New Vector Limited]
|
||||
#
|
||||
#
|
||||
from typing import Tuple
|
||||
|
||||
from twisted.internet.protocol import Protocol
|
||||
from twisted.internet.testing import AccumulatingProtocol, MemoryReactorClock
|
||||
@@ -33,7 +32,7 @@ from tests.utils import checked_cast
|
||||
|
||||
def connect_logging_client(
|
||||
reactor: MemoryReactorClock, client_id: int
|
||||
) -> Tuple[Protocol, AccumulatingProtocol]:
|
||||
) -> tuple[Protocol, AccumulatingProtocol]:
|
||||
# This is essentially tests.server.connect_client, but disabling autoflush on
|
||||
# the client transport. This is necessary to avoid an infinite loop due to
|
||||
# sending of data via the logging transport causing additional logs to be
|
||||
|
||||
Reference in New Issue
Block a user