Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Formatting fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
t1user committed Dec 7, 2023
1 parent 145120e commit 949cb0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ib_insync/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def tree(obj):
elif isinstance(obj, dict):
return {k: tree(v) for k, v in obj.items()}
elif isnamedtupleinstance(obj):
return {obj.__class__.__name__: {f: tree(getattr(obj, f)) for f in obj._fields}}
return {obj.__class__.__name__: {
f: tree(getattr(obj, f)) for f in obj._fields}}
elif isinstance(obj, (list, tuple, set)):
return [tree(i) for i in obj]
elif is_dataclass(obj):
Expand Down

0 comments on commit 949cb0c

Please sign in to comment.