diff --git a/bravado/http_future.py b/bravado/http_future.py
index a245359..8bfa65d 100644
--- a/bravado/http_future.py
+++ b/bravado/http_future.py
@@ -188,7 +188,7 @@ class HttpFuture(typing.Generic[T]):
         :return: A BravadoResponse instance containing the swagger result and response metadata.
         """
         incoming_response = None
-        exc_info = []  # type: typing.List[typing.Union[typing.Type[BaseException], BaseException, typing.Text]]
+        exc_info = None  # type: typing.Optional[typing.List[typing.Union[typing.Type[BaseException], BaseException, typing.Text]]]  # noqa: E501
         request_end_time = None
         if self.request_config.force_fallback_result:
             exceptions_to_catch = tuple(chain(exceptions_to_catch, (ForcedFallbackResultError,)))
diff --git a/bravado/response.py b/bravado/response.py
index d023c0d..62e32a5 100644
--- a/bravado/response.py
+++ b/bravado/response.py
@@ -53,7 +53,7 @@ class BravadoResponseMetadata(typing.Generic[T]):
         swagger_result,  # type: typing.Optional[T]
         start_time,  # type: float
         request_end_time,  # type: float
-        handled_exception_info,  # type: typing.List[typing.Union[typing.Type[BaseException], BaseException, typing.Text]]  # noqa
+        handled_exception_info,  # type: typing.Optional[typing.List[typing.Union[typing.Type[BaseException], BaseException, typing.Text]]]  # noqa
         request_config,  # type: RequestConfig
     ):
         # type: (...) -> None
@@ -102,7 +102,7 @@ class BravadoResponseMetadata(typing.Generic[T]):
     @property
     def is_fallback_result(self):
         # type: () -> bool
-        return self.handled_exception_info is not None
+        return bool(self.handled_exception_info)
 
     @property
     def request_elapsed_time(self):
diff --git a/bravado/swagger_model.py b/bravado/swagger_model.py
index 745cf52..da1d498 100644
--- a/bravado/swagger_model.py
+++ b/bravado/swagger_model.py
@@ -4,6 +4,7 @@ import logging
 import os
 import os.path
 
+import typing
 import yaml
 try:
     from yaml import CSafeLoader as SafeLoader
@@ -34,7 +35,7 @@ class FileEventual(object):
 
         def __init__(self, data):
             self.text = data
-            self.headers = {}
+            self.headers = {}  # type: typing.Mapping[str, str]
 
         def json(self):
             return simplejson.loads(self.text.decode('utf-8'))
diff --git a/mypy.ini b/mypy.ini
index ab40096..2c4a420 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -8,18 +8,16 @@ check_untyped_defs = True
 disallow_untyped_defs = True
 
 [mypy-bravado.client.*]
-check_untyped_defs = False
 disallow_untyped_defs = False
+
 [mypy-bravado.docstring_property.*]
-check_untyped_defs = False
 disallow_untyped_defs = False
+
 [mypy-bravado.swagger_model.*]
-check_untyped_defs = False
 disallow_untyped_defs = False
+
 [mypy-bravado.testing.*]
-check_untyped_defs = False
 disallow_untyped_defs = False
 
 [mypy-tests.*]
-check_untyped_defs = False
 disallow_untyped_defs = False
diff --git a/setup.py b/setup.py
index 94e04d7..e715c8e 100755
--- a/setup.py
+++ b/setup.py
@@ -43,13 +43,11 @@ setup(
         'six',
         'simplejson',
         'monotonic',
+        'typing_extensions',
     ],
     extras_require={
         'fido': ['fido >= 4.2.1'],
         ':python_version<"3.5"': ['typing'],
-        # only needed for Python 3.5.0 and 3.5.1, but =="3.5.0" evaluates
-        # to True for all Python 3.5 versions apparently
-        ':python_version=="3.5"': ['typing_extensions'],
         'integration-tests': [
             'bottle',
             'ephemeral_port_reserve',

is_fallback_result no longer accurate
`is_fallback_result` always returns `True` as of 10.3.0 due to #403. Specifically the change [here](https://github.com/Yelp/bravado/pull/403/files#diff-dfa77bc847cf31d43435498de902fe9bL146) which makes `exc_info` from an `Optional` to a non-optional `List`.

I made the following one-liner change, which seems to (at least locally) fix our internal package tests that are failing:

```diff
diff --git a/bravado/response.py b/bravado/response.py
index d023c0d..e34e780 100644
--- a/bravado/response.py
+++ b/bravado/response.py
@@ -102,7 +102,7 @@ class BravadoResponseMetadata(typing.Generic[T]):
     @property
     def is_fallback_result(self):
         # type: () -> bool
-        return self.handled_exception_info is not None
+        return self.handled_exception_info != []

     @property
     def request_elapsed_time(self):
```

It's weird that this didn't get caught by type checking or tests.

Since it's toward the end of the day here in SF, i'm opening this issue instead of trying to whip up a PR with tests and such.

@sjaensch or @macisamuele if you decide to take this, let me know. Otherwise i'll tackle this tomorrow.
diff --git a/bravado/testing/response_mocks.py b/bravado/testing/response_mocks.py
index 264f8f5..f654b39 100644
--- a/bravado/testing/response_mocks.py
+++ b/bravado/testing/response_mocks.py
@@ -1,26 +1,35 @@
 # -*- coding: utf-8 -*-
+import typing
 from bravado_core.response import IncomingResponse
+from typing_extensions import overload  # typing.overload won't work on Python 3.5.0/3.5.1
 
+from bravado.config import RequestConfig
 from bravado.exception import BravadoTimeoutError
+from bravado.http_future import _SENTINEL
 from bravado.http_future import FALLBACK_EXCEPTIONS
 from bravado.http_future import SENTINEL
+from bravado.response import BravadoResponse
 from bravado.response import BravadoResponseMetadata
 
 
+T = typing.TypeVar('T')
+
+
 class IncomingResponseMock(IncomingResponse):
     def __init__(self, status_code, **kwargs):
-        self.headers = {}
+        self.headers = {}  # type: typing.Mapping[str, str]
         self.status_code = status_code
         for name, value in kwargs.items():
             setattr(self, name, value)
 
 
-class BravadoResponseMock(object):
+class BravadoResponseMock(typing.Generic[T]):
     """Class that behaves like the :meth:`.HttpFuture.response` method as well as a :class:`.BravadoResponse`.
     Please check the documentation for further information.
     """
 
     def __init__(self, result, metadata=None):
+        # type: (T, typing.Optional[BravadoResponseMetadata[T]]) -> None
         self._result = result
         if metadata:
             self._metadata = metadata
@@ -31,11 +40,17 @@ class BravadoResponseMock(object):
                 start_time=1528733800,
                 request_end_time=1528733801,
                 handled_exception_info=None,
-                request_config=None,
+                request_config=RequestConfig({}, also_return_response_default=False),
             )
 
-    def __call__(self, timeout=None, fallback_result=SENTINEL, exceptions_to_catch=FALLBACK_EXCEPTIONS):
-        return self
+    def __call__(
+        self,
+        timeout=None,  # type: typing.Optional[float]
+        fallback_result=SENTINEL,  # type: typing.Union[_SENTINEL, T, typing.Callable[[BaseException], T]]  # noqa
+        exceptions_to_catch=FALLBACK_EXCEPTIONS,  # type: typing.Tuple[typing.Type[BaseException], ...]
+    ):
+        # type: (...) -> BravadoResponse[T]
+        return self  # type: ignore
 
     @property
     def result(self):
@@ -53,25 +68,52 @@ class FallbackResultBravadoResponseMock(object):
     """
 
     def __init__(self, exception=BravadoTimeoutError(), metadata=None):
