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

Merged
deepsource-autofix[bot] merged 1 commits from deepsource-autofix-29fa619a into master 2025-12-01 03:23:46 +00:00
deepsource-autofix[bot] commented 2025-12-01 03:22:31 +00:00 (Migrated from github.com)

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.

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](https://docs.python.org/3/library/functions.html#staticmethod).
deepsource-io[bot] commented 2025-12-01 03:22:42 +00:00 (Migrated from github.com)

Here's the code health analysis summary for commits 4770c21..73f677d. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython Failure
4 occurences introduced
🎯 23 occurences resolved
View Check ↗
DeepSource Docker LogoDocker SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.
<div><p>Here's the code health analysis summary for commits <code>4770c21..73f677d</code>. <a href="https://app.deepsource.com/gh/Sudo-Ivan/reticulum-meshchatX/run/3e5e5ef5-f2de-4a16-a527-fd8f03ccdaa6/">View details on DeepSource</a>&nbsp;↗.</p><h3>Analysis Summary</h3><table><thead><tr><th>Analyzer</th><th>Status</th><th>Summary</th><th>Link</th></tr></thead><tbody><tr><td><img src="https://static.deepsource.com/analyzer_logos/python.svg" alt="DeepSource Python Logo" width="16px" height="16px"/><strong>Python</strong></td><td><span>❌&nbsp;</span><span>Failure</span></td><td><div>❗ 4 occurences introduced</div><div>🎯 23 occurences resolved</div></td><td><a href="https://app.deepsource.com/gh/Sudo-Ivan/reticulum-meshchatX/run/3e5e5ef5-f2de-4a16-a527-fd8f03ccdaa6/python/">View Check</a>&nbsp;↗</td></tr><tr><td><img src="https://static.deepsource.com/analyzer_logos/docker.svg" alt="DeepSource Docker Logo" width="16px" height="16px"/><strong>Docker</strong></td><td><span>✅&nbsp;</span><span>Success</span></td><td></td><td><a href="https://app.deepsource.com/gh/Sudo-Ivan/reticulum-meshchatX/run/3e5e5ef5-f2de-4a16-a527-fd8f03ccdaa6/docker/">View Check</a>&nbsp;↗</td></tr></tbody></table><hr/><blockquote><div>💡 If you’re a repository administrator, you can configure the quality gates from the <a href="https://app.deepsource.com/gh/Sudo-Ivan/reticulum-meshchatX/settings/reporting">settings</a>.</div></blockquote></div>
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RNS-Things/reticulum-meshchatX#20