Fixed linter error

This commit is contained in:
Alex Root Junior 2022-02-16 00:58:50 +02:00
parent 3a668cec1b
commit d6f1c9552c
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -146,7 +146,7 @@ class RedisStorage(BaseStorage):
await self.redis.set(
redis_key,
cast(str, state.state if isinstance(state, State) else state),
ex=self.state_ttl, # type: ignore[arg-type] # NOQA
ex=self.state_ttl,
)
async def get_state(
@ -173,7 +173,7 @@ class RedisStorage(BaseStorage):
await self.redis.set(
redis_key,
bot.session.json_dumps(data),
ex=self.data_ttl, # type: ignore[arg-type]
ex=self.data_ttl,
)
async def get_data(