-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add types for xmldiff #14822
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
Add types for xmldiff #14822
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Fails with |
It seems that the lxml project instead recommends to use types-lxml instead: That said, I'm a bit wary to officially depend on a non-typeshed project that uses the |
Okay, but should I use then? If I don't add any subs it fails too :) |
One option is to just alias it for now: ET: TypeAlias = Any # lxml.etree._ElementTree This is the version I'm most comfortable with, considering that |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks mostly good. Two remarks.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
No description provided.