mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 02:17:19 +00:00
mypy: Use Callable as parameter for simulated_queue_client.
Previously the type was annotated as 'type'.
This commit is contained in:
committed by
Tim Abbott
parent
6717f361ec
commit
3ca34bebdc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user