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
The reason for the complaint is that the callable in l has the argument name (a) specified but the argument x of g has only an argument type, no name. The error message is very confusing and should indicate that the missing callable argument name is the issue (#4530).
Potential workarounds:
Use a covariant container type in cvt / g, as suggested by mypy.
Add an explicit type annotation for _DISPATCH / l.
Include argument names in the function signature (using mypy_extensions.Arg).
Note that the two types in the error message are identical.
When I did
reveal_type(_DISPATCH)
, I got:Here's the source (I'm sure it can be reduced further):
The text was updated successfully, but these errors were encountered: