Skip to content

Commit

Permalink
Removed deep copies
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Khaustova <[email protected]>
  • Loading branch information
ElenaKhaustova committed Sep 18, 2024
1 parent ae7a271 commit 135cb0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kedro/io/kedro_data_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(

@property
def datasets(self) -> dict[str, Any]:
return copy.deepcopy(self._datasets)
return copy.copy(self._datasets)

@datasets.setter
def datasets(self, value: Any) -> None:
Expand All @@ -90,7 +90,7 @@ def __iter__(self) -> AbstractDataset:
yield from self._datasets.values()

def __getitem__(self, ds_name: str) -> AbstractDataset:
return copy.deepcopy(self.get_dataset(ds_name))
return self.get_dataset(ds_name)

def __setitem__(self, key: str, value: Any) -> None:
msg = "Operation not allowed!"
Expand Down

0 comments on commit 135cb0e

Please sign in to comment.