Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+7 -15
View File
@@ -30,12 +30,12 @@ class _ElementBase: ...
class RestrictedElement(_ElementBase):
blacklist: Incomplete
def __iter__(self): ...
def iterchildren(self, tag: Incomplete | None = ..., reversed: bool = ...): ...
def iter(self, tag: Incomplete | None = ..., *tags): ...
def iterdescendants(self, tag: Incomplete | None = ..., *tags): ...
def itersiblings(self, tag: Incomplete | None = ..., preceding: bool = ...): ...
def iterchildren(self, tag=None, reversed: bool = False): ...
def iter(self, tag=None, *tags): ...
def iterdescendants(self, tag=None, *tags): ...
def itersiblings(self, tag=None, preceding: bool = False): ...
def getchildren(self): ...
def getiterator(self, tag: Incomplete | None = ...): ...
def getiterator(self, tag=None): ...
class GlobalParserTLS(threading.local):
parser_config: Incomplete
@@ -46,16 +46,8 @@ class GlobalParserTLS(threading.local):
def getDefaultParser(): ...
def check_docinfo(elementtree, forbid_dtd: bool = False, forbid_entities: bool = True) -> None: ...
def parse(
source,
parser: Incomplete | None = ...,
base_url: Incomplete | None = ...,
forbid_dtd: bool = ...,
forbid_entities: bool = ...,
): ...
def fromstring(
text, parser: Incomplete | None = ..., base_url: Incomplete | None = ..., forbid_dtd: bool = ..., forbid_entities: bool = ...
): ...
def parse(source, parser=None, base_url=None, forbid_dtd: bool = False, forbid_entities: bool = True): ...
def fromstring(text, parser=None, base_url=None, forbid_dtd: bool = False, forbid_entities: bool = True): ...
XML = fromstring