Skip to content

Commit eee50fe

Browse files
author
Sylvain MARIE
committed
Fixed issue with classes created with no validators
1 parent d235e28 commit eee50fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vtypes/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ def init_vtype(cls):
196196
# create the associated validator
197197
if len(_vs) > 0:
198198
cls._validator = VTypeValidator(cls, _vs, help_msg=cls.__help_msg__, error_type=cls.__error_type__)
199+
else:
200+
cls._validator = None
199201

200202
def __call__(cls, *args, **kwargs):
201203
"""

0 commit comments

Comments
 (0)