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