Skip to content

ISSUE-7806: Add missing attributes to FakeInfo #7828

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

Closed
wants to merge 3 commits into from

Conversation

vemel
Copy link

@vemel vemel commented Oct 30, 2019

Goal

Fix ISSUE-7806.

Add fullname and type_vars to FakeInfo so mypy.checkmember will not crash on member with FakeInfo.

Changes

  • Handle fullname, _fullname, type_vars as regular attributes of FakeInfo
  • Add FakeInfo._fullname = 'FakeInfo' attribute (probably should be FakeMember)

@JukkaL
Copy link
Collaborator

JukkaL commented Oct 31, 2019

As discussed in #7806 (comment), the most fundamental issue is the leaking of a FakeInfo to type checking, which should never happen.

@JukkaL
Copy link
Collaborator

JukkaL commented Jun 25, 2020

Closing as the fix doesn't address the root cause and there has been no activity in a long time.

@JukkaL JukkaL closed this Jun 25, 2020
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.

Internal Error: maptype.py: AttributeError: attribute 'type_vars' of 'TypeInfo' undefined
2 participants