From 4984a15001deb6b8ba41663821a1681ffa1ec9e0 Mon Sep 17 00:00:00 2001 From: jupfi Date: Wed, 17 Apr 2024 18:05:17 +0200 Subject: [PATCH] Linting. --- src/nqrduck_spectrometer/settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/nqrduck_spectrometer/settings.py b/src/nqrduck_spectrometer/settings.py index 9a3d127..4528b79 100644 --- a/src/nqrduck_spectrometer/settings.py +++ b/src/nqrduck_spectrometer/settings.py @@ -83,7 +83,8 @@ class Setting(QObject): return widget class NumericalSetting(Setting): - """ A setting that is a numerical value. + """A setting that is a numerical value. + It can additionally have a minimum and maximum value. """ def __init__(self, name: str, description: str, default, min_value = None, max_value = None ) -> None: @@ -91,10 +92,12 @@ class NumericalSetting(Setting): super().__init__(name, self.description_limit_info(description, min_value, max_value), default) def description_limit_info(self, description: str, min_value, max_value) -> str: - """ Updates the description with the limits of the setting if there are any. + """Updates the description with the limits of the setting if there are any. Args: description (str): The description of the setting. + min_value: The minimum value of the setting. + max_value: The maximum value of the setting. Returns: str: The description of the setting with the limits.