(self)
| 81 | port: int |
| 82 | |
| 83 | def as_python_sockaddr(self) -> tuple[str, int] | tuple[str, int, int, int]: |
| 84 | sockaddr: tuple[str, int] | tuple[str, int, int, int] = ( |
| 85 | self.ip.compressed, |
| 86 | self.port, |
| 87 | ) |
| 88 | if isinstance(self.ip, ipaddress.IPv6Address): |
| 89 | sockaddr += (0, 0) # type: ignore[assignment] |
| 90 | return sockaddr |
| 91 | |
| 92 | @classmethod |
| 93 | def from_python_sockaddr( |
no outgoing calls
no test coverage detected