Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete, SupportsWrite
from collections.abc import Iterator, Mapping
from typing_extensions import Final
from typing import Final
BIG_ENDIAN_PLATFORM: bool
P: Final = 1

View File

@@ -1,6 +1,6 @@
from _typeshed import ConvertibleToInt
from typing import ClassVar, overload
from typing_extensions import Literal, Self
from typing import ClassVar, Literal, overload
from typing_extensions import Self
from netaddr.core import DictDotLookup
from netaddr.ip import IPAddress

View File

@@ -1,4 +1,4 @@
from typing_extensions import Literal
from typing import Literal
AF_INET: Literal[2]
AF_INET6: Literal[10]

View File

@@ -1,8 +1,8 @@
from _typeshed import ConvertibleToInt, Incomplete, Unused
from abc import abstractmethod
from collections.abc import Iterable, Iterator
from typing import SupportsInt, overload
from typing_extensions import Literal, Self, SupportsIndex, TypeAlias
from typing import Literal, SupportsIndex, SupportsInt, overload
from typing_extensions import Self, TypeAlias
from netaddr.core import DictDotLookup
from netaddr.strategy.ipv6 import ipv6_verbose

View File

@@ -1,7 +1,6 @@
from collections.abc import Iterable, Sequence
from re import Pattern
from typing import ClassVar
from typing_extensions import Literal
from typing import ClassVar, Literal
AF_LINK: Literal[48]
width: Literal[48]

View File

@@ -1,7 +1,6 @@
from collections.abc import Iterable, Sequence
from re import Pattern
from typing import ClassVar
from typing_extensions import Literal
from typing import ClassVar, Literal
AF_EUI64: Literal[64]
width: Literal[64]

View File

@@ -1,7 +1,7 @@
from _typeshed import Unused
from collections.abc import Iterable, Sequence
from socket import AddressFamily
from typing_extensions import Literal
from typing import Literal
from netaddr.core import INET_PTON as INET_PTON, ZEROFILL as ZEROFILL

View File

@@ -1,6 +1,5 @@
from collections.abc import Iterable, Sequence
from typing import ClassVar
from typing_extensions import Final, Literal
from typing import ClassVar, Final, Literal
from netaddr.fbsocket import AF_INET6