Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ _cast_boolean
Function
_cast_boolean
st2common/st2common/util/casts.py:45–51 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
43
44
45
def
_cast_boolean(x):
46
x = _cast_none(x)
47
48
if
isinstance(x, six.string_types):
49
return
ast.literal_eval(x.capitalize())
50
51
return
x
52
53
54
def
_cast_integer(x):
Callers
nothing calls this directly
Calls
1
_cast_none
Function · 0.85
Tested by
no test coverage detected