You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/24 16:37:41 UTC

[GitHub] [airflow] eladkal commented on a change in pull request #21796: Replaced all days_ago functions with datetime functions

eladkal commented on a change in pull request #21796:
URL: https://github.com/apache/airflow/pull/21796#discussion_r814063683



##########
File path: tests/dags/test_example_bash_operator.py
##########
@@ -16,13 +16,12 @@
 # specific language governing permissions and limitations
 # under the License.
 from datetime import timedelta
-
+import datetime

Review comment:
       If `from datetime import timedelta` already present why not doing
   `from datetime import datetime, timedelta`
   
   and use `datetime(2022,1,1)` rather than `datetime.datetime(2022,1,1)`




-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org