(PYL-W0201) Attribute defined outside `__init__`
johnsonjh opened this issue · comments
Jeffrey H. Johnson commented
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 to None
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/
Repo Ranger commented
Jeffrey H. Johnson commented
3rd party / won't fix