change: add docu and test case
This commit is contained in:
1 parent
6cce05b035
commit
2b01e8207e
1 file changed
+2
@@ -358,6 +358,8 @@ def get_bool(value):
|
||||
False
|
||||
>>> get_bool(None)
|
||||
None
|
||||
>>> get_bool('Stream')
|
||||
'Stream'
|
||||
"""
|
||||
if type(value) is bool:
|
||||
return value
|
||||
|
||||
Reference in new issue
Block a user