Function type in typing

Jonathan Gossage jgossage at gmail.com
Wed Jul 8 19:17:14 EDT 2020


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


More information about the Python-list mailing list