Skip to content

Commit

Permalink
More sensible __repr__ for ArchiveOperations
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Jun 11, 2023
1 parent b44b24f commit b5b7023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datalad_next/archive_operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def __init__(self, location: Any, *, cfg: ConfigManager | None = None):
def __str__(self) -> str:
return f'{self.__class__.__name__}({self._location})'

def __repr__(self) -> str:
return \
f'{self.__class__.__name__}({self._location}, cfg={self._cfg!r})'

@property
def cfg(self) -> ConfigManager:
"""ConfigManager given to the constructor, or the session default"""
Expand Down

0 comments on commit b5b7023

Please sign in to comment.