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