Skip to content

Commit

Permalink
make pyright #2
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpadden committed Mar 29, 2024
1 parent 8067c7f commit 9cdd90c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Any, Iterator, Mapping, Union
from typing import TYPE_CHECKING, Any, Iterator, Mapping, Optional, Union

from dagster import (
AssetExecutionContext,
Expand Down Expand Up @@ -102,8 +102,8 @@ def run(
metadata_by_key = context.assets_def.metadata_by_key
first_asset_metadata = next(iter(metadata_by_key.values()))

dlt_source: DltSource | None = first_asset_metadata.get(META_KEY_SOURCE)
dlt_pipeline: Pipeline | None = first_asset_metadata.get(META_KEY_PIPELINE)
dlt_source: Optional[DltSource] = first_asset_metadata.get(META_KEY_SOURCE)
dlt_pipeline: Optional[Pipeline] = first_asset_metadata.get(META_KEY_PIPELINE)

if not dlt_source or not dlt_pipeline:
raise Exception(
Expand Down

0 comments on commit 9cdd90c

Please sign in to comment.