sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Refactor suggestion: `class foo(object):` into `class foo`

Open TheMythologist opened this issue 3 years ago • 0 comments

Issue description or question

Not sure about your stance on implicit vs explicit declaration in Python, but defining a class via

class foo(object):
...

is the same as

class foo:
...

in python 3. Note that there is a difference in the above declarations for Python 2.

TheMythologist avatar Apr 29 '22 09:04 TheMythologist