Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note
functools.cache
for the future.
On Python 3.9+, the `functools.cache` decorator [^1] has the same effect as `functools.lru_cache(maxsize=None)`, but is easier to write and has a name that exposes fewer of its implementation details. [^1]: https://docs.python.org/3/library/functools.html#functools.cache
- Loading branch information