reformat after update

This commit is contained in:
Jörg Thalheim
2025-01-14 15:30:29 +01:00
parent 9d29cc63ad
commit e2aa66d86f
17 changed files with 37 additions and 35 deletions

View File

@@ -16,7 +16,7 @@ def test_vsock_port(port: int) -> bool:
msg = "vsock is only supported on Linux"
raise NotImplementedError(msg)
try:
with socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM) as s:
with socket.socket(socket.AF_VSOCK, socket.SOCK_STREAM) as s: # type: ignore[attr-defined]
s.connect((VMADDR_CID_HYPERVISOR, port))
except OSError:
return False