Skip to content

Commit

Permalink
Update Utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Doug Hoskisson <[email protected]>
  • Loading branch information
Jouramie and beauxq authored Mar 6, 2024
1 parent 93d0eae commit 97b57df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def __len__(self):


def is_iterable_except_str(obj: object) -> TypeGuard[typing.Iterable[typing.Any]]:
""" `str` and `bytes` and `Iterable`, but that's not what we want """
""" `str` and `bytes` are `Iterable`, but that's not what we want """
if isinstance(obj, (str, bytes)):
return False
return isinstance(obj, typing.Iterable)

0 comments on commit 97b57df

Please sign in to comment.