Skip to content

Commit

Permalink
dvc: support inheritance in Repo.__repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
Suor committed Jan 30, 2020
1 parent 0eb4e7e commit b4b5781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/repo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def tree(self, tree):
self._reset()

def __repr__(self):
return "Repo: '{root_dir}'".format(root_dir=self.root_dir)
return "{}: '{}'".format(self.__class__.__name__, self.root_dir)

@classmethod
def find_root(cls, root=None):
Expand Down

0 comments on commit b4b5781

Please sign in to comment.