-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Bump enum
to 3.14
#14021
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
base: main
Are you sure you want to change the base?
Bump enum
to 3.14
#14021
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
stdlib/inspect.pyi
Outdated
POSITIONAL_ONLY: ClassVar[Literal[0]] | ||
POSITIONAL_OR_KEYWORD: ClassVar[Literal[1]] | ||
VAR_POSITIONAL: ClassVar[Literal[2]] | ||
KEYWORD_ONLY: ClassVar[Literal[3]] | ||
VAR_KEYWORD: ClassVar[Literal[4]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not true, at least not for Python 3.12:
Python 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect
>>> inspect.Parameter.POSITIONAL_ONLY
<_ParameterKind.POSITIONAL_ONLY: 0>
>>> type(inspect.Parameter.POSITIONAL_ONLY)
<enum '_ParameterKind'>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks you, this was an attempt to solve this error. apparently I was too hasty in getting the PR ready for review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect it's because you made enum
import inspect
and that disturbed some import cycle. As you can see from the mypy-primer report, this change is going to cause a lot of issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right because these errors appeared when i added import
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
No description provided.