Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ str2bool
Function
str2bool
numpy/distutils/fcompiler/__init__.py:54–57 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
52
return
s
53
54
def
str2bool(s):
55
if
is_string(s):
56
return
strtobool(s)
57
return
bool(s)
58
59
def
is_sequence_of_strings(seq):
60
return
is_sequence(seq) and all_strings(seq)
Callers
nothing calls this directly
Calls
1
is_string
Function · 0.90
Tested by
no test coverage detected