You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2022/01/21 00:07:14 UTC

[airflow] 22/23: Docs: Changed macros to correct classes and modules (#20637)

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

jedcunningham pushed a commit to branch v2-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 9912cf1de91e9e39ba53adc08168b575ce8b0300
Author: rustikk <tu...@gmail.com>
AuthorDate: Mon Jan 3 20:39:51 2022 -0700

    Docs: Changed macros to correct classes and modules (#20637)
    
    closes: #20545
    Fixed docs for time and random macros as the reference to what they are was incorrect.
    
    (cherry picked from commit 8b2299b284ac15900f54bf8c84976cc01f4d597c)
---
 docs/apache-airflow/templates-ref.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/apache-airflow/templates-ref.rst b/docs/apache-airflow/templates-ref.rst
index 28aba68..f3c4a46 100644
--- a/docs/apache-airflow/templates-ref.rst
+++ b/docs/apache-airflow/templates-ref.rst
@@ -166,9 +166,9 @@ Variable                            Description
 ``macros.datetime``                 The standard lib's :class:`datetime.datetime`
 ``macros.timedelta``                The standard lib's :class:`datetime.timedelta`
 ``macros.dateutil``                 A reference to the ``dateutil`` package
-``macros.time``                     The standard lib's :class:`datetime.time`
+``macros.time``                     The standard lib's :mod:`time`
 ``macros.uuid``                     The standard lib's :mod:`uuid`
-``macros.random``                   The standard lib's :mod:`random`
+``macros.random``                   The standard lib's :class:`random.random`
 =================================   ==============================================
 
 Some airflow specific macros are also defined: