Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Jul 10, 2023
1 parent 4f3d094 commit b718fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aleph/sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def enum_as_str(obj: Union[str, Enum]) -> str:
"""
if not isinstance(obj, str):
raise TypeError(f"Unsupported enum type: {type(obj)}")

if isinstance(obj, Enum):
return obj.value

Expand Down

0 comments on commit b718fc0

Please sign in to comment.