Commit 60be8e9
committed
[asyncio] Support IPv6 addr type in DatagramProtocol.datagram_received
When using IPv6, the `addr` parameter passed to `datagram_received` is a
4-tuple `(host, port, flowinfo, scope_id)` of type `tuple[str, int, int, int]`,
not a 2-tuple. Add this case to the union type so IPv6 datagram protocols
can be properly typed without resorting to `Any`.
Fixes #151691 parent 81a6d24 commit 60be8e9
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments