original_docstring: Internal decorator to raise Exception if user does not have a required attribute.
docstring: Internal decorator to raise Exception if user does not have a required attribute.
docstring_tokens: Internal decorator to raise Exception if user does not have a required attribute .
code: def _requires_user_attr(attribute: str):
      """Internal decorator to raise Exception if user does not have a required attribute."""
      def my_wrap(func):
          global _required_user_attrs
          _required_user_attrs.append(str(attribute))
  
          @wraps(func)
          def wrapper(*args, **kwargs):
              return func(*args, **kwargs)
          return wrapper
      return my_wrap
code_tokens: def _requires_user_attr ( attribute : str ) : def my_wrap ( func ) : global _required_user_attrs _required_user_attrs . append ( str ( attribute ) ) @ wraps ( func ) def wrapper ( * args , ** kwargs ) : return func ( * args , ** kwargs ) return wrapper return my_wrap
short_docstring: Internal decorator to raise Exception if user does not have a required attribute.
short_docstring_tokens: Internal decorator to raise Exception if user does not have a required attribute .
comment: """Internal decorator to raise Exception if user does not have a required attribute."""