mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Apply refurb/ruff rule FURB134 (#11845)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
1 parent
399ed4178f
commit
aea37a7508
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user