mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Update typing_extensions imports in stdlib (#11244)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -2,8 +2,8 @@ from collections.abc import Iterable, Iterator
|
||||
from email.errors import HeaderParseError, MessageDefect
|
||||
from email.policy import Policy
|
||||
from re import Pattern
|
||||
from typing import Any
|
||||
from typing_extensions import Final, Self
|
||||
from typing import Any, Final
|
||||
from typing_extensions import Self
|
||||
|
||||
WSP: Final[set[str]]
|
||||
CFWS_LEADER: Final[set[str]]
|
||||
|
||||
@@ -13,8 +13,8 @@ from email._header_value_parser import (
|
||||
)
|
||||
from email.errors import MessageDefect
|
||||
from email.policy import Policy
|
||||
from typing import Any, ClassVar, Protocol
|
||||
from typing_extensions import Literal, Self
|
||||
from typing import Any, ClassVar, Literal, Protocol
|
||||
from typing_extensions import Self
|
||||
|
||||
class BaseHeader(str):
|
||||
# max_count is actually more of an abstract ClassVar (not defined on the base class, but expected to be defined in subclasses)
|
||||
|
||||
@@ -5,8 +5,8 @@ from email.contentmanager import ContentManager
|
||||
from email.errors import MessageDefect
|
||||
from email.header import Header
|
||||
from email.policy import Policy
|
||||
from typing import Any, Protocol, TypeVar, overload
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Any, Literal, Protocol, TypeVar, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
__all__ = ["Message", "EmailMessage"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user