From be4237f898849c85b1e09833195c3297bd2ab044 Mon Sep 17 00:00:00 2001 From: Juuso Takalainen Date: Fri, 29 Aug 2025 13:53:32 +0300 Subject: [PATCH] doc: fix reference to non-existing method It's confusing that up-to-date documentation (https://www.pymunk.org/en/latest/pymunk.html#pymunk.Poly.collision_type) references add_collision_handler, which seems to be removed (also this isn't found in changelogs! Maybe happened in 7.0.0?) `on_collision` seems to document collision_types --- pymunk/shapes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymunk/shapes.py b/pymunk/shapes.py index df520ac3..0f04aac4 100644 --- a/pymunk/shapes.py +++ b/pymunk/shapes.py @@ -135,7 +135,7 @@ def collision_type(self) -> int: Defaults to 0. - See the :py:meth:`Space.add_collision_handler` function for more + See the :py:meth:`Space.on_collision` function for more information on when to use this property. """ return cp.cpShapeGetCollisionType(self._shape)