Skip to content

Commit f71530a

Browse files
authored
Add _ElementTree.iterfind() and _ElementTree.getelementpath() (GH-69)
Fixes #65 Fixes #66
1 parent c6aa772 commit f71530a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lxml-stubs/etree.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,14 @@ class _ElementTree:
238238
self, path: str, namespaces: Optional[_NSMapArg] = ...
239239
) -> List["_Element"]: ...
240240
def getpath(self, element: _Element) -> str: ...
241+
def getelementpath(self, element: _Element) -> str: ...
241242
def getroot(self) -> _Element: ...
242243
def iter(
243244
self, tag: Optional[_TagSelector] = ..., *tags: _TagSelector
244245
) -> Iterable[_Element]: ...
246+
def iterfind(
247+
self, path: str, namespaces: Optional[_NSMapArg] = ...
248+
) -> Iterator["_Element"]: ...
245249
def parse(
246250
self,
247251
source: _FileSource,

0 commit comments

Comments
 (0)