Skip to content
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

Add tests for NewType false positives #5542

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

Conversation

colatkinson
Copy link

Type of Changes

Type
πŸ› Bug fix
✨ New feature
πŸ”¨ Refactoring
πŸ“œ Docs

Description

Adds tests for false positives related to typing.NewType. Specifically, in the contexts of member checking and iterability checking.

Note that the fix itself is at pylint-dev/astroid#1301 -- these won't pass until that's merged.

Closes #2296
Closes #3162

@Pierre-Sassoulas Pierre-Sassoulas added the Needs astroid update Needs an astroid update (probably a release too) before being mergable label Dec 17, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Dec 17, 2021
@Pierre-Sassoulas Pierre-Sassoulas added the False Positive 🦟 A message is emitted but nothing is wrong with the code label Dec 17, 2021
@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.14.0, 2.15.0 May 2, 2022
@DanielNoord DanielNoord removed this from the 2.15.0 milestone Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code Needs astroid update Needs an astroid update (probably a release too) before being mergable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no-member false positive from NewType False positive not-an-iterable for typing.NewType
3 participants