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

View File

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