gh-92062: inspect.Parameter checks whether name is a keyword#92065
gh-92062: inspect.Parameter checks whether name is a keyword#92065miss-islington merged 3 commits intopython:mainfrom
inspect.Parameter checks whether name is a keyword#92065Conversation
|
I just can't understand why |
There is some pre-existing trailing whitespace in the file (around lines 1648 and 1686). |
Jelle pointed out that this might occur in C functions, and so to avoid breaking any existing (if strange) code we'll only check params which can be called with named arguments.
|
Oh, easy to fix now that I know what's happening! Thanks for the quick response 🤩 (Perhaps the |
|
This seems like it should be uncontroversial enough (famous last words — I'm sure someone is going to show up complaining that they use invalid signature objects as some load-bearing part of their workflow). |
Sorry for making you wait so long. So, for many years we were dynamically generating functions based on interface described in YAML files. With Python 3.9 our tests started to fail. Turns out we had some cases where a parameter with name |
Fixes #92062.
Automerge-Triggered-By: GH:pganssle