mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
don't need call to keys
This commit is contained in:
@@ -234,7 +234,7 @@ class FIFOCache(Generic[CacheKey, CacheValue]):
|
|||||||
value (CacheValue): Value.
|
value (CacheValue): Value.
|
||||||
"""
|
"""
|
||||||
if key not in self._cache and len(self._cache) >= self._maxsize:
|
if key not in self._cache and len(self._cache) >= self._maxsize:
|
||||||
self._cache.pop(next(iter(self._cache.keys())))
|
self._cache.pop(next(iter(self._cache)))
|
||||||
self._cache[key] = value
|
self._cache[key] = value
|
||||||
|
|
||||||
__setitem__ = set
|
__setitem__ = set
|
||||||
|
|||||||
Reference in New Issue
Block a user