Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AttributeError: attribute 'type_vars' of 'TypeInfo' undefined #9081

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
avatar-lavventura opened this issue Jul 1, 2020 · 4 comments
Closed

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Jul 1, 2020

I am using the master mypy. I don't know why but I keep getting followinger error.

❯ mypy end_code.py --show-traceback
eblocbroker/transfer_ownership.py:45: error: INTERNAL ERROR -- Please try using mypy master on Github:
https://mypy.rtfd.io/en/latest/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 0.782
Traceback (most recent call last):
  File "mypy/checkexpr.py", line 3761, in accept
  File "mypy/nodes.py", line 1496, in accept
  File "mypy/checkexpr.py", line 1990, in visit_member_expr
  File "mypy/checkexpr.py", line 2008, in analyze_ordinary_member_access
  File "mypy/checkmember.py", line 126, in analyze_member_access
  File "mypy/checkmember.py", line 143, in _analyze_member_access
  File "mypy/checkmember.py", line 219, in analyze_instance_member_access
  File "mypy/maptype.py", line 20, in map_instance_to_supertype
AttributeError: attribute 'type_vars' of 'TypeInfo' undefined
eblocbroker/transfer_ownership.py:45: : note: use --pdb to drop into pdb
@avatar-lavventura
Copy link
Author

On a subfolder i had __init__.py file. Removing it solved the issue.

@JelleZijlstra
Copy link
Member

hm mypy shouldn't crash though, no matter what you're doing. Do you have a minimal way to reproduce the crash?

@JelleZijlstra JelleZijlstra reopened this Jul 1, 2020
@avatar-lavventura
Copy link
Author

Sorry the repo I was working on was get overwritten, I tried to re-create the problem but I couldn't :-(

I will update you if I can able to re-generate it.

@hauntsaninja
Copy link
Collaborator

Closing since we don't have a repro and we've fixed bugs that could account for this

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

No branches or pull requests

3 participants