Skip to content

Commit

Permalink
Fixes #634 - Avoid direct dependency on pydantic
Browse files Browse the repository at this point in the history
Thanks to Dominik George for the suggestion.
  • Loading branch information
claudep committed Aug 14, 2023
1 parent 1bdf549 commit a11acb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
extras_require={
'call': ['twilio>=6.0'],
'sms': ['twilio>=6.0'],
'webauthn': ['webauthn>=1.6.0,<1.99', 'pydantic>=1.9.0,<1.99'],
'webauthn': ['webauthn>=1.6.0,<1.99'],
'yubikey': ['django-otp-yubikey'],
'phonenumbers': ['phonenumbers>=7.0.9,<8.99'],
'phonenumberslite': ['phonenumberslite>=7.0.9,<8.99'],
Expand Down
2 changes: 1 addition & 1 deletion two_factor/plugins/webauthn/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.utils import timezone
from django.utils.module_loading import import_string
from django.utils.translation import gettext_lazy as _
from pydantic.error_wrappers import ValidationError as PydanticValidationError
from pydantic import ValidationError as PydanticValidationError

Check warning on line 9 in two_factor/plugins/webauthn/forms.py

View check run for this annotation

Codecov / codecov/patch

two_factor/plugins/webauthn/forms.py#L9

Added line #L9 was not covered by tests
from webauthn.helpers.exceptions import InvalidAuthenticationResponse
from webauthn.helpers.structs import (
PublicKeyCredentialRpEntity, PublicKeyCredentialUserEntity,
Expand Down

0 comments on commit a11acb9

Please sign in to comment.