Remove Python 3.8 exclusive branches (#13772)

This commit is contained in:
Sebastian Rittau
2025-04-02 12:32:50 +02:00
committed by GitHub
parent 27729455a5
commit 977f3007b9
4 changed files with 15 additions and 32 deletions
+3 -8
View File
@@ -1,15 +1,12 @@
import sys
from _typeshed import ReadableBuffer, Unused
from collections.abc import Callable, Mapping
from types import GenericAlias
from typing import Any, AnyStr, Generic, Literal, TypeVar, final, overload
from typing_extensions import Self
from . import _regex
from ._regex_core import *
if sys.version_info >= (3, 9):
from types import GenericAlias
_T = TypeVar("_T")
__version__: str
@@ -569,8 +566,7 @@ class Pattern(Generic[AnyStr]):
) -> _regex.Scanner[bytes]: ...
def __copy__(self) -> Self: ...
def __deepcopy__(self, memo: Unused, /) -> Self: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
@final
class Match(Generic[AnyStr]):
@@ -648,5 +644,4 @@ class Match(Generic[AnyStr]):
def __getitem__(self, key: int | str, /) -> AnyStr | Any: ...
def __copy__(self) -> Self: ...
def __deepcopy__(self, memo: Unused, /) -> Self: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...