pyre.schemata.Component¶
Module Contents¶
-
class
pyre.schemata.Component.Component(protocol, default=default, **kwds)¶ Bases:
pyre.schemata.Schema.SchemaA type declarator for components
-
default¶
-
complaint= could not coerce {0.value!r} into a component¶
-
protocol¶
-
coerce(self, value, **kwds)¶ Attempt to convert {value} into a component class compatible with my protocol
-
string(self, value)¶ Render value as a string that can be persisted for later coercion
-
json(self, value)¶ Generate a JSON representation of {value}
-