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) elif isinstance(runner.target, StrictMock): _validate_return_type(getattr(runner.target, runner.method), value, self.caller_frame_info)
def _validate_return_type(self, runner, value): if ( self.type_validation and runner.TYPE_VALIDATION and runner.original_callable is not None ): _validate_return_type( runner.original_callable, value, self.caller_frame_info )
def _validate_return_type(self, runner, value): if runner.TYPE_VALIDATION and runner.original_callable is not None: _validate_return_type(runner.original_callable, value)