Skip to content

tkinter: add **kwargs support to tkinter.Misc.after for 3.14#15720

Merged
JelleZijlstra merged 1 commit into
python:mainfrom
JelleZijlstra:tkinter-after
May 8, 2026
Merged

tkinter: add **kwargs support to tkinter.Misc.after for 3.14#15720
JelleZijlstra merged 1 commit into
python:mainfrom
JelleZijlstra:tkinter-after

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

In Python 3.14, python/cpython#126900 added kwargs support to tkinter.Misc.after.
stubtest missed this because we allowlist the function for a different reason.

Found by Codex along with #15717 (I didn't include it in that PR because I incorrectly convinced myself
this one was more complicated). It also found missing **kwargs support for some asyncio create_task functions,
but we already have issues/PRs about that (e.g. #13687).

In Python 3.14, python/cpython#126900 added kwargs support to `tkinter.Misc.after`.
stubtest missed this because we allowlist the function for a different reason.

Found by Codex along with python#15717 (I didn't include it in that PR because I incorrectly convinced myself
this one was more complicated). It also found missing **kwargs support for some asyncio create_task functions,
but we already have issues/PRs about that (e.g. python#13687).
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

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

@JelleZijlstra JelleZijlstra merged commit 78a12c6 into python:main May 8, 2026
50 checks passed
@JelleZijlstra JelleZijlstra deleted the tkinter-after branch May 8, 2026 14:07
@Akuli
Copy link
Copy Markdown
Collaborator

Akuli commented May 12, 2026

I incorrectly convinced myself this one was more complicated

This is not a bad instinct with tkinter. It is very dynamic, so type annotations for tkinter are usually surprisingly hard to get right.

tkem pushed a commit to tkem/typeshed that referenced this pull request May 17, 2026
…15720)

In Python 3.14, python/cpython#126900 added kwargs support to `tkinter.Misc.after`.
stubtest missed this because we allowlist the function for a different reason.

Found by Codex along with python#15717 (I didn't include it in that PR because I incorrectly convinced myself
this one was more complicated). It also found missing **kwargs support for some asyncio create_task functions,
but we already have issues/PRs about that (e.g. python#13687).
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.

3 participants