Skip to content

Conversation

@donBarbos
Copy link
Contributor

No description provided.

@github-actions

This comment has been minimized.

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

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

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 9cba086 into python:main May 24, 2025
64 checks passed
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