Skip to content

Commit

Permalink
Fix type-ignore comment for typing changes (apache#42656)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored and ellisms committed Nov 13, 2024
1 parent 82a8947 commit 7d54440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/jobs/test_scheduler_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -5552,7 +5552,7 @@ def spy(*args, **kwargs):
def watch_set_state(dr: DagRun, state, **kwargs):
if state in (DagRunState.SUCCESS, DagRunState.FAILED):
# Stop the scheduler
self.job_runner.num_runs = 1 # type: ignore[attr-defined]
self.job_runner.num_runs = 1 # type: ignore[union-attr]
orig_set_state(dr, state, **kwargs) # type: ignore[call-arg]

def watch_heartbeat(*args, **kwargs):
Expand Down

0 comments on commit 7d54440

Please sign in to comment.