-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-error-reportingHow we report errorsHow we report errorstopic-usability
Description
The name of of the callable argument and the fact that it has a default value are not displayed
in the second error message generated when type checking this example:
from typing import Callable, List
from mypy_extensions import Arg
a: List[Callable[[Arg(int, 'x')], None]]
reveal_type(a) # Revealed type is 'builtins.list[def (x: builtins.int =)]'
a.x # List[Callable[[int], None]] has no attribute "x" <== Only "int"
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-error-reportingHow we report errorsHow we report errorstopic-usability