+        # type: (BaseException, typing.Optional[BravadoResponseMetadata]) -> None
         self._exception = exception
         if metadata:
             self._metadata = metadata
         else:
             self._metadata = BravadoResponseMetadata(
-                incoming_response=None,
+                incoming_response=IncomingResponse(),
                 swagger_result=None,  # we're going to set it later
                 start_time=1528733800,
                 request_end_time=1528733801,
-                handled_exception_info=(self._exception.__class__, self._exception, 'Traceback'),
-                request_config=None,
+                handled_exception_info=[self._exception.__class__, self._exception, 'Traceback'],
+                request_config=RequestConfig({}, also_return_response_default=False),
             )
 
-    def __call__(self, timeout=None, fallback_result=SENTINEL, exceptions_to_catch=FALLBACK_EXCEPTIONS):
-        assert fallback_result is not SENTINEL, 'You\'re using FallbackResultBravadoResponseMock without a callable ' \
-            'fallback_result. Either provide a callable or use BravadoResponseMock.'
+    @overload
+    def __call__(
+        self,
+        timeout=None,  # type: typing.Optional[float]
+        fallback_result=T,  # type: T
+        exceptions_to_catch=FALLBACK_EXCEPTIONS,  # type: typing.Tuple[typing.Type[BaseException], ...]
+    ):
+        # type: (...) -> BravadoResponse[T]
+        pass
+
+    @overload  # noqa: F811
+    def __call__(
+        self,
+        timeout=None,  # type: typing.Optional[float]
+        fallback_result=lambda x: None,  # typing.Callable[[BaseException], T]
+        exceptions_to_catch=FALLBACK_EXCEPTIONS,  # type: typing.Tuple[typing.Type[BaseException], ...]
+    ):
+        # type: (...) -> BravadoResponse[T]
+        pass
+
+    def __call__(  # noqa: F811
+        self,
+        timeout=None,  # type: typing.Optional[float]
+        fallback_result=SENTINEL,  # type: typing.Union[_SENTINEL, T, typing.Callable[[BaseException], T]]  # noqa
+        exceptions_to_catch=FALLBACK_EXCEPTIONS,  # type: typing.Tuple[typing.Type[BaseException], ...]
+    ):
+        # type: (...) -> BravadoResponse[T]
+        assert not isinstance(fallback_result, _SENTINEL), 'You\'re using FallbackResultBravadoResponseMock without' \
+            ' a fallback_result. Either provide one or use BravadoResponseMock.'
         self._fallback_result = fallback_result(self._exception) if callable(fallback_result) else fallback_result
         self._metadata._swagger_result = self._fallback_result
