torchcell.datamodels.ontology_checks.OptionalTraversal
- class OptionalTraversal(*, lineno: int, chain: str, optional_hop: str)[source]
Bases:
BaseModelAn adapter attribute chain that walks THROUGH a field the schema may null.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].