setupmethod
No overview available.
def setupmethod(
f: F
) - > F
Wraps a method to ensure that a setup process has finished before the wrapped method is executed. This decorator is used to enforce preconditions related to object initialization or state.
Parameters
| Name | Type | Description |
|---|---|---|
| f | F | The function to be wrapped. This function is expected to be a method of a class that inherits from Scaffold. |
Returns
| Type | Description |
|---|---|
F | The original function f after being wrapped with the wrapper_func. |