Always return True from xml.dom.minidom.Node.__bool__ (#8480)

This commit is contained in:
Nikita Sobolev
2022-08-04 13:23:34 +03:00
committed by GitHub
parent 0480550fc3
commit bcd770bad3

View File

@@ -2,6 +2,7 @@ import sys
import xml.dom
from _typeshed import Self, SupportsRead
from typing import Any
from typing_extensions import Literal
from xml.dom.xmlbuilder import DocumentLS, DOMImplementationLS
from xml.sax.xmlreader import XMLReader
@@ -22,7 +23,7 @@ class Node(xml.dom.Node):
def lastChild(self) -> Node | None: ...
@property
def localName(self) -> str | None: ...
def __bool__(self) -> bool: ...
def __bool__(self) -> Literal[True]: ...
if sys.version_info >= (3, 9):
def toxml(self, encoding: Any | None = ..., standalone: Any | None = ...): ...
def toprettyxml(self, indent: str = ..., newl: str = ..., encoding: Any | None = ..., standalone: Any | None = ...): ...