mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
chore: upgrade mypy and add type guards (#16227)
This commit is contained in:
@@ -73,7 +73,7 @@ class AsyncQueryManager:
|
||||
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self._redis: redis.Redis
|
||||
self._redis: redis.Redis # type: ignore
|
||||
self._stream_prefix: str = ""
|
||||
self._stream_limit: Optional[int]
|
||||
self._stream_limit_firehose: Optional[int]
|
||||
@@ -100,7 +100,7 @@ class AsyncQueryManager:
|
||||
"Please provide a JWT secret at least 32 bytes long"
|
||||
)
|
||||
|
||||
self._redis = redis.Redis( # type: ignore
|
||||
self._redis = redis.Redis(
|
||||
**config["GLOBAL_ASYNC_QUERIES_REDIS_CONFIG"], decode_responses=True
|
||||
)
|
||||
self._stream_prefix = config["GLOBAL_ASYNC_QUERIES_REDIS_STREAM_PREFIX"]
|
||||
|
||||
Reference in New Issue
Block a user