Defining an instance attribute outside __init__ affects the readability of code. It is expected to find all the attributes an instance may have by reading its __init__ method. If there is a need to initialize attribute via sub-initialization methods, it is recommended to assign attributes to None in the init …
Occurrences
There are 6 occurrences of this issue in the repository.
Description
Defining an instance attribute outside
__init__
affects the readability of code. It is expected to find all the attributes an instance may have by reading its__init__
method. If there is a need to initialize attribute via sub-initialization methods, it is recommended to assign attributes toNone
in the init …Occurrences
There are 6 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Communications/rfc2217-gateway/issue/PYL-W0201/occurrences/