Fix geo_re_resolve async mocks and mark tasks complete
This commit is contained in:
@@ -15,7 +15,7 @@ under the key ``"blocklist_schedule"``.
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
from typing import TYPE_CHECKING, Any
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import structlog
|
||||
|
||||
@@ -56,7 +56,7 @@ _PREVIEW_MAX_BYTES: int = 65536
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _row_to_source(row: dict[str, Any]) -> BlocklistSource:
|
||||
def _row_to_source(row: dict[str, object]) -> BlocklistSource:
|
||||
"""Convert a repository row dict to a :class:`BlocklistSource`.
|
||||
|
||||
Args:
|
||||
@@ -542,7 +542,7 @@ async def list_import_logs(
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
def _aiohttp_timeout(seconds: float) -> Any:
|
||||
def _aiohttp_timeout(seconds: float) -> "aiohttp.ClientTimeout":
|
||||
"""Return an :class:`aiohttp.ClientTimeout` with the given total timeout.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user