jscheffl commented on code in PR #53431:
URL: https://github.com/apache/airflow/pull/53431#discussion_r2211541863
##########
providers/standard/src/airflow/providers/standard/sensors/date_time.py:
##########
@@ -99,9 +99,6 @@ def poke(self, context: Context) -> bool:
@property
def _moment(self) -> datetime.datetime:
- if isinstance(self.target_time, datetime.datetime):
- return self.target_time
-
Review Comment:
FAIL: This conversion handling is needed because if Templating is used and
the fields are `render_template_as_native_obj=True` then the rendering is
generating a native datetime object --> Need to revert this and ignore warning.
--
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]