From f462c2806775ff64075821638dd042347849d53e Mon Sep 17 00:00:00 2001 From: Kenzo Lobos-Tsunekawa Date: Tue, 2 Apr 2024 11:19:09 +0900 Subject: [PATCH] chore: attempt to fix pep257 Signed-off-by: Kenzo Lobos-Tsunekawa --- .../sensor_calibration_manager/calibrator_registry.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sensor/sensor_calibration_manager/sensor_calibration_manager/calibrator_registry.py b/sensor/sensor_calibration_manager/sensor_calibration_manager/calibrator_registry.py index 6d13c3b6..714b6fa4 100644 --- a/sensor/sensor_calibration_manager/sensor_calibration_manager/calibrator_registry.py +++ b/sensor/sensor_calibration_manager/sensor_calibration_manager/calibrator_registry.py @@ -39,13 +39,14 @@ def getProjectCalibrators(cls, project_name) -> List: @classmethod def register_calibrator(cls, project_name: str, calibrator_name: str) -> Callable: - """Class method to register implementations of the CalibratorBase class into the internal registry. + """ + Class method to register implementations of the CalibratorBase class into the internal registry. Args: project_name (str): The name of the calibration project. calibrator_name (str): The name of the calibrator. Returns: - The Executor class itself. TODO: write correct + wrapper """ def inner_wrapper(wrapped_class: CalibratorBase) -> CalibratorBase: @@ -61,7 +62,8 @@ def inner_wrapper(wrapped_class: CalibratorBase) -> CalibratorBase: @classmethod def create_calibrator(cls, project_name: str, calibrator_name: str, **kwargs) -> CalibratorBase: - """Create the executor using a factory pattern. + """ + Create the executor using a factory pattern. This method gets the appropriate Executor class from the registry and creates an instance of it, while passing in the parameters