Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed May 7, 2024
1 parent 0d8d167 commit 50f6cd8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def _handle_sequence_obj(
elif isinstance(list_like_obj, set) or isinstance(list_like_obj, frozenset):
left_enclose_str = f"{type(list_like_obj).__name__}("
right_enclose_str = ")"
list_like_obj = sorted(
list_like_obj,
key=(lambda x: x.name) if (list_like_obj and isinstance(list(list_like_obj)[0], Enum)) else None,
)
list_like_obj = sorted(self._handle_any_obj(obj, None) for obj in list_like_obj)
else:
raise RuntimeError(f"Unhandled type: {type(list_like_obj)}")

Expand Down

0 comments on commit 50f6cd8

Please sign in to comment.