Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RadoRado committed Jan 1, 2025
1 parent b432a01 commit 82806ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion styleguide_example/users/apis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.shortcuts import Http404
from django.http import Http404
from rest_framework import serializers
from rest_framework.response import Response
from rest_framework.views import APIView
Expand Down
4 changes: 2 additions & 2 deletions styleguide_example/users/services.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, List

from django.db import transaction

Expand All @@ -17,7 +17,7 @@ def user_create(

@transaction.atomic
def user_update(*, user: BaseUser, data) -> BaseUser:
non_side_effect_fields = [
non_side_effect_fields: List[str] = [
# "first_name",
# "last_name"
]
Expand Down

0 comments on commit 82806ae

Please sign in to comment.