Skip to content

Commit

Permalink
toposort frozenset workaround (#7793)
Browse files Browse the repository at this point in the history
  • Loading branch information
smackesey committed May 9, 2022
1 parent 8cfa136 commit 742ba2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_modules/dagster/dagster/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def coerce_valid_log_level(log_level: Union[str, int]) -> int:


def toposort(data):
# Workaround a bug in older versions of toposort that choke on frozenset
data = {k: set(v) if isinstance(v, frozenset) else v for k, v in data.items()}
return [sorted(list(level)) for level in toposort_.toposort(data)]


Expand Down

0 comments on commit 742ba2b

Please sign in to comment.