From 53d99b56efed5f7f3b47c4a6210192210db8308f Mon Sep 17 00:00:00 2001 From: Micah Denbraver Date: Mon, 25 Jul 2022 23:39:17 -0700 Subject: [PATCH] Add parse method for _ElementTree class (GH-67) --- lxml-stubs/etree.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lxml-stubs/etree.pyi b/lxml-stubs/etree.pyi index 78535e4..c140cb5 100644 --- a/lxml-stubs/etree.pyi +++ b/lxml-stubs/etree.pyi @@ -241,6 +241,12 @@ class _ElementTree: def iter( self, tag: Optional[_TagSelector] = ..., *tags: _TagSelector ) -> Iterable[_Element]: ... + def parse( + self, + source: _FileSource, + parser: Optional[XMLParser] = ..., + base_url: Optional[_AnyStr] = ..., + ) -> _Element: ... def write( self, file: _FileSource,