Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bump enum to 3.14 #14021

wants to merge 4 commits into from

Conversation

donBarbos
Copy link
Contributor

No description provided.

This comment has been minimized.

@donBarbos donBarbos marked this pull request as ready for review May 12, 2025 10:50

This comment has been minimized.

Comment on lines 421 to 425
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]]
Copy link
Collaborator

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'>

Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor

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

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