-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
False positive unsubscriptable-object
#2307
False positive unsubscriptable-object
#2307
Conversation
β¦ev#2239)" This reverts commit 89dfb48.
- Raise an `InferenceError` when there is a `SyntaxError` due to an invalid `TypeVar` name. Closes pylint-dev#2305 Closes pylint-dev/pylint#9069
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2307 +/- ##
=======================================
Coverage 92.85% 92.85%
=======================================
Files 94 94
Lines 11053 11056 +3
=======================================
+ Hits 10263 10266 +3
Misses 790 790
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I'm thinking of adding the test examples from this issue and pylint-dev/pylint#9069 to the Pylint functional tests. |
Co-authored-by: Pierre Sassoulas <[email protected]>
Tests: pylint-dev/pylint#9071 |
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 for the quick work!
Fix a regression in 2.15.7 for ``unsubscriptable-object``. Raise an `InferenceError` when there is a `SyntaxError` due to an invalid `TypeVar` name. This reverts commit 89dfb48. Closes #2305 Closes pylint-dev/pylint#9069 (cherry picked from commit 1f0f2f8)
Fix a regression in 2.15.7 for ``unsubscriptable-object``. Raise an `InferenceError` when there is a `SyntaxError` due to an invalid `TypeVar` name. This reverts commit 89dfb48. Closes #2305 Closes pylint-dev/pylint#9069 (cherry picked from commit 1f0f2f8) Co-authored-by: Mark Byrne <[email protected]>
Type of Changes
Description
unsubscriptable-object
(regression in 2.15.7).InferenceError
if theTypeVar
naming is invalid.Closes #2305