Update typing_extensions imports in stdlib (#11244)

Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
Sebastian Rittau
2024-01-05 17:15:19 +01:00
committed by GitHub
parent b6eaadcfe5
commit 53a8193d64
214 changed files with 365 additions and 430 deletions

View File

@@ -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"]

View File

@@ -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

View File

@@ -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

View File

@@ -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