[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Function type in typing

How could I type a function that returns a generic type? For example, I use
a function that expects another function as an argument. This second
function must return a datatype or a collection. I assume that I could
use *Callable[...,
return type]* and I have no way to specify the return type.

Jonathan Gossage