Skip to content

Commit

Permalink
Don't sub-class from object ... superfluous'
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed Jul 8, 2015
1 parent dcf332b commit 8d5ecd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ctapipe/io/obsconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_array_id_for_time( obstime ):
return array_id, array_version


class BaseConfig(object):
class BaseConfig:
pass


Expand Down
2 changes: 1 addition & 1 deletion ctapipe/utils/fitshistogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ['Histogram']


class Histogram(object):
class Histogram:
"""A simple N-dimensional histogram class that can be written or read
from a FITS file.
Expand Down
5 changes: 2 additions & 3 deletions ctapipe/visualization/mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
logger = logging.getLogger(__name__)


class CameraDisplay(object):

"""Camera Display using MatPlotLib
class CameraDisplay:
"""Camera Display using matplotlib.
Parameters
----------
Expand Down
3 changes: 3 additions & 0 deletions docs/development/code-guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ basic guidelines:
added or removed, and the names are fixed. Unlike C/C++ structs,
namedtuples are _immutable_, meaning their data cannot be changed
after they are constructed.

* Classes don't need to sub-class `object`, because we only support Python 3
and new-style classes are the default, i.e. subclassing `object` is superfluous.

0 comments on commit 8d5ecd6

Please sign in to comment.