From cdee3dfb532e762579de7d44057e7f0f8a217f17 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 11 Sep 2016 18:06:25 -0700 Subject: [PATCH] Annotate test_helpers.instrument_url(). --- zerver/lib/test_helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.py index 640787f958..c2db4fe158 100644 --- a/zerver/lib/test_helpers.py +++ b/zerver/lib/test_helpers.py @@ -199,7 +199,10 @@ class POSTRequestMock(object): INSTRUMENTING = os.environ.get('TEST_INSTRUMENT_URL_COVERAGE', '') == 'TRUE' INSTRUMENTED_CALLS = [] +UrlFuncT = Callable[..., HttpResponse] # TODO: make more specific + def instrument_url(f): + # type: (UrlFuncT) -> UrlFuncT if not INSTRUMENTING: return f else: