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:
Andrew Ferrazzutti
2025-10-22 16:48:19 -05:00
committed by GitHub
parent cba3a814c6
commit fc244bb592
539 changed files with 4599 additions and 5066 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ import json
import sys
import warnings
from binascii import unhexlify
from typing import TYPE_CHECKING, Awaitable, Callable, Tuple, TypeVar
from typing import TYPE_CHECKING, Awaitable, Callable, TypeVar
import attr
import zope.interface
@@ -102,7 +102,7 @@ class FakeResponse: # type: ignore[misc]
attribute, and didn't support deliverBody until recently.
"""
version: Tuple[bytes, int, int] = (b"HTTP", 1, 1)
version: tuple[bytes, int, int] = (b"HTTP", 1, 1)
# HTTP response code
code: int = 200