Skip to content

Commit 1b79944

Browse files
committed
Ok this will fix sphinx links
Surely this was the issue * pygorithm/geometry/rect2.py - change :py:method to :py:meth for method links
1 parent 6f75406 commit 1b79944

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygorithm/geometry/rect2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _find_intersection_rects(cls, rect1, rect2, find_mtv = True):
215215
Find the intersection between two rectangles.
216216
217217
Not intended for direct use. See
218-
:py:method:`.find_intersection`
218+
:py:meth:`.find_intersection`
219219
220220
:param rect1: first rectangle
221221
:type rect1: :class:`pygorithm.geometry.rect2.Rect2`
@@ -315,7 +315,7 @@ def _find_intersection_rect_poly(cls, rect, poly, offset, find_mtv = True):
315315
Find the intersection between a rect and polygon.
316316
317317
Not intended for direct use. See
318-
:py:method:`.find_intersection`
318+
:py:meth:`.find_intersection`
319319
320320
:param rect: rectangle
321321
:type rect: :class:`pygorithm.geometry.rect2.Rect2`
@@ -336,7 +336,7 @@ def _find_intersection_poly_rect(cls, poly, offset, rect, find_mtv = True):
336336
Find the intersection between a polygon and rect.
337337
338338
Not intended for direct use. See
339-
:py:method:~`pygorithm.geometry.rect2.Rect2.find_intersection`
339+
:py:meth:~`pygorithm.geometry.rect2.Rect2.find_intersection`
340340
341341
:param poly: polygon
342342
:type poly: :class:`pygorithm.geometry.polygon2.Polygon2`
@@ -377,7 +377,7 @@ def find_intersection(cls, *args, **kwargs):
377377
False, the first argument is assumed to be a Polygon2. If you want to
378378
use a compatible rectangle class for which this check would fail, you
379379
can call
380-
:py:method:`._find_intersection_rect_poly`
380+
:py:meth:`._find_intersection_rect_poly`
381381
directly or pass the polygon first and invert the resulting mtv (if
382382
one is found). If two unnamed arguments are provided, they are assumed
383383
to be both rects without further checks.

0 commit comments

Comments
 (0)