mirror of https://github.com/zulip/zulip.git
mypy: Use Callable as parameter for simulated_queue_client.
Previously the type was annotated as 'type'.
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue