Skip to content

Commit

Permalink
Replace dataclasses with subclasses for better type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 18, 2024
1 parent c35f76f commit d6c71aa
Show file tree
Hide file tree
Showing 2 changed files with 239 additions and 178 deletions.
8 changes: 4 additions & 4 deletions fido2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from .ctap2.extensions import (
Ctap2Extension,
ClientExtensionOutputs,
ExtensionProcessor,
AuthenticationExtensionProcessor,
)
from .webauthn import (
Aaguid,
Expand Down Expand Up @@ -425,8 +425,8 @@ def __init__(
self,
client_data: CollectedClientData,
assertions: Sequence[AssertionResponse],
extensions: Sequence[ExtensionProcessor],
pin_token: Optional[str],
extensions: Sequence[AuthenticationExtensionProcessor],
pin_token: Optional[bytes],
pin_protocol: Optional[PinProtocol],
):
super().__init__(client_data, assertions)
Expand Down Expand Up @@ -693,7 +693,7 @@ def _do_make():
extension_inputs = {}
try:
for ext in used_extensions:
auth_input = ext.prepare_inputs(None)
auth_input = ext.prepare_inputs()
if auth_input:
extension_inputs.update(auth_input)
except ValueError as e:
Expand Down
Loading

0 comments on commit d6c71aa

Please sign in to comment.