Skip to content

Commit ba24f74

Browse files
committed
Fix type issues
1 parent c480449 commit ba24f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/trio/_tests/test_socket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
]
3535
GetAddrInfoResponse: TypeAlias = list[GaiTuple]
3636
GetAddrInfoArgs: TypeAlias = tuple[
37-
str | bytes | None,
38-
str | bytes | int | None,
37+
Union[str, bytes, None],
38+
Union[str, bytes, int, None],
3939
int,
4040
int,
4141
int,
@@ -77,7 +77,7 @@ def _frozenbind(
7777
type: int = 0,
7878
proto: int = 0,
7979
flags: int = 0,
80-
) -> tuple[str | int | bytes | None, ...]:
80+
) -> GetAddrInfoArgs:
8181
sig = inspect.signature(self._orig_getaddrinfo)
8282
bound = sig.bind(host, port, family, type, proto, flags)
8383
bound.apply_defaults()

0 commit comments

Comments
 (0)