跳到主要内容

infer_dimension

类型: 函数
领域: 表达式、单位与公差
推荐导入: from cadflow import infer_dimension

签名

def infer_dimension(value: "'ScalarLike'") -> 'Dimension | None'

功能说明

infer_dimension 是 CadFlow 表达式、单位与公差领域的公共函数。

原始 API 说明

Infer and validate an expression's result dimension.

None means the expression uses only legacy variables without unit declarations. Expressions that contain explicit units are validated strictly and cannot mix in legacy variables.

参数

名称类型必需默认值源码说明
value"'ScalarLike'"-源码 Docstring 未单独说明。

返回值

类型: 'Dimension | None'

源码 Docstring 未声明更多返回语义。

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

行为与约束

  • 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。

导入检查

from cadflow import infer_dimension

相关内容