summaryrefslogtreecommitdiff
path: root/pint
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-04-29 19:10:38 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-04-29 19:20:18 -0300
commit1208b3d503913eabe8ac96db18ee2ad14af1bdd6 (patch)
treebca861cc05cfd773dbeb4d248dde5d04f0e74c5d /pint
parentf3f2158ac7600e26a32141ec5da7cc69dfb461d7 (diff)
downloadpint-1208b3d503913eabe8ac96db18ee2ad14af1bdd6.tar.gz
Apply NEP-29: Pint now requires Python 3.9+ and NumPy 1.21+
Diffstat (limited to 'pint')
-rw-r--r--pint/util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pint/util.py b/pint/util.py
index d5f3aab..8b62009 100644
--- a/pint/util.py
+++ b/pint/util.py
@@ -1020,9 +1020,7 @@ def sized(y) -> bool:
return True
-@functools.lru_cache(
- maxsize=None
-) # TODO: replace with cache when Python 3.8 is dropped.
+@functools.cache
def _build_type(class_name: str, bases):
return type(class_name, bases, dict())