diff --git a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py index be9823977807f..57e6464e990c9 100644 --- a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py +++ b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py @@ -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)