From 4c50f6be754c7a474c5abc2cde7412041289f754 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 13 Nov 2026 21:45:19 +0100 Subject: refactor(core): remove postponed model annotations Drop `from __future__ import annotations` now that UUID names no longer shadow the module namespace, and add coverage that mapped UUID and relationship annotations resolve correctly at runtime. Apply minor Python 3.14 syntax and formatting cleanup across tests and networking. --- tests/test_net.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_net.py') diff --git a/tests/test_net.py b/tests/test_net.py index 42b9261..4ac138d 100644 --- a/tests/test_net.py +++ b/tests/test_net.py @@ -75,9 +75,7 @@ def test_backend_closes_failed_socket_and_tries_next_address( first.connect.side_effect = TimeoutError("connection timed out") monkeypatch.setattr(socket, "socket", Mock(side_effect=[first, second])) - stream = PublicNetworkBackend(NetworkDeadline(5)).connect_tcp( - "example.com", 443 - ) + stream = PublicNetworkBackend(NetworkDeadline(5)).connect_tcp("example.com", 443) assert isinstance(stream, DeadlineStream) first.close.assert_called_once_with() -- cgit v1.3.1