From 67097e58b8b43994e74d73d60b14feb4ec55f941 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:00:08 +0100 Subject: [PATCH] mark two parser arguments as being optional (GH-94) --- 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 a8bde7c..6797994 100644 --- a/lxml-stubs/etree.pyi +++ b/lxml-stubs/etree.pyi @@ -488,7 +488,7 @@ def SubElement( def ElementTree( element: _Element = ..., file: _FileSource = ..., - parser: _AnyParser = ..., + parser: Optional[_AnyParser] = ..., ) -> _ElementTree: ... def ProcessingInstruction( target: _AnyStr, text: _AnyStr = ... @@ -513,7 +513,7 @@ def cleanup_namespaces( ) -> None: ... def parse( source: _FileSource, - parser: _AnyParser = ..., + parser: Optional[_AnyParser] = ..., base_url: _AnyStr = ..., ) -> Union[_ElementTree, Any]: ... @overload