Skip to content

Commit

Permalink
added pylint ignores for unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TongguangZhang committed Sep 2, 2024
1 parent a69cb54 commit 5554ee2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/bootcamp/detect_landing_pad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 5554ee2

Please sign in to comment.