fix: failed mypy (#17886)
This commit is contained in:
parent
c6c4143b04
commit
ef57bd1902
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue