Skip to content

Commit

Permalink
Fix repr of Resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Aug 23, 2024
1 parent e0beaa6 commit 10c3e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiron_snippets/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def __init__(self, resource_paths, module, *subdirs):
def __repr__(self):
inner = repr(self._resource_paths)
inner += f", {repr(self._module)}"
inner += ", ".join(repr(s) for s in self._subdirs)
if len(self._subdirs) > 0:
inner += ", " + ", ".join(repr(s) for s in self._subdirs)
return f"{type(self).__name__}({inner})"

def _search(self, name):
Expand Down

0 comments on commit 10c3e00

Please sign in to comment.