Skip to content

cv2.mat_wrapper INTERNAL ERROR  #17542

Description

@iurisilvio

Crash Report

My project fails with mypy 1.11.0, but works with 1.10.1.

It is open source, you can check the job failing here.

Traceback

$ mypy . --show-traceback
roboflow-python/lib/python3.11/site-packages/cv2/mat_wrapper/__init__.py:9: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 1.11.0
Traceback (most recent call last):
  File "mypy/checkexpr.py", line 5830, in accept
  File "mypy/nodes.py", line 2028, in accept
  File "mypy/checkexpr.py", line 4270, in visit_index_expr
  File "mypy/checkexpr.py", line 4286, in visit_index_expr_helper
  File "mypy/checkexpr.py", line 4345, in visit_index_with_type
  File "mypy/checkexpr.py", line 5863, in named_type
  File "mypy/checker.py", line 6924, in named_type
  File "mypy/checker.py", line 7048, in lookup_qualified
KeyError: "Failed qualified lookup: 'GenericAlias' (fullname = 'types.GenericAlias')."
roboflow-python/lib/python3.11/site-packages/cv2/mat_wrapper/__init__.py:9: : note: use --pdb to drop into pdb

To Reproduce

I reproduced local too, just run mypy on my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions