From d39a50d813821f7520baa96bb4f25736af9dcafb Mon Sep 17 00:00:00 2001 From: Devon Stewart Date: Tue, 12 Nov 2024 12:04:30 -0800 Subject: [PATCH] Address typing error --- tests/test_bindings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_bindings.py b/tests/test_bindings.py index 99c4f651..a4724c49 100644 --- a/tests/test_bindings.py +++ b/tests/test_bindings.py @@ -15,7 +15,7 @@ import hashlib from binascii import hexlify, unhexlify -from typing import List, Tuple +from typing import Any, Callable, List, Tuple from hypothesis import given, settings from hypothesis.strategies import binary, integers @@ -97,12 +97,12 @@ 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[[Any], bytes], decoder: Callable[[Any], bytes]): key = b"\x00" * c.crypto_secretbox_KEYBYTES msg = b"message" nonce = b"\x01" * c.crypto_secretbox_NONCEBYTES