Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etree._Element.sourceline should have missing 'type:' #93

Open
pfef-to opened this issue Oct 24, 2023 · 0 comments
Open

etree._Element.sourceline should have missing 'type:' #93

pfef-to opened this issue Oct 24, 2023 · 0 comments

Comments

@pfef-to
Copy link

pfef-to commented Oct 24, 2023

In etree.pyi:219 the type definition of sourceline is sourceline = ... # Optional[int], which gives me an error using pylance. It works when changed to sourceline = ... # type: Optional[int]

https://github.com/lxml/lxml-stubs/blob/f0290b545e2c694c66934ec36b6e77b990cceb1e/lxml-stubs/etree.pyi#L219C38-L219C38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant