From 3f13e2dc6676057010ccdf57df776304e8cdef7f Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 15 Dec 2021 23:08:14 +0000 Subject: wip3: eh, good enough --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index 607d9d8..00d0d60 100644 --- a/utils.py +++ b/utils.py @@ -44,7 +44,7 @@ def inbounds(p: Point2D[NumT], a: Point2D[NumT], _b: Optional[Point2D[NumT]] = N b = _b else: b = a - a = cast(Point2D[NumT], Point2D(0, 0)) + a = cast(Point2D[NumT], Point2D(0, 0) if isinstance(a.x, int) else Point2D(0.0, 0.0)) return p.x >= a.x and p.y >= a.y and p.x < b.x and p.y < b.y def adjacent(p: Point2D[int], diagonal: bool = True) -> Iterator[Point2D[int]]: -- cgit v1.2.3-54-g00ecf