requires()# requires(attr: str) → Callable[source]# Wrapper for methods that require an attribute to be initialized. Parameters: attrstrName of the required attribute.