ashb commented on pull request #20000:
URL: https://github.com/apache/airflow/pull/20000#issuecomment-985094871


   @uranusjr There were a couple of odd ones related to the timetable that I 
couldn't decipher:
   
   ```
   airflow/models/dag.py:102: error: Variable 
"airflow.models.dag.ScheduleIntervalArgNotSet" is not valid as a type
       ScheduleIntervalArg = Union[ScheduleInterval, None, 
Type[ScheduleIntervalArgNotSet]]
                                                                ^
   airflow/models/dag.py:102: note: See 
https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
   airflow/models/dag.py:159: error: Argument 2 to "CronDataIntervalTimetable" 
has incompatible type "tzinfo"; expected "Timezone"
               return CronDataIntervalTimetable(interval, timezone)
                                                          ^
   airflow/models/dag.py:428: error: Incompatible types in assignment 
(expression has type "Union[Union[str, timedelta, relativedelta], None, 
Type[ScheduleIntervalArgNotSet?]]", variable has type "Union[str, timedelta, 
relativedelta]")
                   self.schedule_interval: ScheduleInterval = schedule_interval
                                                              ^
   airflow/models/dag.py:568: error: Argument 2 to "iter_dagrun_infos_between" 
of "DAG" has incompatible type "Optional[datetime]"; expected "DateTime"
                       for info in self.iter_dagrun_infos_between(start_date, 
end_date, align=False)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to