Upgrade linting configuration

This commit is contained in:
François Voron
2024-02-05 09:20:29 +01:00
parent cd5eaf1d51
commit 9d07464be1
8 changed files with 22 additions and 12 deletions

View File

@ -18,9 +18,10 @@ class RedisMock:
value, expiration = self.store[key]
if expiration is not None and expiration < datetime.now().timestamp():
return None
return value
except KeyError:
return None
else:
return value
async def set(self, key: str, value: str, ex: Optional[int] = None):
expiration = None