@@ -110,7 +110,7 @@ def test_generic_type_parameters(self):
110
110
111
111
if hasattr (generic_base , "__args__" ):
112
112
type_params = generic_base .__args__
113
- assert len (type_params ) == 3 , "Should have 3 type parameters"
113
+ assert len (type_params ) == 2 , "Should have 2 type parameters"
114
114
param_names = [param .__name__ for param in type_params ]
115
115
expected_names = ["RequestT" , "ResponseT" ]
116
116
assert param_names == expected_names
@@ -119,7 +119,7 @@ def test_generic_type_parameters(self):
119
119
def test_implementation_construction (self ):
120
120
"""Test that a complete concrete implementation can be instantiated."""
121
121
122
- class ConcreteBackend (BackendInterface [str , MeasuredRequestTimings , str ]):
122
+ class ConcreteBackend (BackendInterface [str , str ]):
123
123
@property
124
124
def processes_limit (self ) -> int | None :
125
125
return 4
@@ -162,7 +162,7 @@ async def resolve(
162
162
async def test_implementation_async_methods (self ): # noqa: C901
163
163
"""Test that async methods work correctly in concrete implementation."""
164
164
165
- class AsyncBackend (BackendInterface [dict , MeasuredRequestTimings , dict ]):
165
+ class AsyncBackend (BackendInterface [dict , dict ]):
166
166
def __init__ (self ):
167
167
self .startup_called = False
168
168
self .validate_called = False
@@ -434,7 +434,6 @@ def valid_instances(self, request):
434
434
@pytest .mark .smoke
435
435
def test_class_signatures (self ):
436
436
"""Test MeasuredRequestTimings inheritance and type relationships."""
437
- assert issubclass (MeasuredRequestTimings , StandardBaseModel )
438
437
assert hasattr (MeasuredRequestTimings , "model_dump" )
439
438
assert hasattr (MeasuredRequestTimings , "model_validate" )
440
439
0 commit comments