Ash Berlin-Taylor created AIRFLOW-4342:
------------------------------------------

             Summary: Replace ad-hoc cached-properties with mdouel
                 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


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)

Reply via email to