mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterator, Sequence
|
||||
from typing import Any
|
||||
from xml.etree.ElementTree import Element, ElementTree, ParseError as ParseError, XMLParser as _XMLParser, tostring as tostring
|
||||
@@ -10,7 +9,7 @@ class DefusedXMLParser(_XMLParser):
|
||||
def __init__(
|
||||
self,
|
||||
html=...,
|
||||
target: Incomplete | None = None,
|
||||
target=None,
|
||||
encoding: str | None = None,
|
||||
forbid_dtd: bool = False,
|
||||
forbid_entities: bool = True,
|
||||
|
||||
@@ -1,20 +1,15 @@
|
||||
from _typeshed import Incomplete
|
||||
from xml.dom.minidom import Document
|
||||
|
||||
__origin__: str
|
||||
|
||||
def parse(
|
||||
file,
|
||||
parser: Incomplete | None = None,
|
||||
parser=None,
|
||||
bufsize: int | None = None,
|
||||
forbid_dtd: bool = False,
|
||||
forbid_entities: bool = True,
|
||||
forbid_external: bool = True,
|
||||
) -> Document: ...
|
||||
def parseString(
|
||||
string: str,
|
||||
parser: Incomplete | None = None,
|
||||
forbid_dtd: bool = False,
|
||||
forbid_entities: bool = True,
|
||||
forbid_external: bool = True,
|
||||
string: str, parser=None, forbid_dtd: bool = False, forbid_entities: bool = True, forbid_external: bool = True
|
||||
) -> Document: ...
|
||||
|
||||
Reference in New Issue
Block a user