torchcell.provenance.contract_spec

contract_spec(cls: ClassDef) → ContractSpec[source]

Extract the contract-relevant surface of a schema class from its AST.