Skip to content

Commit

Permalink
fix py3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
elephantum committed Dec 15, 2024
1 parent d405e2f commit a2424b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datapipe/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def __init__(
ds: DataStore,
catalog: Catalog,
pipeline: Pipeline,
executor: Executor | None = None,
executor: Optional[Executor] = None,
):
self.ds = ds
self.catalog = catalog
Expand Down Expand Up @@ -285,7 +285,7 @@ def ingest_data(
self,
table_name: str,
data_df: pd.DataFrame,
now: float | None = None,
now: Optional[float] = None,
) -> ChangeList:
table = self.ds.get_table(table_name)
now = now or time.time()
Expand Down
4 changes: 2 additions & 2 deletions datapipe/step/batch_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ def notify_change_list(
self,
ds: DataStore,
change_list: ChangeList,
now: float | None = None,
run_config: RunConfig | None = None,
now: Optional[float] = None,
run_config: Optional[RunConfig] = None,
) -> None:
now = now or time.time()

Expand Down

0 comments on commit a2424b3

Please sign in to comment.