From 00fcc16038499e805dd60a909f0e2ecb30a5cadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Thu, 23 Feb 2023 09:54:52 +0100 Subject: [PATCH] Ignore mypy false positive --- pcbdraw/renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbdraw/renderer.py b/pcbdraw/renderer.py index bf600c2..7486f53 100644 --- a/pcbdraw/renderer.py +++ b/pcbdraw/renderer.py @@ -417,7 +417,7 @@ def f(plan: RenderAction, substrate: Image.Image, board: Image.Image) \ for rId, row in enumerate(npBoard): for cId, elem in enumerate(row): fPix = np.array([int(x) for x in elem]) - distance = np.linalg.norm(fPix - pixel) + distance = np.linalg.norm(fPix - pixel) # type: ignore if distance < 20: ImageDraw.floodfill(board, (cId, rId), (0, 0, 0, 0), thresh=30)