Skip to content

Commit

Permalink
Fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Jun 22, 2024
1 parent f21b715 commit 988c416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Crypto/Protocol/DH.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ class RequestParams(TypedDict, Generic[T]):
eph_priv: NotRequired[EccKey]
eph_pub: NotRequired[EccKey]

def import_x25519_public_key(encoded: bytes) -> EccKey: ...
def import_x25519_private_key(encoded: bytes) -> EccKey: ...
def key_agreement(**kwargs: Unpack[RequestParams[T]]) -> T: ...
2 changes: 1 addition & 1 deletion lib/Crypto/PublicKey/ECC.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class EccXPoint(object):
def size_in_bits(self) -> int: ...
def __imul__(self, scalar: int) -> EccXPoint: ...
def __mul__(self, scalar: int) -> EccXPoint: ...
def __rmul__(self, left_hand: int): -> EccXPoint: ...
def __rmul__(self, left_hand: int) -> EccXPoint: ...


class ExportParams(TypedDict):
Expand Down

0 comments on commit 988c416

Please sign in to comment.