added copy for bool
This commit is contained in:
parent
b24af95d5d
commit
6a2507a9c2
|
@ -15,7 +15,12 @@ def copy(parent):
|
|||
elif type(parent) is list:
|
||||
return [copy(i) for i in parent]
|
||||
|
||||
elif type(parent) is int or type(parent) is float or type(parent) is str or parent is None:
|
||||
elif type(parent) is int or \
|
||||
type(parent) is float or \
|
||||
type(parent) is str or \
|
||||
type(parent) is bool or \
|
||||
parent is None:
|
||||
|
||||
return parent
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user