Skip to main content

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

NameTypeRequiredDefaultSource description
value'float'yes-Not explicitly described in the source docstring.
expr_id'str'no&lt;factory&gt;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

NameTypeDefault
value'float'required
expr_id'str'factory

Public members

MemberKindSignatureDescription
evaluatemethod(self, bindings: 'Mapping[str, float] | None' = None) -&gt; '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

See also