From 491e38774ba852a74deb61ccfdca55d57ca7ebdc Mon Sep 17 00:00:00 2001 From: Gavin Panella Date: Tue, 22 Jul 2025 16:12:04 +0200 Subject: [PATCH] Relax the return type on `UseFixtureProtocol.getDetails` Because of circular imports between `testtools` and `fixtures` it was not feasible to adhere to this protocol as it stood. Instead, just expect a `dict`. --- testtools/testcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testtools/testcase.py b/testtools/testcase.py index 2ec2296a..b30c0701 100644 --- a/testtools/testcase.py +++ b/testtools/testcase.py @@ -172,7 +172,7 @@ def gather_details(source_dict, target_dict): class UseFixtureProtocol(Protocol): def setUp(self) -> Any: ... def cleanUp(self) -> Any: ... - def getDetails(self) -> dict[str, content.Content]: ... + def getDetails(self) -> dict: ... UseFixtureT = TypeVar("UseFixtureT", bound=UseFixtureProtocol)