mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
[minidom] add missing return types (#9917)
This commit is contained in:
@@ -9,8 +9,10 @@ from xml.sax.xmlreader import XMLReader
|
||||
|
||||
_N = TypeVar("_N", bound=Node)
|
||||
|
||||
def parse(file: str | SupportsRead[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None): ...
|
||||
def parseString(string: str | ReadableBuffer, parser: XMLReader | None = None): ...
|
||||
def parse(
|
||||
file: str | SupportsRead[ReadableBuffer | str], parser: XMLReader | None = None, bufsize: int | None = None
|
||||
) -> Document: ...
|
||||
def parseString(string: str | ReadableBuffer, parser: XMLReader | None = None) -> Document: ...
|
||||
def getDOMImplementation(features=None) -> DOMImplementation | None: ...
|
||||
|
||||
class Node(xml.dom.Node):
|
||||
@@ -28,10 +30,10 @@ class Node(xml.dom.Node):
|
||||
def localName(self) -> str | None: ...
|
||||
def __bool__(self) -> Literal[True]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def toxml(self, encoding: str | None = None, standalone: bool | None = None): ...
|
||||
def toxml(self, encoding: str | None = None, standalone: bool | None = None) -> str: ...
|
||||
def toprettyxml(
|
||||
self, indent: str = "\t", newl: str = "\n", encoding: str | None = None, standalone: bool | None = None
|
||||
): ...
|
||||
) -> str: ...
|
||||
else:
|
||||
def toxml(self, encoding: str | None = None): ...
|
||||
def toprettyxml(self, indent: str = "\t", newl: str = "\n", encoding: str | None = None): ...
|
||||
|
||||
Reference in New Issue
Block a user