The-MoonTg-project / Moon-Userbot

A Simple, Fast, Customizable, Ai powered Userbot for Telegram with most easiest installation. Built in python using pyrofork(pyrogram)
GNU General Public License v3.0
18 stars 34 forks source link

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

Closed deepsource-autofix[bot] closed 5 months ago

deepsource-autofix[bot] commented 5 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.

deepsource-io[bot] commented 5 months ago

Here's the code health analysis summary for commits d51929e..74d5f06. View details on DeepSource β†—.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Shell LogoShellβœ… SuccessView Check β†—
DeepSource Python LogoPythonβœ… Success
🎯 4 occurences resolved
View Check β†—

πŸ’‘ If you’re a repository administrator, you can configure the quality gates from the settings.