Skip to content

Commit

Permalink
Use Pendulum's built-in UTC object (#21732)
Browse files Browse the repository at this point in the history
Co-authored-by: Tzu-ping Chung <[email protected]>
  • Loading branch information
malthe and uranusjr authored Feb 24, 2022
1 parent 272d242 commit 8ee8f2b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions airflow/example_dags/plugins/workday.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit 8ee8f2b

Please sign in to comment.