You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2019/04/18 09:02:00 UTC

[jira] [Updated] (AIRFLOW-4342) Replace ad-hoc cached-properties with module

     [ https://issues.apache.org/jira/browse/AIRFLOW-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ash Berlin-Taylor updated AIRFLOW-4342:
---------------------------------------
    Summary: Replace ad-hoc cached-properties with module  (was: Replace ad-hoc cached-properties with mdouel)

> Replace ad-hoc cached-properties with module
> --------------------------------------------
>
>                 Key: AIRFLOW-4342
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4342
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Ash Berlin-Taylor
>            Assignee: Ash Berlin-Taylor
>            Priority: Minor
>
> In a few places in the code base we have something that looks like:
> {code}
> @property
> def x(self):
>    if not self._x:
>        self._x = self._build_x()
>     return self._x
> {code}
>  Instead we should use something like https://pypi.org/project/cached-property/ to make it more declarative for us :)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)