From 6a2507a9c2ac12fbdd371f8e9ad7d564f5850b42 Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Thu, 11 Jun 2020 18:16:44 +0200 Subject: [PATCH] added copy for bool --- src/model/data.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/model/data.py b/src/model/data.py index 70332aa..f01543d 100644 --- a/src/model/data.py +++ b/src/model/data.py @@ -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: