gds.types¶
Interface¶
Bases: BaseModel
The directional-pair boundary of a Block.
Four port slots organized by direction
forward_in — domain inputs (covariant) forward_out — codomain outputs (covariant) backward_in — backward inputs (contravariant) backward_out — backward outputs (contravariant)
Source code in packages/gds-framework/gds/types/interface.py
TypeDef¶
Bases: BaseModel
A named, constrained type used in spaces and state.
Each TypeDef wraps a Python type with an optional constraint predicate.
check_value() checks both the Python type and the constraint at runtime.
Source code in packages/gds-framework/gds/types/typedef.py
check_value(value)
¶
Check if a value satisfies this type definition.
Tokens¶
Tokenize a signature string into a normalized frozen set of tokens.
Splitting rules (applied in order): 1. Split on ' + ' (the compound-type joiner). 2. Split each part on ', ' (comma-space). 3. Strip whitespace and lowercase each token. 4. Discard empty strings.
Source code in packages/gds-framework/gds/types/tokens.py
Return True if a and b share at least one token.