don't rename shape.to_polygons() args
This commit is contained in:
		
							parent
							
								
									e5f28a7a92
								
							
						
					
					
						commit
						2259e7987b
					
				| @ -222,8 +222,8 @@ class Polygon(Shape): | ||||
| 
 | ||||
| 
 | ||||
|     def to_polygons(self, | ||||
|                     _poly_num_points: int = None, | ||||
|                     _poly_max_arclen: float = None, | ||||
|                     poly_num_points: int = None,        # unused | ||||
|                     poly_max_arclen: float = None,      # unused | ||||
|                     ) -> List['Polygon']: | ||||
|         return [copy.deepcopy(self)] | ||||
| 
 | ||||
|  | ||||
| @ -96,8 +96,8 @@ class Text(Shape): | ||||
|         return new | ||||
| 
 | ||||
|     def to_polygons(self, | ||||
|                     _poly_num_points: int = None, | ||||
|                     _poly_max_arclen: float = None, | ||||
|                     poly_num_points: int = None,        # unused | ||||
|                     poly_max_arclen: float = None,      # unused | ||||
|                     ) -> List[Polygon]: | ||||
|         all_polygons = [] | ||||
|         total_advance = 0 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user