Skip to content

Commit 8d74a35

Browse files
committed
Add nullable_negative_or_zero_int.py
1 parent 7efae4f commit 8d74a35

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pyvalueobjects.abstract.nullablevalueobject import build_nullable
2+
from pyvalueobjects.numbers.negative_or_zero_int import NegativeOrZeroInt
3+
4+
_nullable_cls = build_nullable(NegativeOrZeroInt)
5+
6+
7+
class NullableNegativeOrZeroInt(_nullable_cls):
8+
9+
def __init__(self, value: int = None):
10+
super().__init__(value)

0 commit comments

Comments
 (0)