Type.fromcallable#

classmethod Type.fromcallable(func)#

Return new Type instance from a callable object.

The callable object must use annotations for specifying the types of arguments and return value.