Skip to content

[tkinter] Remove a few type aliases#14742

Merged
Akuli merged 6 commits intopython:mainfrom
donbarbos:tkinter-remove-typealiases
Sep 23, 2025
Merged

[tkinter] Remove a few type aliases#14742
Akuli merged 6 commits intopython:mainfrom
donbarbos:tkinter-remove-typealiases

Conversation

@donbarbos
Copy link
Copy Markdown
Contributor

Inspired by #14631 (comment)

I only got rid of some of the aliases (the simplest ones) to make sure that others supported this action and to test the functionality of this idea.

Inspired by python#14631 (comment)

I only got rid of some of the aliases (the simplest ones) to make sure that others supported this action and to test the functionality of this idea.
@github-actions

This comment has been minimized.

Copy link
Copy Markdown
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!

A few thoughts, mostly about _ScreenUnits. Perhaps we could split the _ScreenUnits stuff into yet another PR? :)

At first I was worried about backwards compatibility in ttkthemes, but then I realized that there is no problem. Standard library stubs are usually updated much later than third-party stubs, and if you use the new ttkthemes stubs with older stdlib tkinter stubs, the new ttkthemes stubs will work.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

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

@Akuli Akuli changed the title [tkinter] Remove few type aliases [tkinter] Remove a few type aliases Sep 23, 2025
Copy link
Copy Markdown
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.

This is great, thanks!

Also, sorry about asking you to split your changes multiple times. As usual, tkinter is surprisingly tricky :)

@Akuli Akuli merged commit 2cc9c16 into python:main Sep 23, 2025
66 checks passed
donbarbos added a commit to donbarbos/typeshed that referenced this pull request Sep 25, 2025
Akuli pushed a commit that referenced this pull request Sep 26, 2025
@donbarbos donbarbos deleted the tkinter-remove-typealiases branch February 25, 2026 04:16
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