mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Always return True from xml.dom.minidom.Node.__bool__ (#8480)
This commit is contained in:
@@ -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 = ...): ...
|
||||
|
||||
Reference in New Issue
Block a user