-
-
Notifications
You must be signed in to change notification settings - Fork 32k
ast.MatchStar.name
incorrectly has class-level default value
#134674
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
Comments
GH-134681 is a backport of this pull request to the 3.13 branch. |
|
It looks to me that this is a MyPy issue. |
I think However, reading this did lead me to a real opportunity for improvement: #134718. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
I apologize for my ignorance of most technical terms and the awkward explanation that flows from it.
Minimal, reproducible example
But, is that really a problem?
Ok, but is it a bug?
I'm assuming that design goals include one or more of the following:
(Nevertheless, I am confident there are factors about which I am ignorant.)
Therefore, I compared
ast.MatchStar
toast.Constant
andast.MatchSingleton
:Ask
mypy
to lint the file above, including the output statements:Proposed changes
From
cpython/Parser/Python.asdl
Line 138 in f331d03
To
From
cpython/Lib/ast.py
Lines 154 to 162 in f331d03
To
Changes tested in 3.13.3+ build
After compiling with the above changes, compare:
Appendix: output from Python versions 3.9 to 3.12, and CPython main branch
CPython versions tested on:
3.13, 3.9, 3.10, 3.11, 3.12, CPython main branch
Operating systems tested on:
Windows
Linked PRs
ast.MatchStar.name
class-level default value (gh-134674) #134681The text was updated successfully, but these errors were encountered: