uranusjr commented on code in PR #35392:
URL: https://github.com/apache/airflow/pull/35392#discussion_r1384378570


##########
airflow/models/dag.py:
##########
@@ -451,7 +452,7 @@ def __init__(
         sla_miss_callback: None | SLAMissCallback | list[SLAMissCallback] = 
None,
         default_view: str = airflow_conf.get_mandatory_value("webserver", 
"dag_default_view").lower(),
         orientation: str = airflow_conf.get_mandatory_value("webserver", 
"dag_orientation"),
-        catchup: bool = airflow_conf.getboolean("scheduler", 
"catchup_by_default"),
+        catchup: str | bool = airflow_conf.get("scheduler", 
"catchup_by_default"),

Review Comment:
   ```suggestion
           catchup: Literal["enable", "disable", "ignore_first"] | bool = 
airflow_conf.get("scheduler", "catchup_by_default"),
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to