phenotypic.abc_.FigureSpec#
- class phenotypic.abc_.FigureSpec(title: str, section: str, controls: dict[str, Control], description: Any, primary: bool, name: str, method: Callable[..., 'go.Figure'], wants_subject: bool, subject_param: str | None, order: int)[source]#
Bases:
objectIntrospectable metadata attached to a
@figuremethod.Author-supplied fields come from the decorator call; the rest are derived by the decorator from the wrapped method’s signature.
- Parameters:
- description#
Optional interpretive block, e.g. a
PanelDescription(author). TypedAnyto keep this module dependency-free.- Type:
Any
- primary#
Marks the figure returned by
FigureProvider.inspect()(author).- Type:
- method#
The wrapped, auto-styled callable (decorator).
- Type:
Callable[…, ‘go.Figure’]
- wants_subject#
Whether the method takes a subject as its first positional parameter (decorator).
- Type:
Methods
__init__Attributes
- description: Any#
- method: Callable[..., 'go.Figure']#