Skip to content

Commit

Permalink
feat: Changed functools.cache to functools.lru_cache(maxsize=None)
Browse files Browse the repository at this point in the history
This allows to run code with older python versions (before 3.9)

refs #6
  • Loading branch information
mireq committed Sep 7, 2024
1 parent 849f701 commit 7b4fec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonx/luasnip_snippets_python_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def __repr__(self):
return f'{self.__class__.__name__}({self._tabs!r}, {self._mapping!r})'


@functools.cache
@functools.lru_cache(maxsize=None)
def cached_compile(*args):
return compile(*args)

Expand Down

0 comments on commit 7b4fec3

Please sign in to comment.