Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyflow/adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ def replace(self, other):
self.add(other)

def _create(self, other):
assert other is not None

result = []
if other is None:
return result

if isinstance(other, dict):
other = [it for it in other.items()]

if not isinstance(other, list):
other = [other]

result = []
for o in other:
if isinstance(o, tuple):
if len(o) == 2 and isinstance(o[1], dict):
Expand Down
Loading