Skip to content

Commit

Permalink
Address typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Nov 12, 2024
1 parent 61e2384 commit 263f9c9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import hashlib
from binascii import hexlify, unhexlify
from typing import List, Tuple
from typing import Callable, List, Tuple

from hypothesis import given, settings
from hypothesis.strategies import binary, integers
Expand Down Expand Up @@ -97,12 +97,14 @@ def test_secretbox_easy():
@pytest.mark.parametrize(
("encoder", "decoder"),
[
[bytes, bytearray],
[bytearray, bytes],
[bytearray, bytearray],
(bytes, bytearray),
(bytearray, bytes),
(bytearray, bytearray),
],
)
def test_secretbox_bytearray(encoder, decoder):
def test_secretbox_bytearray(
encoder: Callable[[bytes], bytes], decoder: Callable[[bytes], bytes]
):
key = b"\x00" * c.crypto_secretbox_KEYBYTES
msg = b"message"
nonce = b"\x01" * c.crypto_secretbox_NONCEBYTES
Expand Down

0 comments on commit 263f9c9

Please sign in to comment.