Skip to content

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

Closed

Description

@avatar-lavventura

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

  1. avatar-lavventura commented on Jul 1, 2020

    @avatar-lavventura
    Author

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

  2. JelleZijlstra commented on Jul 1, 2020

    @JelleZijlstra
    Member

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

  3. avatar-lavventura commented on Jul 2, 2020

    @avatar-lavventura
    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.

  4. hauntsaninja commented on Feb 25, 2022

    @hauntsaninja
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions