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
[1.12 regression] New error on type[memoryView] | type[str] #17942
mypy 1.12.0
Incompatible default for argument "a_type" (default has type "type[memoryview[Any]]", argument has type "type[memoryview[int]] | type[str]")
Your Environment
github action ubuntu various , python various
Mypy command-line flags:
-no flags
Mypy configuration options from mypy.ini (and other config files):
None
Python version used: via github actions
3.8, 3.9, 3.10, 3.11, 3.12 and 3.13
while
"""
a_type: type[memoryview] = memoryview
""""
Works ok!
Activity
[-]New error on type[memoryView] | type[str][/-][+][1.12 regression] New error on type[memoryView] | type[str][/+]Fix type object with type var default in union context
Fix type object with type var default in union context (#17991)
Fix type object with type var default in union context (python#17991)