sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.53k stars 66 forks source link

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

Open TheMythologist opened 2 years ago

TheMythologist commented 2 years ago

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.