Skip to content

Commit 53d99b5

Browse files
authored
Add parse method for _ElementTree class (GH-67)
1 parent 5eaa0f8 commit 53d99b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lxml-stubs/etree.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ class _ElementTree:
241241
def iter(
242242
self, tag: Optional[_TagSelector] = ..., *tags: _TagSelector
243243
) -> Iterable[_Element]: ...
244+
def parse(
245+
self,
246+
source: _FileSource,
247+
parser: Optional[XMLParser] = ...,
248+
base_url: Optional[_AnyStr] = ...,
249+
) -> _Element: ...
244250
def write(
245251
self,
246252
file: _FileSource,

0 commit comments

Comments
 (0)