returns
returns
#
return_spec — the return annotation is the schema a result is stored and loaded with.
RESULT_STEM = 'result'
module-attribute
#
The result subtree per return position: result, or result0… for a tuple.
result_stems(returns)
#
The workspace subtree per return position.
Source code in capturegraph-lib/capturegraph/recipes/calls/returns.py
return_spec(func)
#
The CGType return type(s) declared by func's annotation.
Raises:
| Type | Description |
|---|---|
TypeError
|
If the return annotation is missing, unresolvable, or not
|
Source code in capturegraph-lib/capturegraph/recipes/calls/returns.py
return_types(returns)
#
The declared return types, one per position.
returned_values(returns, result)
#
The body's return as one value per declared position.
Raises:
| Type | Description |
|---|---|
TypeError
|
If a tuple-returning body returned something else. |