-        return self
+        return self  # type: ignore
 
     @property
     def result(self):
diff --git a/tests/client_test.py b/tests/client_test.py
index 2435c7e..7c18885 100644
--- a/tests/client_test.py
+++ b/tests/client_test.py
@@ -49,8 +49,8 @@ def test_also_return_response(mock_spec):
 @pytest.mark.xfail
 class SwaggerClientTest(unittest.TestCase):
 
-    def test_from_dict(self):
-        client_stub = SwaggerClient.from_dict(self.resource_listing)
+    def test_from_spec(self):
+        client_stub = SwaggerClient.from_spec(self.resource_listing)
         assert isinstance(client_stub, SwaggerClient)
 
     @httpretty.activate
@@ -79,7 +79,7 @@ class SwaggerClientTest(unittest.TestCase):
 
     @httpretty.activate
     def test_headers(self):
-        self.uut = SwaggerClient.from_resource_listing(self.resource_listing)
+        self.uut = SwaggerClient.from_spec(self.resource_listing)
         httpretty.register_uri(
             httpretty.GET, "http://swagger.py/swagger-test/pet",
             body='[]')
@@ -90,7 +90,7 @@ class SwaggerClientTest(unittest.TestCase):
 
     @httpretty.activate
     def test_multiple_headers(self):
