Skip to content

Commit dc547b4

Browse files
committed
Add nullable_positive_or_zero_int.py
#18
1 parent a968d65 commit dc547b4

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.positive_or_zero_int import PositiveOrZeroInt
3+
4+
_nullable_cls = build_nullable(PositiveOrZeroInt)
5+
6+
7+
class NullablePositiveOrZeroInt(_nullable_cls):
8+
9+
def __init__(self, value: int = None):
10+
super().__init__(value)

0 commit comments

Comments
 (0)