requires()

Contents

requires()#

requires(attr: str) Callable[source]#

Wrapper for methods that require an attribute to be initialized.

Parameters:
attrstr

Name of the required attribute.