-        self.uut = SwaggerClient.from_resource_listing(self.resource_listing)
+        self.uut = SwaggerClient.from_spec(self.resource_listing)
         httpretty.register_uri(
             httpretty.GET, "http://swagger.py/swagger-test/pet",
             body='[]')
@@ -287,7 +287,7 @@ class SwaggerClientTest(unittest.TestCase):
                 }
             ]
         }
-        self.uut = SwaggerClient.from_resource_listing(self.resource_listing)
+        self.uut = SwaggerClient.from_spec(self.resource_listing)
 
 
 if __name__ == '__main__':
diff --git a/tests/conftest.py b/tests/conftest.py
index f5cc792..2899fb0 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -23,7 +23,7 @@ def processed_default_config(**kwargs):
         'response_metadata_class': BravadoResponseMetadata,
     }
     config.update(**kwargs)
-    return BravadoConfig(**config)
+    return BravadoConfig(**config)  # type: ignore
 
 
 @pytest.fixture
diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py
index 7e4d6c2..28d9633 100644
--- a/tests/functional/conftest.py
+++ b/tests/functional/conftest.py
@@ -4,6 +4,7 @@ import json
 
 import httpretty
 import pytest
+import typing
 import yaml
 
 
@@ -19,7 +20,7 @@ def register_spec(swagger_dict, response_spec=None, spec_type='json'):
         response_specs['200']['schema'] = response_spec
 
     if spec_type == 'yaml':
-        serialize_function = yaml.dump
+        serialize_function = yaml.dump  # type: typing.Callable[[typing.Any], typing.Any]
         content_type = 'application/yaml'
     else:
         serialize_function = json.dumps
diff --git a/tests/http_client_test.py b/tests/http_client_test.py
index 09118c5..c7a54ef 100644
--- a/tests/http_client_test.py
+++ b/tests/http_client_test.py
@@ -6,6 +6,7 @@ import httpretty
 import mock
 import pytest
 import requests
+from bravado_core.response import IncomingResponse
 
 from bravado.requests_client import RequestsClient
 
