Setting the requirepass configuration directive causes the server to require password authentication with the AUTH command before sending other commands. The redis.conf file states that clearly:
Require clients to issue AUTH before processing any other
commands. This might be useful in environments in which you do not trust
others with access to the host running redis-server.
def my_func(obj):
"""
Parameters
----------
obj : MyClass
Returns
-------
None
"""
nested_class = obj.attr # type: MyClass2