lxml / lxml-stubs

Type stubs for the lxml package
Other
43 stars 29 forks source link

Fix return type of `_Element.iter*` methods #70

Closed Wuestengecko closed 2 years ago

Wuestengecko commented 2 years ago

These methods return Iterator objects, not just Iterables. While it's a very subtle (and in most cases unnoticeable) difference, it does fix a false-positive error when using next().

scoder commented 2 years ago

Thanks