mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
mypy: Use Python 3 syntax for typing in views/tutorial.py.
This commit is contained in:
@@ -9,9 +9,8 @@ from zerver.models import UserProfile
|
||||
|
||||
@human_users_only
|
||||
@has_request_variables
|
||||
def set_tutorial_status(request, user_profile,
|
||||
status=REQ(validator=check_string)):
|
||||
# type: (HttpRequest, UserProfile, str) -> HttpResponse
|
||||
def set_tutorial_status(request: HttpRequest, user_profile: UserProfile,
|
||||
status: str=REQ(validator=check_string)) -> HttpResponse:
|
||||
if status == 'started':
|
||||
user_profile.tutorial_status = UserProfile.TUTORIAL_STARTED
|
||||
elif status == 'finished':
|
||||
|
||||
Reference in New Issue
Block a user