Skip to content

Commit

Permalink
signals: Fix mypy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott committed Mar 26, 2017
1 parent 234a1f8 commit 18e6698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zerver/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from django.template import loader
from django.utils import timezone
from typing import Any, Dict, Optional
from zerver.models import UserProfile

def get_device_browser(user_agent):
# type: (str) -> Optional[str]
Expand Down Expand Up @@ -53,7 +54,6 @@ def email_on_new_login(sender, user, request, **kwargs):
# We import here to minimize the dependencies of this module,
# since it runs as part of `manage.py` initialization
from zerver.context_processors import common_context
from zerver.models import UserProfile

if not settings.SEND_LOGIN_EMAILS:
return
Expand Down

0 comments on commit 18e6698

Please sign in to comment.