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:
Tim Abbott 2021-06-07 13:31:28 -07:00
parent 5f5323be7d
commit d84d61f718
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ from zerver.lib.queue import queue_json_publish, retry_event
from zerver.lib.request import JsonableError
from zerver.lib.utils import statsd
from zerver.middleware import async_request_timer_restart
from zerver.models import UserProfile
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.exceptions import BadEventQueueIdError
@ -1158,7 +1157,7 @@ def process_message_update_event(
def maybe_enqueue_notifications_for_message_update(
user_profile_id: UserProfile,
user_profile_id: int,
message_id: int,
private_message: bool,
mentioned: bool,