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

style: Use 'cls' (not 'self') in class methods #219

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Commits on Aug 28, 2023

  1. style: Use 'cls' (not 'self') in class methods

    There is no `self` when there is no instance. Only the static class
    `cls` means anything in such context. As the linter says:
    
        N804 first argument of a classmethod should be named 'cls'
    adrienverge committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    cbe2b13 View commit details
    Browse the repository at this point in the history