core: add anotation type

This commit is contained in:
starnakin 2023-10-29 21:00:18 +01:00
parent e253631f09
commit 246213c5b8

View File

@ -23,7 +23,7 @@ class RegisterView(View):
if User.objects.filter(username=username).exists():
return HttpResponse(USERNAME_ALREADY_USED)
user = User.objects.create_user(username, password=password)
user: User = User.objects.create_user(username, password=password)
user.save()
return HttpResponse(USER_ADDED)