@@ -29,7 +30,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params = self._default_params()
         params['params'] = {'foo': 'bar'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -46,7 +47,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params = self._default_params()
         params['params'] = {'foo': u'酒場'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -64,7 +65,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params['data'] = {'foo': 'bar'}
         params['method'] = 'POST'
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -85,7 +86,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params = self._default_params()
         params['params'] = {'foo': 'bar'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -106,7 +107,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params = self._default_params()
         params['params'] = {'foo': 'bar'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -126,7 +127,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params = self._default_params()
         params['params'] = {'foo': 'bar'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -147,7 +148,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params['params'] = {'foo': 'bar'}
         params['headers'] = {'Key': 'def456'}
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
@@ -167,7 +168,7 @@ class RequestsClientTestCase(unittest.TestCase):
         params['params'] = {'foo': 'bar'}
         params['url'] = 'http://hackerz.py'
 
-        resp = client.request(params).result()
+        resp = client.request(params).result()  # type: IncomingResponse
 
         self.assertEqual(200, resp.status_code)
         self.assertEqual('expected', resp.text)
diff --git a/tests/http_future/HttpFuture/cancel_test.py b/tests/http_future/HttpFuture/cancel_test.py
index 394bbec..6c94ed5 100644
--- a/tests/http_future/HttpFuture/cancel_test.py
+++ b/tests/http_future/HttpFuture/cancel_test.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 import mock
 import pytest
+from bravado_core.response import IncomingResponse
 
 from bravado.http_future import FutureAdapter
 from bravado.http_future import HttpFuture
@@ -18,7 +19,10 @@ class MyFutureAdapter(FutureAdapter):
 
 def test_cancel():
     mock_future_adapter = mock.Mock()
-    future = HttpFuture(future=mock_future_adapter, response_adapter=None)
+    future = HttpFuture(
+        future=mock_future_adapter,
+        response_adapter=IncomingResponse(),
+    )  # type: HttpFuture[None]
     future.cancel()
 
     assert mock_future_adapter.cancel.call_count == 1
@@ -26,7 +30,10 @@ def test_cancel():
 
 def test_cancel_is_backwards_compatible(mock_log):
     future_adapter = MyFutureAdapter()
-    future = HttpFuture(future=future_adapter, response_adapter=None)
+    future = HttpFuture(
+        future=future_adapter,
+        response_adapter=IncomingResponse(),
+    )  # type: HttpFuture[None]
     future.cancel()
 
     assert mock_log.warning.call_count == 1
diff --git a/tests/http_future/HttpFuture/response_test.py b/tests/http_future/HttpFuture/response_test.py
index 31ff96e..6316056 100644
--- a/tests/http_future/HttpFuture/response_test.py
+++ b/tests/http_future/HttpFuture/response_test.py
@@ -48,7 +48,7 @@ def fallback_result():
 def test_fallback_result(fallback_result, mock_future_adapter, mock_operation, http_future):
     mock_future_adapter.result.side_effect = BravadoTimeoutError()
     mock_operation.swagger_spec.config = {
-        'bravado': bravado_config_from_config_dict({'disable_fallback_results': False})
+        'bravado': bravado_config_from_config_dict({'disable_fallback_results': False}),
     }
 
     response = http_future.response(fallback_result=fallback_result)
@@ -60,7 +60,7 @@ def test_fallback_result(fallback_result, mock_future_adapter, mock_operation, h
 def test_fallback_result_callable(fallback_result, mock_future_adapter, mock_operation, http_future):
     mock_future_adapter.result.side_effect = BravadoTimeoutError()
     mock_operation.swagger_spec.config = {
-        'bravado': bravado_config_from_config_dict({'disable_fallback_results': False})
+        'bravado': bravado_config_from_config_dict({'disable_fallback_results': False}),
     }
 
     response = http_future.response(fallback_result=lambda e: fallback_result)
@@ -70,6 +70,16 @@ def test_fallback_result_callable(fallback_result, mock_future_adapter, mock_ope
     assert response.metadata.handled_exception_info[0] is BravadoTimeoutError
 
 
+def test_no_is_fallback_result_if_no_exceptions(http_future, mock_operation):
+    mock_operation.swagger_spec.config = {
+        'bravado': bravado_config_from_config_dict({'disable_fallback_results': False}),
+    }
+
+    with mock.patch('bravado.http_future.unmarshal_response'):
+        response = http_future.response()
+    assert response.metadata.is_fallback_result is False
+
+
 def test_no_fallback_result_if_not_in_exceptions_to_catch(fallback_result, mock_future_adapter, http_future):
     mock_future_adapter.result.side_effect = BravadoTimeoutError()
 
@@ -90,7 +100,7 @@ def test_no_fallback_result_if_not_provided(mock_future_adapter, http_future):
 def test_no_fallback_result_if_config_disabled(mock_future_adapter, mock_operation, http_future):
     mock_future_adapter.result.side_effect = BravadoTimeoutError()
     mock_operation.swagger_spec.config = {
-        'bravado': bravado_config_from_config_dict({'disable_fallback_results': True})
+        'bravado': bravado_config_from_config_dict({'disable_fallback_results': True}),
     }
 
     with pytest.raises(BravadoTimeoutError):
@@ -120,7 +130,7 @@ def test_no_force_fallback_result_if_disabled(http_future, mock_operation, mock_
         also_return_response_default=False,
     )
     mock_operation.swagger_spec.config = {
-        'bravado': bravado_config_from_config_dict({'disable_fallback_results': True})
+        'bravado': bravado_config_from_config_dict({'disable_fallback_results': True}),
     }
 
     with mock.patch('bravado.http_future.unmarshal_response', autospec=True):
@@ -132,7 +142,7 @@ def test_no_force_fallback_result_if_disabled(http_future, mock_operation, mock_
 def test_custom_response_metadata(mock_operation, http_future):
     mock_operation.swagger_spec.config = {
         'bravado': bravado_config_from_config_dict(
-            {'response_metadata_class': 'tests.http_future.HttpFuture.response_test.ResponseMetadata'})
+            {'response_metadata_class': 'tests.http_future.HttpFuture.response_test.ResponseMetadata'}),
     }
 
     with mock.patch('bravado.http_future.unmarshal_response'):
diff --git a/tests/http_future/HttpFuture/result_test.py b/tests/http_future/HttpFuture/result_test.py
index a0ad4e3..d75ed60 100644
--- a/tests/http_future/HttpFuture/result_test.py
+++ b/tests/http_future/HttpFuture/result_test.py
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 import pytest
+import typing
 from bravado_core.operation import Operation
 from bravado_core.response import IncomingResponse
 from mock import Mock
@@ -15,7 +16,8 @@ def test_200_get_swagger_spec(mock_future_adapter):
     response_adapter_type = Mock(return_value=response_adapter_instance)
     http_future = HttpFuture(
         future=mock_future_adapter,
-        response_adapter=response_adapter_type)
+        response_adapter=response_adapter_type,
+    )  # type: HttpFuture[None]
 
     assert response_adapter_instance == http_future.result()
 
@@ -44,7 +46,8 @@ def test_200_service_call(_, mock_future_adapter):
     http_future = HttpFuture(
         future=mock_future_adapter,
         response_adapter=response_adapter_type,
-        operation=Mock(spec=Operation))
+        operation=Mock(spec=Operation),
+    )  # type: HttpFuture[None]
 
     assert 'hello world' == http_future.result()
 
@@ -61,7 +64,8 @@ def test_400_service_call(mock_unmarshal_response, mock_future_adapter):
     http_future = HttpFuture(
         future=mock_future_adapter,
         response_adapter=response_adapter_type,
-        operation=Mock(spec=Operation))
+        operation=Mock(spec=Operation),
+    )  # type: HttpFuture[None]
 
     with pytest.raises(HTTPError) as excinfo:
         http_future.result()
@@ -82,7 +86,8 @@ def test_also_return_response_true(_, mock_future_adapter):
         future=mock_future_adapter,
         response_adapter=response_adapter_type,
         operation=Mock(spec=Operation),
-        request_config=RequestConfig({}, also_return_response_default=True))
+        request_config=RequestConfig({}, also_return_response_default=True),
+    )  # type: HttpFuture[typing.Tuple[str, IncomingResponse]]
 
     swagger_result, http_response = http_future.result()
 
diff --git a/tests/response_test.py b/tests/response_test.py
index 83c71bc..32d933a 100644
--- a/tests/response_test.py
+++ b/tests/response_test.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 import mock
 
+from bravado.config import RequestConfig
 from bravado.response import BravadoResponseMetadata
 
 
@@ -12,8 +13,8 @@ def test_response_metadata_times():
             start_time=5,
             request_end_time=10,
             handled_exception_info=None,
-            request_config=None,
-        )
+            request_config=RequestConfig({}, also_return_response_default=False),
+        )  # type: BravadoResponseMetadata[None]
 
     assert metadata.elapsed_time == 6
     assert metadata.request_elapsed_time == 5
