gil-uav / semantic-image-segmentation

Semantic segmentation of static objects in orthophotos.
MIT License
2 stars 0 forks source link

(PYL-W0201) Attribute defined outside `__init__` #52

Closed vegovs closed 3 years ago

vegovs commented 3 years ago

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/gil-uav/semantic-image-segmentation/issue/PYL-W0201/occurrences/