Skip to content

Commit 32c624e

Browse files
Restore python 3.7 compatibile usage of functools.lru_cache (#480)
1 parent 21be43c commit 32c624e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffcx/element_interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import functools
2323

2424

25-
@functools.lru_cache
25+
@functools.lru_cache()
2626
def create_basix_element(family_type, cell_type, degree, variant_info, discontinuous):
2727
"""Create a basix element."""
2828
return basix.create_element(family_type, cell_type, degree, *variant_info, discontinuous)

0 commit comments

Comments
 (0)