Expr
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import Expr
Signature
class Expr(op: 'str', args: 'Tuple[ScalarExpr, ...]', expr_id: 'str' = <factory>) -> None
Description
Derived scalar expression node built from one or more operands.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
op | 'str' | yes | - | Not explicitly described in the source docstring. |
args | 'Tuple[ScalarExpr, ...]' | yes | - | Not explicitly described in the source docstring. |
expr_id | 'str' | no | <factory> | Not explicitly described in the source docstring. |
Returns
Type: None
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Data fields
| Name | Type | Default |
|---|---|---|
op | 'str' | required |
args | 'Tuple[ScalarExpr, ...]' | required |
expr_id | 'str' | factory |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
evaluate | method | (self, bindings: 'Mapping[str, float] | None' = None) -> 'float' | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import Expr