Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Feb 19, 2024
1 parent d862532 commit c299452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/torchio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ def normalize_path(path: TypePath):
return Path(path).expanduser().resolve()


def is_iterable(obj: object) -> bool:
def is_iterable(object: Any) -> bool:
try:
iter(obj)
iter(object)
return True
except TypeError:
return False

0 comments on commit c299452

Please sign in to comment.