Skip to content

Commit

Permalink
FIXUP: expose AddrInfoType
Browse files Browse the repository at this point in the history
  • Loading branch information
TimMenninger committed Mar 11, 2025
1 parent 057ecc9 commit 3a87c34
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions aiohttp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
__all__: Tuple[str, ...] = (
"hdrs",
# client
"AddrInfoType",
"BaseConnector",
"ClientConnectionError",
"ClientConnectionResetError",
Expand Down Expand Up @@ -146,6 +147,7 @@
"ServerDisconnectedError",
"ServerFingerprintMismatch",
"ServerTimeoutError",
"SocketFactoryType",
"SocketTimeoutError",
"TCPConnector",
"TooManyRedirects",
Expand Down
9 changes: 8 additions & 1 deletion aiohttp/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@
# which first appeared in Python 3.12.7 and 3.13.1


__all__ = ("BaseConnector", "TCPConnector", "UnixConnector", "NamedPipeConnector")
__all__ = (
"BaseConnector",
"TCPConnector",
"UnixConnector",
"NamedPipeConnector",
"AddrInfoType",
"SocketFactoryType",
)


if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from unittest import mock

import pytest
from aiohappyeyeballs import AddrInfoType
from pytest_mock import MockerFixture
from yarl import URL

Expand All @@ -44,6 +43,7 @@
from aiohttp.connector import (
_SSL_CONTEXT_UNVERIFIED,
_SSL_CONTEXT_VERIFIED,
AddrInfoType,
Connection,
TCPConnector,
_DNSCacheTable,
Expand Down

0 comments on commit 3a87c34

Please sign in to comment.