Skip to content

Commit

Permalink
Static check fixes (#33462)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5ee1bcb)
  • Loading branch information
ferruzzi authored and ephraimbuddy committed Aug 28, 2023
1 parent f5ea787 commit 00fe546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def __init__(
template_searchpath = [template_searchpath]
self.template_searchpath = template_searchpath
self.template_undefined = template_undefined
self.last_loaded = timezone.utcnow()
self.last_loaded: datetime = timezone.utcnow()
self.safe_dag_id = dag_id.replace(".", "__dot__")
self.max_active_runs = max_active_runs
if self.timetable.active_runs_limit is not None:
Expand Down Expand Up @@ -620,8 +620,8 @@ def __init__(

# To keep it in parity with Serialized DAGs
# and identify if DAG has on_*_callback without actually storing them in Serialized JSON
self.has_on_success_callback = self.on_success_callback is not None
self.has_on_failure_callback = self.on_failure_callback is not None
self.has_on_success_callback: bool = self.on_success_callback is not None
self.has_on_failure_callback: bool = self.on_failure_callback is not None

self._access_control = DAG._upgrade_outdated_dag_access_control(access_control)
self.is_paused_upon_creation = is_paused_upon_creation
Expand Down

0 comments on commit 00fe546

Please sign in to comment.