diff --git a/masque/pattern.py b/masque/pattern.py index b187b9e..1883f5d 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -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 diff --git a/masque/shapes/shape.py b/masque/shapes/shape.py index cacac44..c12a58b 100644 --- a/masque/shapes/shape.py +++ b/masque/shapes/shape.py @@ -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. """ diff --git a/masque/subpattern.py b/masque/subpattern.py index 8b389b7..c45a4d9 100644 --- a/masque/subpattern.py +++ b/masque/subpattern.py @@ -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.