No need to subclass 'object' in python3
This commit is contained in:
		
							parent
							
								
									6cc6556e8a
								
							
						
					
					
						commit
						0a7c26bb08
					
				| @ -19,7 +19,7 @@ from .utils import rotation_matrix_2d, vector2 | |||||||
| __author__ = 'Jan Petykiewicz' | __author__ = 'Jan Petykiewicz' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Pattern(object): | class Pattern: | ||||||
|     """ |     """ | ||||||
|     2D layout consisting of some set of shapes and references to other Pattern objects |     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 |      (via SubPattern). Shapes are assumed to inherit from .shapes.Shape or provide equivalent | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ normalized_shape_tuple = Tuple[Tuple, | |||||||
| DEFAULT_POLY_NUM_POINTS = 24 | DEFAULT_POLY_NUM_POINTS = 24 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Shape(object, metaclass=ABCMeta): | class Shape(metaclass=ABCMeta): | ||||||
|     """ |     """ | ||||||
|     Abstract class specifying functions common to all shapes. |     Abstract class specifying functions common to all shapes. | ||||||
|     """ |     """ | ||||||
|  | |||||||
| @ -15,7 +15,7 @@ from .utils import is_scalar, rotation_matrix_2d, vector2 | |||||||
| __author__ = 'Jan Petykiewicz' | __author__ = 'Jan Petykiewicz' | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class SubPattern(object): | class SubPattern: | ||||||
|     """ |     """ | ||||||
|     SubPattern provides basic support for nesting Pattern objects within each other, by adding |     SubPattern provides basic support for nesting Pattern objects within each other, by adding | ||||||
|      offset, rotation, scaling, and associated methods. |      offset, rotation, scaling, and associated methods. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user