Const
Kind: Class
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import Const
Signature
class Const(value: 'float', expr_id: 'str' = <factory>) -> None
Description
Immutable constant node used in the v2 expression graph.
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
value | 'float' | 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 |
|---|---|---|
value | 'float' | 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 Const