Skip to content

Commit 838730a

Browse files
committed
Add nullable CPE
Close #27
1 parent 64baada commit 838730a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
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.security.cpe import Cpe
3+
4+
_nullable_cls = build_nullable(Cpe)
5+
6+
7+
class NullableCpe(_nullable_cls):
8+
9+
def __init__(self, value: str = None):
10+
super().__init__(value)

0 commit comments

Comments
 (0)