From 8d06e13f3bd04bb878799a798df98635e40ebca4 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:42:06 +0100 Subject: [PATCH] mark two parser arguments as being optional --- lxml-stubs/etree.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxml-stubs/etree.pyi b/lxml-stubs/etree.pyi index ed2356c..c9d2ad2 100644 --- a/lxml-stubs/etree.pyi +++ b/lxml-stubs/etree.pyi @@ -484,7 +484,7 @@ def SubElement( def ElementTree( element: _Element = ..., file: _FileSource = ..., - parser: _AnyParser = ..., + parser: Optional[_AnyParser] = ..., ) -> _ElementTree: ... def ProcessingInstruction( target: _AnyStr, text: _AnyStr = ... @@ -509,7 +509,7 @@ def cleanup_namespaces( ) -> None: ... def parse( source: _FileSource, - parser: _AnyParser = ..., + parser: Optional[_AnyParser] = ..., base_url: _AnyStr = ..., ) -> Union[_ElementTree, Any]: ... @overload