From 5554ee294a6b2877f298fd4ac3b6895cde8a0a1c Mon Sep 17 00:00:00 2001 From: TongguangZhang Date: Mon, 2 Sep 2024 01:01:47 -0400 Subject: [PATCH] added pylint ignores for unused variables --- modules/bootcamp/detect_landing_pad.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/bootcamp/detect_landing_pad.py b/modules/bootcamp/detect_landing_pad.py index 62c1ca00..789f0f71 100644 --- a/modules/bootcamp/detect_landing_pad.py +++ b/modules/bootcamp/detect_landing_pad.py @@ -64,9 +64,12 @@ def __init__(self, class_private_create_key: object, model: ultralytics.YOLO) -> Private constructor, use create() method. """ assert class_private_create_key is DetectLandingPad.__create_key, "Use create() method" - + # This will be used later by bootcampers + # pylint: disable=unused-private-member self.__model = model + # pylint: enable=unused-private-member + # pylint: disable=unused-argument, unused-variable def run(self, image: np.ndarray) -> "tuple[list[bounding_box.BoundingBox], np.ndarray]": """ Converts an image into a list of bounding boxes. @@ -116,3 +119,8 @@ def run(self, image: np.ndarray) -> "tuple[list[bounding_box.BoundingBox], np.nd # ============ # ↑ BOOTCAMPERS MODIFY ABOVE THIS COMMENT ↑ # ============ + + # pylint: enable=unused-argument, unused-variable + + +# pylint: enable=too-few-public-methods