-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
crashtopic-disallow-anyThe disallow-any-* family of flagsThe disallow-any-* family of flagstopic-typed-dict
Description
Crash report
Mypy 1.7.0 crashes when importing the most recent version of types_aiobotocore_s3
(2.7.0).
To reproduce:
I have the following file:
# test.py
import types_aiobotocore_s3
I'm getting a Mypy crash when running the following command:
mypy --show-traceback --disallow-any-unimported test.py
Getting same crash on mypy master branch.
Traceback
/opt/virtualenvs/cmd-N7MVwD3X-py3.11/lib/python3.11/site-packages/types_aiobotocore_s3/type_defs.pyi:565: 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.7.0
Traceback (most recent call last):
File "mypy/semanal.py", line 6525, in accept
File "mypy/nodes.py", line 1308, in accept
File "mypy/semanal.py", line 2855, in visit_assignment_stmt
File "mypy/semanal.py", line 3152, in analyze_typeddict_assign
File "mypy/semanal_typeddict.py", line 359, in check_typeddict
File "mypy/semanal_typeddict.py", line 460, in parse_typeddict_args
File "mypy/messages.py", line 1745, in unimported_type_becomes_any
File "mypy/messages.py", line 2714, in format_type
File "mypy/messages.py", line 2731, in format_type_bare
File "mypy/messages.py", line 2486, in format_type_inner
File "mypy/types.py", line 3074, in get_proper_type
TypeError: mypy.types.ProperType object expected; got mypy.types.RequiredType
/opt/virtualenvs/cmd-N7MVwD3X-py3.11/lib/python3.11/site-packages/types_aiobotocore_s3/type_defs.pyi:565: : note: use --pdb to drop into pdb
Your Environment
- Mypy version used:
1.7.0
- Mypy command-line flags:
--show-traceback --disallow-any-unimported
- Mypy configuration options from
mypy.ini
(and other config files): None - Python version used: 3.11.6
- Operating system and version: Docker image
python:3.11.6-slim-bullseye
miikka
Metadata
Metadata
Assignees
Labels
crashtopic-disallow-anyThe disallow-any-* family of flagsThe disallow-any-* family of flagstopic-typed-dict