requires2()# requires2(attr: str, message: str) → Callable[source]# Wrapper for methods that require an attribute to be initialized. Parameters: attrstrName of the required attribute. messagestrMessage in the error.