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