diff --git a/tests/testing/response_mocks_test.py b/tests/testing/response_mocks_test.py
index 4df9f96..b156cd3 100644
--- a/tests/testing/response_mocks_test.py
+++ b/tests/testing/response_mocks_test.py
@@ -3,7 +3,9 @@ import inspect
 
 import mock
 import pytest
+from bravado_core.response import IncomingResponse
 
+from bravado.config import RequestConfig
 from bravado.exception import HTTPServerError
 from bravado.http_future import HttpFuture
 from bravado.response import BravadoResponseMetadata
@@ -19,12 +21,12 @@ def mock_result():
 @pytest.fixture
 def mock_metadata():
     return BravadoResponseMetadata(
-        incoming_response=None,
+        incoming_response=IncomingResponse(),
         swagger_result=None,
         start_time=5,
         request_end_time=6,
         handled_exception_info=None,
-        request_config=None,
+        request_config=RequestConfig({}, also_return_response_default=False),
     )
 
 
@@ -53,6 +55,7 @@ def test_bravado_response_custom_metadata(mock_result, mock_metadata):
 
 
 def test_fallback_result_bravado_response(mock_result):
+    # type: (mock.NonCallableMagicMock) -> None
     response_mock = FallbackResultBravadoResponseMock()
     response = response_mock(fallback_result=mock_result)
 

