whiTeLeaf-TL / U1bot

一个令人欢喜的娱乐机器
GNU General Public License v3.0
6 stars 3 forks source link

refactor: change methods not using its bound instance to staticmethods #15

Closed deepsource-autofix[bot] closed 9 months ago

deepsource-autofix[bot] commented 9 months ago

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.