File .deepsource.toml
not found in the default branch of the repository root. Please refer to the docs.
object
PYL-R0205 8DEFAULT_FROM_EMAIL = settings.DEFAULT_FROM_EMAIL
9
10
11class UserService(object):12 def __init__(self, User):
13 self.User = User
14
The class is inheriting from object
, which is implicit under Python 3 , hence can be safely removed from bases.
Not preferred:
class Foo(object):
"""Foo bar baz"""
Preferred:
class Foo:
"""Foo bar baz"""