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):
|
def is_valid_srt(v, **kwargs):
|
||||||
if isinstance(v, str):
|
if isinstance(v, str):
|
||||||
return v
|
return str(v)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ def is_valid_float(v, **kwargs):
|
|||||||
|
|
||||||
def is_valid_bool(v, **kwargs):
|
def is_valid_bool(v, **kwargs):
|
||||||
if isinstance(v, bool):
|
if isinstance(v, bool):
|
||||||
return v
|
return bool(v)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user