fix: sbool converting int stored as string
This commit is contained in:
parent
429f839ea3
commit
efd5c197cb
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ def sbool(x: str) -> Union[bool, Any]:
|
|||
return True
|
||||
elif val in ('false', '0'):
|
||||
return False
|
||||
return bool(x)
|
||||
return x
|
||||
except Exception:
|
||||
return x
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue