Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change methods not using its bound instance to staticmethods #4

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

deepsource-autofix[bot]
Copy link
Contributor

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-autofix bot and others added 4 commits August 3, 2023 17:01
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).
@pronoym99 pronoym99 merged commit 735a311 into master Aug 3, 2023
1 check was pending
@pronoym99 pronoym99 deleted the deepsource-autofix-39201323 branch August 3, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant