mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Update typing_extensions imports in stdlib (#11244)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from collections.abc import Iterable
|
||||
from typing import Any, TypeVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal, TypeVar
|
||||
|
||||
__all__ = ["NodeList", "EmptyNodeList", "StringTypes", "defproperty"]
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
import xml.dom
|
||||
from _typeshed import Incomplete, ReadableBuffer, SupportsRead, SupportsWrite
|
||||
from typing import NoReturn, TypeVar, overload
|
||||
from typing_extensions import Literal, Self
|
||||
from typing import Literal, NoReturn, TypeVar, overload
|
||||
from typing_extensions import Self
|
||||
from xml.dom.minicompat import NodeList
|
||||
from xml.dom.xmlbuilder import DocumentLS, DOMImplementationLS
|
||||
from xml.sax.xmlreader import XMLReader
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
from _typeshed import Incomplete, SupportsRead
|
||||
from collections.abc import Sequence
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import TypeAlias
|
||||
from xml.dom.minidom import Document, DOMImplementation, Element, Text
|
||||
from xml.sax.handler import ContentHandler
|
||||
from xml.sax.xmlreader import XMLReader
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Incomplete, Unused
|
||||
from typing import Any, NoReturn
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Any, Literal, NoReturn
|
||||
from typing_extensions import TypeAlias
|
||||
from urllib.request import OpenerDirector
|
||||
from xml.dom.expatbuilder import ExpatBuilder, ExpatBuilderNS
|
||||
from xml.dom.minidom import Node
|
||||
|
||||
Reference in New Issue
Block a user