Skip to content

How to return Callable containing generic paramter? #1491

Answered by tamuhey
tamuhey asked this question in Q&A

You must be logged in to vote

I noticed that simply adding Callable[[T], T] works, but aliasing F = Callable[[T],T] doesn't work.

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@erictraut

@erictraut

Answer selected by tamuhey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants