Package horizons :: Package ext :: Module typing :: Class Callable
[hide private]
[frames] | no frames]

Class Callable

object --+    
     Final --+

Callable type; Callable[[int], str] is a function of (int) -> str.

The subscription syntax must always be used with exactly two values: the argument list and the return type. The argument list must be a list of types; the return type must be a single type.

There is no syntax to indicate optional or keyword arguments, such function types are rarely used as callback types.

Nested Classes [hide private]
Metaclass for Callable.
Instance Methods [hide private]
    Inherited from object
x.__delattr__('name') <==> del
default object formatter
x.__getattribute__('name') <==>
x.__init__(...) initializes x; see help(type(x)) for signature
helper for pickle
helper for pickle
x.__setattr__('name', value) <==> = value
size of object in memory, in bytes
Abstract classes can override this to customize issubclass().
Static Methods [hide private]
    Inherited from Final
a new object with type S, a subtype of T
__new__(self, *args, **kwds)
Class Variables [hide private]
  __args__ = None
  __result__ = None
Properties [hide private]
    Inherited from object
the object's class