Skip to content

Commit de80a8b

Browse files
committed
Add nullable strings
#19
1 parent c42cc80 commit de80a8b

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.strings.string import String
3+
4+
_nullable_cls = build_nullable(String)
5+
6+
7+
class NullableString(_nullable_cls):
8+
9+
def __init__(self, value: str = None):
10+
super().__init__(value)

0 commit comments

Comments
 (0)