mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 14:10:23 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user