Skip to content

Commit

Permalink
Item always has result; and open returns the Opener
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Nov 13, 2024
1 parent 52fab4e commit 42eca69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cache_manager/_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def open(self, **kwargs) -> str | IO | dict[str, str | IO] | None:

if self.status == Status.READY.value:

return self._open(**kwargs).get('result', None)
return self._open(**kwargs)


def ready(self):
Expand Down
1 change: 1 addition & 0 deletions cache_manager/_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def __init__(

setattr(self, k, v)

self.result = None
self.set_type()
self.open()
self.extract()
Expand Down

0 comments on commit 42eca69

Please sign in to comment.