mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
mypy: Slightly clarify Callable parameter to WebsocketClient.__init__.
This commit is contained in:
parent
452802bf75
commit
7288451329
@ -24,7 +24,8 @@ from typing import Any, Callable, Dict, Generator, Iterable, Optional
|
||||
class WebsocketClient(object):
|
||||
def __init__(self, host_url, sockjs_url, sender_email, run_on_start, validate_ssl=True,
|
||||
**run_kwargs):
|
||||
# type: (str, str, str, Callable, bool, **Any) -> None
|
||||
# NOTE: Callable should take a WebsocketClient & kwargs, but this is not standardised
|
||||
# type: (str, str, str, Callable[..., None], bool, **Any) -> None
|
||||
self.validate_ssl = validate_ssl
|
||||
self.auth_email = sender_email
|
||||
self.user_profile = get_system_bot(sender_email)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user