Skip to main content

setupmethod

Wraps a method to ensure it is only called before the application setup has finished by invoking the internal setup check.

def setupmethod(
f: F
) - > F

Wraps a method to ensure it is only called before the application or blueprint setup is finished.

Parameters

NameTypeDescription
fFThe function to be decorated, typically a configuration method on a Scaffold or Flask object.

Returns

TypeDescription
FThe decorated function wrapped with a setup state check.