fix typing

This commit is contained in:
Shroominic
2025-06-05 13:24:48 +02:00
parent a0739d29fb
commit cdaccc5778
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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: