Skip to content

Commit

Permalink
Fix return type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
layday committed Oct 16, 2024
1 parent 3ebe955 commit 2244d4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/fixtures/http/_mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import re
from collections.abc import Awaitable, Callable, Sequence
from copy import copy
from typing import Any
from typing import TYPE_CHECKING, Any

import attrs
from aiohttp.connector import TCPConnector
Expand All @@ -17,6 +17,7 @@
from aiohttp.web import Response
from aiohttp.web_request import BaseRequest
from aiohttp.web_response import json_response
from typing_extensions import Self
from yarl import URL

_Response = (
Expand Down Expand Up @@ -100,3 +101,7 @@ async def _resolve_host(
]

return _TCPConnector

if TYPE_CHECKING:
# Parent class returns "BaseTestServer".
async def __aenter__(self) -> Self: ...

0 comments on commit 2244d4d

Please sign in to comment.