-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Pylint crashes with an invalid TypeVar definition #8802
Labels
Crash 💥
A bug that makes pylint crash
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
typing
Milestone
Comments
yilei
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Jun 26, 2023
jacobtylerwalls
added
Crash 💥
A bug that makes pylint crash
typing
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Jun 26, 2023
Thanks for the report! |
mbyrnepr2
added a commit
to mbyrnepr2/astroid
that referenced
this issue
Jul 6, 2023
I've pushed a potential fix for this. I think it isn't an invalid definition per se. Python and mypy are ok with it and in the case of mypy, it points out that the argument name does not match the variable name, which is what Pylint should do also. |
mbyrnepr2
added a commit
to mbyrnepr2/astroid
that referenced
this issue
Jul 13, 2023
mbyrnepr2
added a commit
to pylint-dev/astroid
that referenced
this issue
Jul 17, 2023
github-actions bot
pushed a commit
to pylint-dev/astroid
that referenced
this issue
Jul 17, 2023
Closes pylint-dev/pylint#8802 (cherry picked from commit 89dfb48)
Pierre-Sassoulas
pushed a commit
to pylint-dev/astroid
that referenced
this issue
Jul 17, 2023
…peVar` call. (#2254) * Fix a crash when inferring a `typing.TypeVar` call. (#2239) Closes pylint-dev/pylint#8802 (cherry picked from commit 89dfb48) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Mark Byrne <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Crash 💥
A bug that makes pylint crash
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
typing
Bug description
Example code:
Configuration
No response
Command used
Pylint output
Expected behavior
It should not crash.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: