gil-uav / semantic-image-segmentation

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

(PYL-R0201) No use of `self` #31

Closed vegovs closed 3 years ago

vegovs commented 3 years ago

Description

The method doesn't use its bound instance. Decorate this method with @staticmethod decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.

Occurrences

There are 3 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/gil-uav/semantic-image-segmentation/issue/PYL-R0201/occurrences/