Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Feb 7, 2024
1 parent 4a00728 commit cad8ba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astronomer/providers/core/sensors/astro.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import datetime
import time
from typing import Any
from typing import Any, cast

from airflow.exceptions import AirflowException, AirflowSkipException
from airflow.sensors.base import BaseSensorOperator, PokeReturnValue
Expand Down Expand Up @@ -62,7 +62,7 @@ def poke(self, context: Context) -> bool | PokeReturnValue:
if dag_runs is None or len(dag_runs) == 0:
self.log.info(f"No dag-runs found for dag-id {self.external_dag_id}")
return True
self._dag_run_id: str = dag_runs[0]["dag_run_id"]
self._dag_run_id = cast(str, dag_runs[0]["dag_run_id"])
if self.external_task_id is not None:
task_instance = hook.get_task_instance(
self.external_dag_id, self._dag_run_id, self.external_task_id
Expand Down

0 comments on commit cad8ba6

Please sign in to comment.