Implement __str__

This commit is contained in:
Eric Torres 2019-04-16 21:45:45 -07:00
parent 93b55cda9b
commit c410f4c115

View File

@ -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):
"""