Closed ElenaKhaustova closed 2 months ago
Similarly to printing datasets two approaches were implemented:
__repr__()
method for _FrozenDatasets
and DataCatalog
based on the implementation __repr__()
for dataset with aadded top-level keys - datastets' names. Since __str__
method is not implemented __repr__()
is called when converting object to string, so we have the same results when print(obj)
, obj
.
The non-indented version was preferred to the indented, closing #3992
Description
Parent ticket: https://github.com/kedro-org/kedro/issues/3913 Blocked by: https://github.com/kedro-org/kedro/issues/3980
Implement
__repr__
forDataCatalog
for better catalog representation and printing.Context
https://github.com/kedro-org/kedro/issues/3913#issue-2330910213 https://github.com/kedro-org/kedro/issues/1721
Possible Implementation
AbstractDataset
pretty printing: https://github.com/kedro-org/kedro/issues/3980__repr__
forDataCatalog
based on dataset's__repr__