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
| Name | Type | Description |
|---|---|---|
| f | F | The function to be decorated, typically a configuration method on a Scaffold or Flask object. |
Returns
| Type | Description |
|---|---|
F | The decorated function wrapped with a setup state check. |