Skip to content

Commit f772ded

Browse files
committed
improve docs
1 parent a24f93e commit f772ded

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymunk/shape_filter.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ def rejects_collision(self, other: "ShapeFilter") -> bool:
122122
123123
>>> ShapeFilter().rejects_collision(ShapeFilter())
124124
False
125-
>>> ShapeFilter(group=1).rejects_collision(ShapeFilter())
125+
>>> ShapeFilter(group=1).rejects_collision(ShapeFilter(group=2))
126126
False
127127
>>> ShapeFilter(group=1).rejects_collision(ShapeFilter(group=1))
128128
True
129129
130130
131+
Categories and Masks::
132+
131133
>>> default = ShapeFilter()
132134
>>> default.rejects_collision(default)
133135
False

0 commit comments

Comments
 (0)