mirror of https://github.com/zulip/zulip.git
mypy: Fix user_id typo in maybe_enqueue_notifications_for_message_update.
This also lets us remove importing UserProfile at all in this module.
This commit is contained in:
parent
5f5323be7d
commit
d84d61f718
|
@ -42,7 +42,6 @@ from zerver.lib.queue import queue_json_publish, retry_event
|
||||||
from zerver.lib.request import JsonableError
|
from zerver.lib.request import JsonableError
|
||||||
from zerver.lib.utils import statsd
|
from zerver.lib.utils import statsd
|
||||||
from zerver.middleware import async_request_timer_restart
|
from zerver.middleware import async_request_timer_restart
|
||||||
from zerver.models import UserProfile
|
|
||||||
from zerver.tornado.autoreload import add_reload_hook
|
from zerver.tornado.autoreload import add_reload_hook
|
||||||
from zerver.tornado.descriptors import clear_descriptor_by_handler_id, set_descriptor_by_handler_id
|
from zerver.tornado.descriptors import clear_descriptor_by_handler_id, set_descriptor_by_handler_id
|
||||||
from zerver.tornado.exceptions import BadEventQueueIdError
|
from zerver.tornado.exceptions import BadEventQueueIdError
|
||||||
|
@ -1158,7 +1157,7 @@ def process_message_update_event(
|
||||||
|
|
||||||
|
|
||||||
def maybe_enqueue_notifications_for_message_update(
|
def maybe_enqueue_notifications_for_message_update(
|
||||||
user_profile_id: UserProfile,
|
user_profile_id: int,
|
||||||
message_id: int,
|
message_id: int,
|
||||||
private_message: bool,
|
private_message: bool,
|
||||||
mentioned: bool,
|
mentioned: bool,
|
||||||
|
|
Loading…
Reference in New Issue