Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schrockn committed Aug 24, 2023
1 parent acc6669 commit 1065a2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def call_on_del(self) -> None:

@property
def has_been_accessed(self) -> bool:
return bool(self._resources)
return isinstance(self._resources, Resources)

def get_already_accessed_resources(self) -> Resources:
check.invariant(self.has_been_accessed)
Expand Down

0 comments on commit 1065a2a

Please sign in to comment.