Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodonato committed Nov 20, 2024
1 parent 077a319 commit 7913fc4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/web_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
TestClient,
TestServer,
)
from aiohttp.web import Application
from aiohttp.web import Application, Request
from prometheus_client import Gauge
from prometheus_client.metrics import MetricWrapperBase
import pytest
Expand All @@ -28,7 +28,9 @@
from prometheus_aioexporter._web import PrometheusExporter
from tests.conftest import ssl_context

AiohttpClient = Callable[[Application | TestServer], Awaitable[TestClient]]
AiohttpClient = Callable[
[Application | TestServer], Awaitable[TestClient[Request, Application]]
]
AiohttpServer = Callable[..., Awaitable[TestServer]]


Expand Down

0 comments on commit 7913fc4

Please sign in to comment.