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

gh-123341: Support tkinter.Event type subcript #123353

Merged
merged 9 commits into from
Sep 1, 2024

Conversation

yowoda
Copy link
Contributor

@yowoda yowoda commented Aug 26, 2024

Adds __class_getitem__ to tkinter.Event and adds tkinter.Event to the list of generic types

Copy link

cpython-cla-bot bot commented Aug 26, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Aug 26, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@Eclips4 Eclips4 changed the title gh-123341: Make tkinter.Event subscriptable gh-123341: Support tkinter.Event type subcript Aug 26, 2024
@terryjreedy
Copy link
Member

Is this the only class in tkinter that needs this treatment?

@yowoda
Copy link
Contributor Author

yowoda commented Aug 26, 2024

Thanks for the review it's a bit late now, will be resolving everything tomorrow.

Is this significant enough to require a news entry? If so, let me know.

I couldn't find any other classes that need to implement this behaviour (in tkinter at least, the stdlib as a whole has plenty), so yeah, that should be the only class.

@terryjreedy
Copy link
Member

Yes, add a news entry

@bedevere-app
Copy link

bedevere-app bot commented Aug 27, 2024

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
@bedevere-app
Copy link

bedevere-app bot commented Aug 27, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Aug 27, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@yowoda
Copy link
Contributor Author

yowoda commented Aug 27, 2024

I have made the requested changes; please review again

@bedevere-app
Copy link

bedevere-app bot commented Aug 27, 2024

Thanks for making the requested changes!

@sobolevn: please review the changes made to this pull request.

@bedevere-app bedevere-app bot requested a review from sobolevn August 27, 2024 10:37
@yowoda
Copy link
Contributor Author

yowoda commented Aug 27, 2024

Looks like tkinter.Event is actually not mentioned in the tkinter docs, should I remove the class reference?

@terryjreedy
Copy link
Member

Our tkinter doc is deficient unless one considers it as incorporating other docs by reference, in which case Event is well documented. Its details are essential for working with events. But that does not help the role linker. Add ! after the first backtick, before tkinter. This suppresses the link attempt. That should fix "WARNING: py:class reference target not found: tkinter.Event [ref.class]". The blurb otherwise looks great to me.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM.

@yowoda
Copy link
Contributor Author

yowoda commented Aug 28, 2024

Should be good to go now

@AlexWaygood AlexWaygood merged commit 42a8189 into python:main Sep 1, 2024
34 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.

7 participants