in testslide/mock_callable.py [0:0]
def _validate_return_type(self, runner: _BaseRunner, value: Any) -> None:
if self.type_validation and runner.TYPE_VALIDATION:
if runner.original_callable is not None:
_validate_return_type(
runner.original_callable,
value,
self.caller_frame_info,
self.callable_returns_coroutine,
)
elif isinstance(runner.target, StrictMock):
_validate_return_type(
getattr(runner.target, runner.method), value, self.caller_frame_info
)