Skip to content

Commit

Permalink
chore: remove unused ignore comments for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 committed Feb 15, 2024
1 parent fc4d53e commit 0a59a0b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ lines-between-types = 1
[tool.mypy]
show_column_numbers = true
show_error_codes = true
warn_unused_ignores = true

# XXX: add new rules here
check_untyped_defs = true
Expand Down
4 changes: 2 additions & 2 deletions src/accounts/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Meta:
def validate_password(self, value):
# Validate the password using Django's built-in validators
temp_user = Account(**self.initial_data)
validate_password(value, temp_user) # type: ignore
validate_password(value, temp_user)
return value

def create(self, validated_data):
Expand Down Expand Up @@ -72,7 +72,7 @@ class ResetPasswordSerializer(serializers.Serializer):
def validate_password(self, value):
# Validate the password using Django's built-in validators
temp_user = Account(**self.initial_data)
validate_password(value, temp_user) # type: ignore
validate_password(value, temp_user)
return value


Expand Down
2 changes: 1 addition & 1 deletion src/tests/accounts/endpoints/test_login_credentials.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from accounts.models import Account # type: ignore
from accounts.models import Account
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
Expand Down
2 changes: 1 addition & 1 deletion src/tests/accounts/endpoints/test_reset_password.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from accounts.models import Account, PasswordResetRequestModel # type: ignore
from accounts.models import Account, PasswordResetRequestModel
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
Expand Down

0 comments on commit 0a59a0b

Please sign in to comment.