pip install -e .[test]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
apt-get update apt-get install -y gcc
3.9
requirements-dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
arrow==1.3.0
attrs==25.3.0
bottle==0.13.2
-e git+https://github.com/Yelp/bravado.git@e479b9286bcf5514e947d258acb1b870741b94ac#egg=bravado
bravado-core==6.1.1
certifi==2025.1.31
cfgv==3.4.0
charset-normalizer==3.4.1
coverage==7.8.0
distlib==0.3.9
ephemeral-port-reserve==1.1.4
exceptiongroup==1.2.2
execnet==2.1.1
filelock==3.18.0
fqdn==1.5.1
httpretty==1.1.4
identify==2.6.9
idna==3.10
importlib_resources==6.5.2
iniconfig==2.1.0
isoduration==20.11.0
jsonpointer==3.0.0
jsonref==1.1.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
mock==5.2.0
monotonic==1.6
msgpack==1.1.0
msgpack-python==0.5.6
nodeenv==1.9.1
packaging==24.2
platformdirs==4.3.7
pluggy==1.5.0
pre_commit==4.2.0
pytest==8.3.5
pytest-asyncio==0.26.0
pytest-cov==6.0.0
pytest-mock==3.14.0
pytest-xdist==3.6.1
python-dateutil==2.9.0.post0
pytz==2025.2
PyYAML==6.0.2
referencing==0.36.2
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.24.0
simplejson==3.20.1
six==1.17.0
swagger-spec-validator==3.0.4
tomli==2.2.1
types-python-dateutil==2.9.0.20241206
typing_extensions==4.13.0
u-msgpack-python==2.8.0
uri-template==1.3.0
urllib3==2.3.0
virtualenv==20.29.3
webcolors==24.11.1
zipp==3.21.0

name: bravado
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - arrow==1.3.0
      - attrs==25.3.0
      - bottle==0.13.2
      - bravado-core==6.1.1
      - certifi==2025.1.31
      - cfgv==3.4.0
      - charset-normalizer==3.4.1
      - coverage==7.8.0
      - distlib==0.3.9
      - ephemeral-port-reserve==1.1.4
      - exceptiongroup==1.2.2
      - execnet==2.1.1
      - filelock==3.18.0
      - fqdn==1.5.1
      - httpretty==1.1.4
      - identify==2.6.9
      - idna==3.10
      - importlib-resources==6.5.2
      - iniconfig==2.1.0
      - isoduration==20.11.0
      - jsonpointer==3.0.0
      - jsonref==1.1.0
      - jsonschema==4.23.0
      - jsonschema-specifications==2024.10.1
      - mock==5.2.0
      - monotonic==1.6
      - msgpack==1.1.0
      - msgpack-python==0.5.6
      - nodeenv==1.9.1
      - packaging==24.2
      - platformdirs==4.3.7
      - pluggy==1.5.0
      - pre-commit==4.2.0
      - pytest==8.3.5
      - pytest-asyncio==0.26.0
      - pytest-cov==6.0.0
      - pytest-mock==3.14.0
      - pytest-xdist==3.6.1
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - pyyaml==6.0.2
      - referencing==0.36.2
      - requests==2.32.3
      - rfc3339-validator==0.1.4
      - rfc3986-validator==0.1.1
      - rpds-py==0.24.0
      - simplejson==3.20.1
      - six==1.17.0
      - swagger-spec-validator==3.0.4
      - tomli==2.2.1
      - types-python-dateutil==2.9.0.20241206
      - typing-extensions==4.13.0
      - u-msgpack-python==2.8.0
      - uri-template==1.3.0
      - urllib3==2.3.0
      - virtualenv==20.29.3
      - webcolors==24.11.1
      - zipp==3.21.0
