No need to subclass 'object' in python3

This commit is contained in:
jan 2017-08-12 19:30:31 -07:00
parent 6cc6556e8a
commit 0a7c26bb08
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ from .utils import rotation_matrix_2d, vector2
__author__ = 'Jan Petykiewicz'
class Pattern(object):
class Pattern:
"""
2D layout consisting of some set of shapes and references to other Pattern objects
(via SubPattern). Shapes are assumed to inherit from .shapes.Shape or provide equivalent

View File

@ -19,7 +19,7 @@ normalized_shape_tuple = Tuple[Tuple,
DEFAULT_POLY_NUM_POINTS = 24
class Shape(object, metaclass=ABCMeta):
class Shape(metaclass=ABCMeta):
"""
Abstract class specifying functions common to all shapes.
"""

View File

@ -15,7 +15,7 @@ from .utils import is_scalar, rotation_matrix_2d, vector2
__author__ = 'Jan Petykiewicz'
class SubPattern(object):
class SubPattern:
"""
SubPattern provides basic support for nesting Pattern objects within each other, by adding
offset, rotation, scaling, and associated methods.