We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e149fd commit 04540a6Copy full SHA for 04540a6
src/property_utils/tests/data.py
@@ -15,6 +15,7 @@
15
CompositeUnitConverter,
16
)
17
from property_utils.properties.validated_property import ValidatedProperty
18
+from property_utils.properties.property import Property
19
from property_utils.exceptions.properties.property import PropertyValidationError
20
21
@@ -341,3 +342,10 @@ class PositiveProp(ValidatedProperty):
341
342
def validate_value(self, value: float) -> None:
343
if value <= 0:
344
raise PropertyValidationError
345
+
346
347
+class PropUnit1(Property):
348
+ default_units = Unit1.a
349
350
351
+class PropUnit2(Property): ...
0 commit comments