prefix: /opt/conda/envs/bravado

tests/http_future/HttpFuture/response_test.py::test_no_is_fallback_result_if_no_exceptions
tests/client_test.py::test_remove_bravado_configs tests/client_test.py::test_also_return_response tests/http_client_test.py::RequestsClientTestCase::test_api_key tests/http_client_test.py::RequestsClientTestCase::test_api_key_header tests/http_client_test.py::RequestsClientTestCase::test_api_key_header_overwrite tests/http_client_test.py::RequestsClientTestCase::test_auth_leak tests/http_client_test.py::RequestsClientTestCase::test_basic_auth tests/http_client_test.py::RequestsClientTestCase::test_real_post tests/http_client_test.py::RequestsClientTestCase::test_simple_get tests/http_client_test.py::RequestsClientTestCase::test_unicode_to_utf8_encode_params tests/http_future/HttpFuture/cancel_test.py::test_cancel tests/http_future/HttpFuture/cancel_test.py::test_cancel_is_backwards_compatible tests/http_future/HttpFuture/response_test.py::test_fallback_result[None] tests/http_future/HttpFuture/response_test.py::test_fallback_result[False] tests/http_future/HttpFuture/response_test.py::test_fallback_result[fallback_result2] tests/http_future/HttpFuture/response_test.py::test_fallback_result[fallback_result3] tests/http_future/HttpFuture/response_test.py::test_fallback_result[fallback_result4] tests/http_future/HttpFuture/response_test.py::test_fallback_result_callable tests/http_future/HttpFuture/response_test.py::test_no_fallback_result_if_not_in_exceptions_to_catch tests/http_future/HttpFuture/response_test.py::test_no_fallback_result_if_not_provided tests/http_future/HttpFuture/response_test.py::test_no_fallback_result_if_config_disabled tests/http_future/HttpFuture/response_test.py::test_force_fallback_result tests/http_future/HttpFuture/response_test.py::test_no_force_fallback_result_if_disabled tests/http_future/HttpFuture/response_test.py::test_custom_response_metadata tests/http_future/HttpFuture/result_test.py::test_200_get_swagger_spec tests/http_future/HttpFuture/result_test.py::test_500_get_swagger_spec tests/http_future/HttpFuture/result_test.py::test_200_service_call tests/http_future/HttpFuture/result_test.py::test_400_service_call tests/http_future/HttpFuture/result_test.py::test_also_return_response_true tests/response_test.py::test_response_metadata_times tests/testing/response_mocks_test.py::test_response_mock_signatures tests/testing/response_mocks_test.py::test_bravado_response tests/testing/response_mocks_test.py::test_bravado_response_custom_metadata tests/testing/response_mocks_test.py::test_fallback_result_bravado_response tests/testing/response_mocks_test.py::test_fallback_result_bravado_response_callable tests/testing/response_mocks_test.py::test_fallback_result_bravado_response_custom_metadata tests/testing/response_mocks_test.py::test_fallback_result_response_without_fallback_result
setup.py bravado/swagger_model.py mypy.ini bravado/http_future.py bravado/response.py
setup.py bravado/swagger_model.py mypy.ini bravado/http_future.py bravado/response.py