Skip to content

Commit 82806ae

Browse files
committed
Fix mypy errors
1 parent b432a01 commit 82806ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

styleguide_example/users/apis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.shortcuts import Http404
1+
from django.http import Http404
22
from rest_framework import serializers
33
from rest_framework.response import Response
44
from rest_framework.views import APIView

styleguide_example/users/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import Optional, List
22

33
from django.db import transaction
44

@@ -17,7 +17,7 @@ def user_create(
1717

1818
@transaction.atomic
1919
def user_update(*, user: BaseUser, data) -> BaseUser:
20-
non_side_effect_fields = [
20+
non_side_effect_fields: List[str] = [
2121
# "first_name",
2222
# "last_name"
2323
]

0 commit comments

Comments
 (0)