Fix Python errors reported by mypy

This commit fixes Python errors and warnings reported by static type checking
with mypy.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2020-04-10 14:17:15 +02:00
commit 952bf4a4e1
9 changed files with 15 additions and 13 deletions

View file

@ -55,7 +55,7 @@ class StringTree: # export
self.content = rhs.content
for name, c in rhs.children.items():
if not name in self.children.keys():
slog(DEBUG, "{}: adding new child: ".format(str(self), str(c)))
slog(DEBUG, "{}: adding new child: {}".format(str(self), str(c)))
self.children[name] = c
else:
self.children[name].__add_children(c)