Skip to content

add xml.__all__#13048

Merged
srittau merged 1 commit intopython:mainfrom
tungol:xml
Nov 20, 2024
Merged

add xml.__all__#13048
srittau merged 1 commit intopython:mainfrom
tungol:xml

Conversation

@tungol
Copy link
Copy Markdown
Contributor

@tungol tungol commented Nov 20, 2024

Here's xml.__all__, handled the same way as email.__all__ in #13047.

I waffled on what to do about the existing import of xml.parsers. It's not imported at runtime, so in the end I took it out to be consistent.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just copying runtime here is the right thing to do. In the end, it's the type checkers's duty to copy runtime behavior, not the stubs's duty to hack around it to make it work similar to runtime.

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

Successfully merging this pull request may close these issues.

2 participants