From 584e18491b8fa659e8cc8d7d44da254c2f562173 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 20 Feb 2022 15:22:02 -0800 Subject: [PATCH] xml.dom.minidom: add Node.__bool__ (#7323) Co-authored-by: hauntsaninja <> --- stdlib/xml/dom/minidom.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/xml/dom/minidom.pyi b/stdlib/xml/dom/minidom.pyi index 356ae4658..d8bcc299b 100644 --- a/stdlib/xml/dom/minidom.pyi +++ b/stdlib/xml/dom/minidom.pyi @@ -22,6 +22,7 @@ class Node(xml.dom.Node): def lastChild(self) -> Node | None: ... @property def localName(self) -> str | None: ... + def __bool__(self) -> bool: ... 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 = ...): ...