From 8ee8f2b34b8df168a4d3f2664a9f418469079723 Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Thu, 24 Feb 2022 15:49:18 +0000 Subject: [PATCH] Use Pendulum's built-in UTC object (#21732) Co-authored-by: Tzu-ping Chung --- airflow/example_dags/plugins/workday.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/airflow/example_dags/plugins/workday.py b/airflow/example_dags/plugins/workday.py index cea12c0c0e3f1..77111a79396de 100644 --- a/airflow/example_dags/plugins/workday.py +++ b/airflow/example_dags/plugins/workday.py @@ -22,14 +22,11 @@ from datetime import timedelta from typing import Optional -from pendulum import Date, DateTime, Time, timezone +from pendulum import UTC, Date, DateTime, Time from airflow.plugins_manager import AirflowPlugin from airflow.timetables.base import DagRunInfo, DataInterval, TimeRestriction, Timetable -# MyPy Does not recognize callable modules https://github.com/python/mypy/issues/9240 -UTC = timezone("UTC") # type: ignore - class AfterWorkdayTimetable(Timetable):