mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-17 20:43:25 +00:00
Bad type annotation.
This commit is contained in:
parent
9eb60c402c
commit
f58e625fef
1 changed files with 2 additions and 2 deletions
|
|
@ -27,13 +27,13 @@ class RedisStorage(BaseStorage):
|
||||||
def __init__(self, host, port, db=None, password=None, ssl=None, loop=None, **kwargs):
|
def __init__(self, host, port, db=None, password=None, ssl=None, loop=None, **kwargs):
|
||||||
self._host = host
|
self._host = host
|
||||||
self._port = port
|
self._port = port
|
||||||
self._db: aioredis.RedisConnection = db
|
self._db = db
|
||||||
self._password = password
|
self._password = password
|
||||||
self._ssl = ssl
|
self._ssl = ssl
|
||||||
self._loop = loop
|
self._loop = loop
|
||||||
self._kwargs = kwargs
|
self._kwargs = kwargs
|
||||||
|
|
||||||
self._redis = None
|
self._redis: aioredis.RedisConnection = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
async def redis(self) -> aioredis.RedisConnection:
|
async def redis(self) -> aioredis.RedisConnection:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue