Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Feb 6, 2024
1 parent 8f50626 commit 4a00728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astronomer/providers/core/sensors/astro.py
Original file line number Diff line number Diff line change
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 = dag_runs[0].get("dag_run_id")
self._dag_run_id: 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 4a00728

Please sign in to comment.