Adjusted type hints to support python 3.9.18

This commit is contained in:
Christian Bastian
2024-04-18 14:58:39 -04:00
parent 04f44927d7
commit 6d948c217e

View File

@@ -6,10 +6,17 @@ class Rule:
key: any
value_default: any
value_type: type
value_min: int | float | None
value_max: int | float | None
value_min: any # int | float | None
value_max: any # int | float | None
def __init__(self, key, value_default, value_type: type, value_min: int | float | None = None, value_max: int | float | None = None):
def __init__(
self,
key,
value_default,
value_type: type,
value_min: any = None, # int | float | None
value_max: any = None, # int | float | None
):
self.key = key
self.value_default = value_default
self.value_type = value_type