From d19cc7536e790653b9493ae9f828e42e04d237b9 Mon Sep 17 00:00:00 2001 From: Stan Soldatov Date: Wed, 18 Dec 2024 04:44:27 +0100 Subject: [PATCH] Linter updates. --- maps4fs/generator/grle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maps4fs/generator/grle.py b/maps4fs/generator/grle.py index 78ccca6..27b47e9 100644 --- a/maps4fs/generator/grle.py +++ b/maps4fs/generator/grle.py @@ -84,7 +84,7 @@ def previews(self) -> list[str]: """ return [] - # pylint: disable=R0801 + # pylint: disable=R0801, R0914 def _add_farmlands(self) -> None: """Adds farmlands to the InfoLayer PNG file.""" @@ -139,7 +139,7 @@ def _add_farmlands(self) -> None: cv2.fillPoly(image, [field_np], field_id) # type: ignore # Add the field to the farmlands XML. - farmland = ET.SubElement(farmlands_xml, "farmland") + farmland = ET.SubElement(farmlands_xml, "farmland") # type: ignore farmland.set("id", str(field_id)) farmland.set("priceScale", "1") farmland.set("npcName", "FORESTER")