Replace Incomplete | None = None in third party stubs (#14063)

This commit is contained in:
Sebastian Rittau
2025-05-15 21:37:43 +02:00
committed by GitHub
parent acc51542c9
commit 126768408a
488 changed files with 2259 additions and 4044 deletions
+1 -2
View File
@@ -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,
+2 -7
View File
@@ -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: ...