This is an automated email from the ASF dual-hosted git repository.

basph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0d12062198 Fix example import sentence in dates.py (#28453)
0d12062198 is described below

commit 0d12062198b2d4b0642b51da3c8f71e6f934d20d
Author: XuYicheng <[email protected]>
AuthorDate: Mon Dec 19 18:58:28 2022 +0800

    Fix example import sentence in dates.py (#28453)
    
    The example import sentence in line 51  is incorrect
---
 airflow/utils/dates.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/utils/dates.py b/airflow/utils/dates.py
index 3a5b43df1e..da84d792c6 100644
--- a/airflow/utils/dates.py
+++ b/airflow/utils/dates.py
@@ -48,7 +48,7 @@ def date_range(
     or a cron expression as a `str`
 
     .. code-block:: pycon
-        >>> from airflow.utils.dates import datterange
+        >>> from airflow.utils.dates import date_range
         >>> from datetime import datetime, timedelta
         >>> date_range(datetime(2016, 1, 1), datetime(2016, 1, 3), 
delta=timedelta(1))
         [datetime.datetime(2016, 1, 1, 0, 0, tzinfo=Timezone('UTC')),

Reply via email to