argo0n / NograBot

Discord.py bot written by Argon#0002
GNU General Public License v3.0
2 stars 1 forks source link

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

Closed argo0n closed 3 years ago

argo0n 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 is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/argo0n/NograBot/issue/PYL-R0201/occurrences/

argo0n commented 3 years ago

Fixed with commit df8708e2a7791d4e9d47fa1014bc0ef3dab54fa1

argo0n commented 3 years ago

Wait i closed the wrong issue

argo0n commented 3 years ago

No occurence found