mirror of
https://github.com/nqrduck/nqrduck-spectrometer.git
synced 2024-09-19 14:00:35 +00:00
Linting.
This commit is contained in:
parent
db3269351e
commit
4984a15001
1 changed files with 5 additions and 2 deletions
|
@ -84,6 +84,7 @@ class Setting(QObject):
|
||||||
|
|
||||||
class NumericalSetting(Setting):
|
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.
|
It can additionally have a minimum and maximum value.
|
||||||
"""
|
"""
|
||||||
def __init__(self, name: str, description: str, default, min_value = None, max_value = None ) -> None:
|
def __init__(self, name: str, description: str, default, min_value = None, max_value = None ) -> None:
|
||||||
|
@ -95,6 +96,8 @@ class NumericalSetting(Setting):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
description (str): The description of the setting.
|
description (str): The description of the setting.
|
||||||
|
min_value: The minimum value of the setting.
|
||||||
|
max_value: The maximum value of the setting.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: The description of the setting with the limits.
|
str: The description of the setting with the limits.
|
||||||
|
|
Loading…
Reference in a new issue