Cannot instantiate type "Type[Callable[[int], int]]" [misc] #1346
Unanswered
randolf-scholz
asked this question in
Q&A
Replies: 1 comment 1 reply
-
One could create a Protocol for the first part, but in that case, how do you add the class Proto(Protocol[P]):
__call__: Callable[Concatenate[Tensor, P], Tensor] which doesn't work for other reasons (raises |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to resolve this?
Beta Was this translation helpful? Give feedback.
All reactions