From cdaccc577851487cddcfe6f044b2c5c3445205b6 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Thu, 5 Jun 2025 13:24:48 +0200 Subject: [PATCH] fix typing --- router/discovery.py | 2 +- tests/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/router/discovery.py b/router/discovery.py index 0ef3279a..34461144 100644 --- a/router/discovery.py +++ b/router/discovery.py @@ -125,7 +125,7 @@ async def fetch_onion(provider: str) -> dict: # Configure httpx to use Tor SOCKS5 proxy async with httpx.AsyncClient( - proxies={"http://": tor_proxy, "https://": tor_proxy}, + proxies={"http://": tor_proxy, "https://": tor_proxy}, # type: ignore timeout=httpx.Timeout(30.0), follow_redirects=True, ) as client: diff --git a/tests/conftest.py b/tests/conftest.py index 14ced46f..2b07b255 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,7 +2,7 @@ import asyncio import os import pytest import pytest_asyncio -from typing import AsyncGenerator +from typing import AsyncGenerator, Generator from fastapi.testclient import TestClient from httpx import AsyncClient, ASGITransport from sqlmodel import SQLModel @@ -94,7 +94,7 @@ async def test_session(test_engine) -> AsyncGenerator[AsyncSession, None]: @pytest.fixture -def test_client() -> TestClient: +def test_client() -> Generator[TestClient, None, None]: """Create a test client for the FastAPI app.""" with patch.dict(os.environ, TEST_ENV, clear=True): with patch("sixty_nuts.Wallet") as mock_wallet_class: