-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 stub file for xml/dom/xmlbuilder.py #6171
Add stub file for xml/dom/xmlbuilder.py #6171
Conversation
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
The errors in the failing tests are:
Have I done something wrong there? The Also, I included several methods that always raised errors, annotating them as returning |
This comment has been minimized.
This comment has been minimized.
The CI failure looks like a bug to me. It is most likely a bug in mypy, as stubtest uses mypy internally. It might be python/mypy#10661 |
Okay, confirmed mypy bug. Here's the fix: python/mypy#11411 For now, I recommend adding it to stubtest's allowlist here: https://github.com/python/typeshed/blob/master/tests/stubtest_allowlists/py3_common.txt If you then also want to run isort against this PR, CI will be green |
This comment has been minimized.
This comment has been minimized.
🥳 CI is now green -- thanks! |
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.
It seems that everyone somehow forgot about this :)
The PR rises from the dead! |
You need to merge the latest |
Oh, I think I understand how this happened. If it isn't the consequences of my own actions. |
fe3e5f4
to
68d7c6b
Compare
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.
Much better than what was there before.
Thank you for the patient reviews :) |
This comment has been minimized.
This comment has been minimized.
5 similar comments
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.
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
🙌🙌 |
I made a stab at adding stubs for
xml/dom/xmlbuilder.py
(cpython source code here). A little tricky, since documentation is rather thin on the ground, but perhaps an improvement on what's there at the moment?