ashb commented on a change in pull request #12472:
URL: https://github.com/apache/airflow/pull/12472#discussion_r535366086
##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -20,17 +20,25 @@
import enum
import logging
from inspect import Parameter, signature
-from typing import Any, Dict, Iterable, List, Optional, Set, Union
+from typing import Any, Dict, Iterable, Optional, Set, Union
import cattr
import pendulum
from dateutil import relativedelta
+
+try:
+ from functools import cache
+except ImportError:
+ from functools import lru_cache
+
+ cache = lru_cache(maxsize=None)
Review comment:
(Style okay with this? I would have expected a new line or two after
this)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]