You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: attribute 'type_vars' of 'TypeInfo' undefined #9081
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
Activity
avatar-lavventura commentedon Jul 1, 2020
On a subfolder i had
__init__.pyfile. Removing it solved the issue.JelleZijlstra commentedon Jul 1, 2020
hm mypy shouldn't crash though, no matter what you're doing. Do you have a minimal way to reproduce the crash?
avatar-lavventura commentedon Jul 2, 2020
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 commentedon Feb 25, 2022
Closing since we don't have a repro and we've fixed bugs that could account for this