adrienverge / localstripe

A fake but stateful Stripe server that you can run locally, for testing purposes.
GNU General Public License v3.0
192 stars 59 forks source link

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

Closed adrienverge closed 1 year ago

adrienverge commented 1 year ago

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'