mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: failed mypy (#17886)
This commit is contained in:
5
.github/workflows/superset-python-misc.yml
vendored
5
.github/workflows/superset-python-misc.yml
vendored
@@ -66,7 +66,9 @@ jobs:
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
cache: 'pip'
|
||||
cache-dependency-path: 'requirements/integration.txt'
|
||||
cache-dependency-path: |
|
||||
requirements/base.txt
|
||||
requirements/integration.txt
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/cached-dependencies
|
||||
with:
|
||||
@@ -74,6 +76,7 @@ jobs:
|
||||
apt-get-install
|
||||
pip-upgrade
|
||||
pip install wheel
|
||||
pip install -r requirements/base.txt
|
||||
pip install -r requirements/integration.txt
|
||||
- name: pre-commit
|
||||
run: pre-commit run --all-files
|
||||
|
||||
@@ -176,9 +176,7 @@ class AsyncQueryManager:
|
||||
) -> List[Optional[Dict[str, Any]]]:
|
||||
stream_name = f"{self._stream_prefix}{channel}"
|
||||
start_id = increment_id(last_id) if last_id else "-"
|
||||
results = self._redis.xrange( # type: ignore
|
||||
stream_name, start_id, "+", self.MAX_EVENT_COUNT
|
||||
)
|
||||
results = self._redis.xrange(stream_name, start_id, "+", self.MAX_EVENT_COUNT)
|
||||
return [] if not results else list(map(parse_event, results))
|
||||
|
||||
def update_job(
|
||||
|
||||
Reference in New Issue
Block a user