8000 xml: improve bytes types by JelleZijlstra · Pull Request #9110 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

xml: improve bytes types #9110

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

Merged
merged 4 commits into from
Nov 11, 2022
Merged

xml: improve bytes types #9110

merged 4 commits into from
Nov 11, 2022

Conversation

JelleZijlstra
Copy link
Member

No description provided.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

def data(self, __data: str) -> None: ...
# tag and attrs are passed to the element_factory, so they could be anything
# depending on what the particular factory supports.
def start(self, __tag: Any, __attrs: dict[Any, Any]) -> Element: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

might be worth keeping the comment, but only changing the type if someone actually complains?

Copy link
Member Author

Choose a reason for hiding this comment

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

The existing type is pretty hard to achieve due to invariance, so I'd rather not keep it.

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit ec4ec33 into python:main Nov 11, 2022
@JelleZijlstra JelleZijlstra deleted the xmlbyttes branch November 11, 2022 04:43
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
0