Skip to content

Change methods not using its bound instance to staticmethods#29

Open
deepsource-runner[bot] wants to merge 2 commits into
masterfrom
deepsource-autofix-99ebb986
Open

Change methods not using its bound instance to staticmethods#29
deepsource-runner[bot] wants to merge 2 commits into
masterfrom
deepsource-autofix-99ebb986

Conversation

@deepsource-runner
Copy link
Copy Markdown

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).
This commit fixes the style issues introduced in 57e6301 according to the output
from Black and ISort.

Details:
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.

1 participant