Fixed a whole bunch of MyPy errors

New release of mypy picks up more.
This commit is contained in:
Sybren A. Stüvel
2018-07-10 16:02:14 +02:00
parent 4e1c2d1bbb
commit 38b3e2b55c
7 changed files with 34 additions and 21 deletions
+2
View File
@@ -138,6 +138,8 @@ def _expand_group(block: blendfile.BlendFileBlock):
else:
for child in iterators.listbase(children):
subcoll = child.get_pointer(b'collection')
if subcoll is None:
continue
log.debug('recursing into child collection %s', subcoll.id_name)
yield from _expand_group(subcoll)