Skip to content

Commit 98d5ff0

Browse files
committed
Merge remote-tracking branch 'origin/te-imports' into te-imports
2 parents 4d6e269 + 9506bba commit 98d5ff0

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

stdlib/xml/dom/pulldom.pyi

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from _typeshed import Incomplete, Unused
33
from collections.abc import MutableSequence, Sequence
44
from typing import Final, Literal, NoReturn
55
from typing_extensions import Self
6-
from xml.dom.minidom import Comment, Document, DOMImplementation, Element, ProcessingInstruction, Text, TypeAlias
6+
from xml.dom.minidom import Document, Element, TypeAlias
77
from xml.sax import _SupportsReadClose
88
from xml.sax.handler import ContentHandler
99
from xml.sax.xmlreader import AttributesImpl, AttributesNSImpl, Locator, XMLReader
@@ -17,19 +17,10 @@ PROCESSING_INSTRUCTION: Final = "PROCESSING_INSTRUCTION"
1717
IGNORABLE_WHITESPACE: Final = "IGNORABLE_WHITESPACE"
1818
CHARACTERS: Final = "CHARACTERS"
1919

20-
_NSName: TypeAlias = tuple[str | None, str]
21-
_DocumentFactory: TypeAlias = DOMImplementation | None
20+
_NSName: TypeAlias = ...
21+
_DocumentFactory: TypeAlias = ...
2222

23-
_Event: TypeAlias = (
24-
tuple[Literal["START_ELEMENT"], Element]
25-
| tuple[Literal["END_ELEMENT"], Element]
26-
| tuple[Literal["COMMENT"], Comment]
27-
| tuple[Literal["START_DOCUMENT"], Document]
28-
| tuple[Literal["END_DOCUMENT"], Document]
29-
| tuple[Literal["PROCESSING_INSTRUCTION"], ProcessingInstruction]
30-
| tuple[Literal["IGNORABLE_WHITESPACE"], Text]
31-
| tuple[Literal["CHARACTERS"], Text]
32-
)
23+
_Event: TypeAlias = ...
3324

3425
class PullDOM(ContentHandler):
3526
document: Document | None

0 commit comments

Comments
 (0)