| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| @@ -3751,6 +3738,7 @@ class OptionMenu(Menubutton): | |||
| *values: str, | |||
| # kwarg only from now on | |||
There was a problem hiding this comment.
While we're here: Could we remove this comment? This seems fairly obvious if you know Python.
Sorry, something went wrong.
| *values: str, | ||
| # kwarg only from now on | ||
| command: Callable[[StringVar], object] | None = ..., | ||
| name: str = ..., |
There was a problem hiding this comment.
| name: str = ..., | |
| name: str | None = None, |
Sorry, something went wrong.
There was a problem hiding this comment.
But I just checked: Codex is correct that these were added in 3.14, so we need conditional branches here and in ttk.pyi.
Sorry, something went wrong.
There was a problem hiding this comment.
Good point, thanks for checking!
Sorry, something went wrong.
|
For context I had Codex look at the Python 3.14 What's New too and look for missed changes. I made this draft for now so I could take another look before sending for review. |
Sorry, something went wrong.
There was a problem hiding this comment.
Sorry for the over-eager review. :)
Sorry, something went wrong.
|
Diff from mypy_primer, showing the effect of this PR on open source code: pandas (https://github.com/pandas-dev/pandas)
- pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...") [var-annotated]
|
Sorry, something went wrong.
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).
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.