Bases: atom.catom.Member
A value which allows objects of a given type or types.
Values will be tested using the PyObject_TypeCheck C API call. This call is equivalent to type(obj) in cls.mro(). It is less flexible but faster than Instance. Use Instance when allowing heterogenous values and Typed when the value type is explicit.
The value of a Typed may be set to None
Initialize an Typed.
Parameters : | kind : type
args : tuple, optional
kwargs : dict, optional
factory : callable, optional
|
---|
Bases: atom.typed.Typed
A Typed which delays resolving the type definition.
The first time the value is accessed or modified, the type will be resolved and the forward typed will behave identically to a normal typed.
Initialize a ForwardTyped.
Called to retrieve the default value.
This will resolve and instantiate the type. It will then update the internal default and validate handlers to behave like a normal typed member.