Instance attribute attribute_name defined outside __init__
The idea behind this message is for the sake of readability. We expect to find all the attributes an instance may have by reading its __init__ method. You may still want to split initialization into other methods though. In such case, you can simply assign attributes to None (with a bit of documentation) in the … Read more