1
This commit is contained in:
parent
86aa16574e
commit
83a43bf3da
@ -27,7 +27,7 @@ def is_valid_int(v, **kwargs):
|
||||
|
||||
def is_valid_srt(v, **kwargs):
|
||||
if isinstance(v, str):
|
||||
return v
|
||||
return str(v)
|
||||
return None
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ def is_valid_float(v, **kwargs):
|
||||
|
||||
def is_valid_bool(v, **kwargs):
|
||||
if isinstance(v, bool):
|
||||
return v
|
||||
return bool(v)
|
||||
return None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user