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

Fix "state" type annotations for tkinter "Canvas.create_*" methods #11257

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

rdesparbes
Copy link
Contributor

Fixes #11256

@AlexWaygood AlexWaygood requested a review from Akuli January 7, 2024 14:30
Copy link
Contributor

github-actions bot commented Jan 7, 2024

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

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

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

Thanks! The annotations probably ended up this way, because many widgets have a state option that accepts "active".

@Akuli Akuli merged commit db80484 into python:main Jan 8, 2024
57 checks passed
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.

"Canvas.create_*" methods have invalid type hints for the "state" parameter
2 participants