Skip to content

Commit 5790968

Browse files
committed
add smin and smax handling
1 parent 90cb73d commit 5790968

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hhd/plugins/settings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ class NumericalSetting(TypedDict):
7676

7777
min: float | None
7878
max: float | None
79+
smin: int | None
80+
smax: int | None
7981
step: int | None
8082

8183
default: float | None
@@ -92,6 +94,8 @@ class IntegerSetting(TypedDict):
9294

9395
min: int | None
9496
max: int | None
97+
smin: int | None
98+
smax: int | None
9599
step: int | None
96100

97101
default: int | None
@@ -286,8 +290,8 @@ def pick_tag(tag, default, a, b):
286290
TYPE_TAGS = {
287291
"multiple": {"options": {}},
288292
"discrete": {"options": []},
289-
"int": {"min": None, "max": None, "step": None, "unit": None},
290-
"float": {"min": None, "max": None, "step": None, "unit": None},
293+
"int": {"min": None, "max": None, "step": None, "unit": None, "smin": None, "smax": None},
294+
"float": {"min": None, "max": None, "step": None, "unit": None, "smin": None, "smax": None},
291295
"custom": {"config": None},
292296
}
293297

0 commit comments

Comments
 (0)