mypy: Use Callable as parameter for simulated_queue_client.

Previously the type was annotated as 'type'.
This commit is contained in:
neiljp (Neil Pilgrim) 2017-08-03 20:38:16 -07:00 committed by Tim Abbott
parent 6717f361ec
commit 3ca34bebdc
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def stub_event_queue_user_events(event_queue_return, user_events_return):
@contextmanager
def simulated_queue_client(client):
# type: (type) -> Iterator[None]
# type: (Callable) -> Iterator[None]
real_SimpleQueueClient = queue_processors.SimpleQueueClient
queue_processors.SimpleQueueClient = client # type: ignore # https://github.com/JukkaL/mypy/issues/1152
yield