Try to fix flake8 unused type ignore

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

View file

@ -145,8 +145,8 @@ class RedisStorage(BaseStorage):
else:
await self.redis.set(
redis_key,
state.state if isinstance(state, State) else state, # type: ignore[arg-type]
ex=self.state_ttl, # type: ignore[arg-type]
cast(str, state.state if isinstance(state, State) else state),
ex=self.state_ttl, # type: ignore[arg-type] # NOQA
)
async def get_state(