torchcell.paper.ontology_graph.OntologyClass

class OntologyClass(*, name: str, kind: str, lane: str, module: str, doc: str = '', parent: str | None = None, own_fields: list[~torchcell.paper.ontology_graph.OntologyField] = <factory>, inherited_field_count: int = 0, enum_members: list[str] = <factory>, is_abstract: bool = False)[source]

Bases: BaseModel

A pydantic model or enum in the schema, plus its place in the ontology.

property row_count: int

Rows the card body needs (fields for a model, members for an enum).

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].