Remove lru cache size limit of TemperatureConverter (#109726)

pull/109757/head
Erik Montnemery 2024-02-05 20:21:04 +01:00 committed by GitHub
parent 94ccd59123
commit 49a99559c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ class TemperatureConverter(BaseUnitConverter):
}
@classmethod
@lru_cache(maxsize=8)
@lru_cache
def converter_factory(
cls, from_unit: str | None, to_unit: str | None
) -> Callable[[float], float]:
@ -379,7 +379,7 @@ class TemperatureConverter(BaseUnitConverter):
return cls._converter_factory(from_unit, to_unit)
@classmethod
@lru_cache(maxsize=8)
@lru_cache
def converter_factory_allow_none(
cls, from_unit: str | None, to_unit: str | None
) -> Callable[[float | None], float | None]: