object
PYL-R0205 7instMatrixDict = {}
8
9
10class InstMatrix(object): 11 @property
12 def matrix(self):
13 return self._matrix
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"""