Skip to content

Commit

Permalink
Add parse method for _ElementTree class (GH-67)
Browse files Browse the repository at this point in the history
  • Loading branch information
macro1 committed Jul 26, 2022
1 parent 5eaa0f8 commit 53d99b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lxml-stubs/etree.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53d99b5

Please sign in to comment.