@@ -211,7 +211,7 @@ def _get_surface_velocity(self) -> Vec2d:
211211 v = cp .cpShapeGetSurfaceVelocity (self ._shape )
212212 return Vec2d (v .x , v .y )
213213
214- def _set_surface_velocity (self , surface_v : Tuple [float , float ]) -> None :
214+ def _set_surface_velocity (self , surface_v : tuple [float , float ]) -> None :
215215 assert len (surface_v ) == 2
216216 cp .cpShapeSetSurfaceVelocity (self ._shape , surface_v )
217217
@@ -276,12 +276,12 @@ def bb(self) -> BB:
276276 _bb = cp .cpShapeGetBB (self ._shape )
277277 return BB (_bb .l , _bb .b , _bb .r , _bb .t )
278278
279- def point_query (self , p : Tuple [float , float ]) -> PointQueryInfo :
279+ def point_query (self , p : tuple [float , float ]) -> PointQueryInfo :
280280 """Check if the given point lies within the shape.
281281
282282 A negative distance means the point is within the shape.
283283
284- :return: Tuple of (distance, info)
284+ :return: tuple of (distance, info)
285285 :rtype: (float, :py:class:`PointQueryInfo`)
286286 """
287287 assert len (p ) == 2
@@ -298,7 +298,7 @@ def point_query(self, p: Tuple[float, float]) -> PointQueryInfo:
298298 )
299299
300300 def segment_query (
301- self , start : Tuple [float , float ], end : Tuple [float , float ], radius : float = 0
301+ self , start : tuple [float , float ], end : tuple [float , float ], radius : float = 0
302302 ) -> Optional [SegmentQueryInfo ]:
303303 """Check if the line segment from start to end intersects the shape.
304304
@@ -380,7 +380,7 @@ def __init__(
380380 self ,
381381 body : Optional ["Body" ],
382382 radius : float ,
383- offset : Tuple [float , float ] = (0 , 0 ),
383+ offset : tuple [float , float ] = (0 , 0 ),
384384 ) -> None :
385385 """body is the body attach the circle to, offset is the offset from the
386386 body's center of gravity in body local coordinates.
@@ -410,7 +410,7 @@ def radius(self) -> float:
410410 """The Radius of the circle."""
411411 return cp .cpCircleShapeGetRadius (self ._shape )
412412
413- def unsafe_set_offset (self , o : Tuple [float , float ]) -> None :
413+ def unsafe_set_offset (self , o : tuple [float , float ]) -> None :
414414 """Unsafe set the offset of the circle.
415415
416416 .. note::
@@ -441,8 +441,8 @@ class Segment(Shape):
441441 def __init__ (
442442 self ,
443443 body : Optional ["Body" ],
444- a : Tuple [float , float ],
445- b : Tuple [float , float ],
444+ a : tuple [float , float ],
445+ b : tuple [float , float ],
446446 radius : float ,
447447 ) -> None :
448448 """Create a Segment.
@@ -476,7 +476,7 @@ def b(self) -> Vec2d:
476476 return Vec2d (v .x , v .y )
477477
478478 def unsafe_set_endpoints (
479- self , a : Tuple [float , float ], b : Tuple [float , float ]
479+ self , a : tuple [float , float ], b : tuple [float , float ]
480480 ) -> None :
481481 """Set the two endpoints for this segment.
482482
@@ -513,7 +513,7 @@ def radius(self) -> float:
513513 return cp .cpSegmentShapeGetRadius (self ._shape )
514514
515515 def set_neighbors (
516- self , prev : Tuple [float , float ], next : Tuple [float , float ]
516+ self , prev : tuple [float , float ], next : tuple [float , float ]
517517 ) -> None :
518518 """When you have a number of segment shapes that are all joined
519519 together, things can still collide with the "cracks" between the
@@ -534,7 +534,7 @@ class Poly(Shape):
534534 def __init__ (
535535 self ,
536536 body : Optional ["Body" ],
537- vertices : Sequence [Tuple [float , float ]],
537+ vertices : Sequence [tuple [float , float ]],
538538 transform : Optional [Transform ] = None ,
539539 radius : float = 0 ,
540540 ) -> None :
@@ -616,7 +616,7 @@ def radius(self) -> float:
616616
617617 @staticmethod
618618 def create_box (
619- body : Optional ["Body" ], size : Tuple [float , float ] = (10 , 10 ), radius : float = 0
619+ body : Optional ["Body" ], size : tuple [float , float ] = (10 , 10 ), radius : float = 0
620620 ) -> "Poly" :
621621 """Convenience function to create a box with given width and height.
622622
@@ -665,7 +665,7 @@ def create_box_bb(body: Optional["Body"], bb: BB, radius: float = 0) -> "Poly":
665665
666666 return self
667667
668- def get_vertices (self ) -> List [Vec2d ]:
668+ def get_vertices (self ) -> list [Vec2d ]:
669669 """Get the vertices in local coordinates for the polygon.
670670
671671 If you need the vertices in world coordinates then the vertices can be
@@ -696,7 +696,7 @@ def get_vertices(self) -> List[Vec2d]:
696696
697697 def unsafe_set_vertices (
698698 self ,
699- vertices : Sequence [Tuple [float , float ]],
699+ vertices : Sequence [tuple [float , float ]],
700700 transform : Optional [Transform ] = None ,
701701 ) -> None :
702702 """Unsafe set the vertices of the poly.
0 commit comments