uranusjr commented on code in PR #50744: URL: https://github.com/apache/airflow/pull/50744#discussion_r2106475420
########## providers/standard/src/airflow/providers/standard/sensors/date_time.py: ########## @@ -99,6 +98,15 @@ def poke(self, context: Context) -> bool: self.log.info("Checking if the time (%s) has come", self.target_time) return timezone.utcnow() > timezone.parse(self.target_time) + @property + def _moment(self) -> datetime.datetime: + import pendulum + + if isinstance(self.target_time, (pendulum.DateTime, datetime.datetime)): Review Comment: ```suggestion if isinstance(self.target_time, datetime.datetime): ``` Pendulum DateTime is stdlib datetime. -- 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