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 regression tests for inference bug repros #4387

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nelfin
Copy link
Contributor

@nelfin nelfin commented Apr 21, 2021

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in
    doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

Type of Changes

Type
🐛 Bug fix

Related Issue

nelfin added a commit to nelfin/astroid that referenced this pull request Apr 22, 2021
Ref pylint-dev/pylint#4083. Ref pylint-dev/pylint#4387. When used in a
nodes.Subscript, an existing inference_tip was set for Name nodes
matching called type. However, when this name was redefined this led to
false-positive typecheck errors in pylint such as invalid-sequence-index
(see pylint-dev/pylint#4083 and pylint-dev/pylint#4387)
nelfin added a commit to nelfin/astroid that referenced this pull request Apr 22, 2021
Ref pylint-dev/pylint#4083. Ref pylint-dev/pylint#4387. When used in a
nodes.Subscript, an existing inference_tip was set for Name nodes
matching called type. However, when this name was redefined this led to
false-positive typecheck errors in pylint such as invalid-sequence-index
(see pylint-dev/pylint#4083 and pylint-dev/pylint#4387)
nelfin added a commit to nelfin/astroid that referenced this pull request May 2, 2021
Ref pylint-dev/pylint#4083. Ref pylint-dev/pylint#4387. When used in a
nodes.Subscript, an existing inference_tip was set for Name nodes
matching called type. However, when this name was redefined this led to
false-positive typecheck errors in pylint such as invalid-sequence-index
due to the argument being inferred as builtins.type and inference_tip
preventing any further inference.
Pierre-Sassoulas pushed a commit to pylint-dev/astroid that referenced this pull request May 2, 2021
Ref pylint-dev/pylint#4083. Ref pylint-dev/pylint#4387. When used in a
nodes.Subscript, an existing inference_tip was set for Name nodes
matching called type. However, when this name was redefined this led to
false-positive typecheck errors in pylint such as invalid-sequence-index
due to the argument being inferred as builtins.type and inference_tip
preventing any further inference.
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the fix/2.8.x-regression-tests branch from a406b17 to 76dc276 Compare May 6, 2022 08:18
@Pierre-Sassoulas
Copy link
Member

I rebased on the latest main and opened #6521 to merge the commit that is passing right now. It look like the other two are still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants