Skip to content

Commit

Permalink
Fix expected signature in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jan 8, 2024
1 parent 67097e5 commit 918e45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data/test-etree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
main: |
from lxml import etree
element = etree.Element("foo")
reveal_type(element.iterchildren) # N: Revealed type is "def (tag: Union[Union[builtins.str, builtins.bytes, lxml.etree.QName], typing.Collection[Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...]], Any, None] =, *tags: Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...], *, reversed: builtins.bool =) -> typing.Iterator[lxml.etree._Element]"
reveal_type(element.iterchildren) # N: Revealed type is "def (tag: Union[Union[builtins.str, builtins.bytes, lxml.etree.QName], typing.Collection[Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...]], Any, None] =, *tags: Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...], reversed: builtins.bool =) -> typing.Iterator[lxml.etree._Element]"
result = element.iterchildren("my-attr")
reveal_type(result) # N: Revealed type is "typing.Iterator[lxml.etree._Element]"
Expand Down

0 comments on commit 918e45a

Please sign in to comment.