requires2()

Contents

requires2()#

requires2(attr: str, message: str) Callable[source]#

Wrapper for methods that require an attribute to be initialized.

Parameters:
attrstr

Name of the required attribute.

messagestr

Message in the error.