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
@rwbarton Any idea? I found this in our internal code base, haven't come up with a small repro yet. Plain Callable is supposed to mean the same as Callable[..., Any] but in this case it's apparently not the case. I had some code that gave a long list of errors when I used the shorter form. OTOH I had some other code where it worked...
The text was updated successfully, but these errors were encountered:
The old definition of Callable was the type of a function defined as
def f(*args: Any, **kwargs: Any) -> Any: ...
which is not the form of a general function, only one that can accept
an arbitrary number of arguments.
Fixespython#1501.
The old definition of Callable was the type of a function defined as
def f(*args: Any, **kwargs: Any) -> Any: ...
which is not the form of a general function, only one that can accept
an arbitrary number of arguments.
Fixes#1501.
The old definition of Callable was the type of a function defined as
def f(*args: Any, **kwargs: Any) -> Any: ...
which is not the form of a general function, only one that can accept
an arbitrary number of arguments.
Fixes#1501.
@rwbarton Any idea? I found this in our internal code base, haven't come up with a small repro yet. Plain
Callable
is supposed to mean the same asCallable[..., Any]
but in this case it's apparently not the case. I had some code that gave a long list of errors when I used the shorter form. OTOH I had some other code where it worked...The text was updated successfully, but these errors were encountered: