Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenKephart committed May 3, 2024
1 parent 37a50be commit 7b5f20e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import (
TYPE_CHECKING,
AbstractSet,
Any,
Dict,
FrozenSet,
Mapping,
Expand All @@ -19,7 +18,7 @@
from dagster._core.definitions.metadata import MetadataMapping, MetadataValue
from dagster._core.definitions.partition import AllPartitionsSubset
from dagster._model import DagsterModel
from dagster._serdes.serdes import PackableValue, whitelist_for_serdes
from dagster._serdes.serdes import whitelist_for_serdes

if TYPE_CHECKING:
from dagster._core.definitions.declarative_scheduling.scheduling_condition import (
Expand Down Expand Up @@ -212,7 +211,7 @@ class AssetConditionEvaluationState:
previous_tick_evaluation_timestamp: Optional[float]

max_storage_id: Optional[int]
extra_state_by_unique_id: Mapping[str, Any]
extra_state_by_unique_id: Mapping[str, Optional[Union[AssetSubset, Sequence[AssetSubset]]]]

@property
def asset_key(self) -> AssetKey:
Expand All @@ -233,8 +232,8 @@ def create(
# flatten the extra state into a single dict
def _flatten_extra_state(
r: "SchedulingResult",
) -> Mapping[str, PackableValue]:
extra_state: Dict[str, PackableValue] = (
) -> Mapping[str, Optional[Union[AssetSubset, Sequence[AssetSubset]]]]:
extra_state: Dict[str, Optional[Union[AssetSubset, Sequence[AssetSubset]]]] = (
{r.condition_unique_id: r.extra_state} if r.extra_state else {}
)
for child in r.child_results:
Expand Down

0 comments on commit 7b5f20e

Please sign in to comment.