mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply refurb/ruff rule FURB134 (#11845)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
parent
399ed4178f
commit
aea37a7508
@ -438,7 +438,7 @@ class IndexBuilder:
|
||||
_stem = self.lang.stem
|
||||
|
||||
# memoise self.lang.stem
|
||||
@functools.lru_cache(maxsize=None)
|
||||
@functools.cache
|
||||
def stem(word_to_stem: str) -> str:
|
||||
return _stem(word_to_stem).lower()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user