Apply refurb/ruff rule FURB134 (#11845)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
Dimitri Papadopoulos Orfanos 2024-01-04 04:49:19 +01:00 committed by GitHub
parent 399ed4178f
commit aea37a7508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()