Skip to main content

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

NameTypeDescription
fFThe function to be wrapped. This function is expected to be a method of a class that inherits from Scaffold.

Returns

TypeDescription
FThe original function f after being wrapped with the wrapper_func.