Implement __str__
This commit is contained in:
parent
93b55cda9b
commit
c410f4c115
@ -49,6 +49,10 @@ class Hierarchy(PathLike):
|
||||
"""Return a string representation of this Hierarchy."""
|
||||
return f"{self.__class__.__name__}('{self._path}')"
|
||||
|
||||
def __str__(self):
|
||||
"""Return a string representation of this Hierarchy."""
|
||||
return str(self._path)
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user