Skip to content

Commit 263f9c9

Browse files
Address typing error
1 parent 61e2384 commit 263f9c9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_bindings.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import hashlib
1717
from binascii import hexlify, unhexlify
18-
from typing import List, Tuple
18+
from typing import Callable, List, Tuple
1919

2020
from hypothesis import given, settings
2121
from hypothesis.strategies import binary, integers
@@ -97,12 +97,14 @@ def test_secretbox_easy():
9797
@pytest.mark.parametrize(
9898
("encoder", "decoder"),
9999
[
100-
[bytes, bytearray],
101-
[bytearray, bytes],
102-
[bytearray, bytearray],
100+
(bytes, bytearray),
101+
(bytearray, bytes),
102+
(bytearray, bytearray),
103103
],
104104
)
105-
def test_secretbox_bytearray(encoder, decoder):
105+
def test_secretbox_bytearray(
106+
encoder: Callable[[bytes], bytes], decoder: Callable[[bytes], bytes]
107+
):
106108
key = b"\x00" * c.crypto_secretbox_KEYBYTES
107109
msg = b"message"
108110
nonce = b"\x01" * c.crypto_secretbox_NONCEBYTES

0 commit comments

Comments
 (0)