Skip to content

Commit 8d0465b

Browse files
committed
Change type hint of _fields_ from list to Sequence
Signed-off-by: andrew000 <[email protected]>
1 parent 5dd0557 commit 8d0465b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oqs/oqs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class KeyEncapsulation(ct.Structure):
267267
free | OQS_KEM_free
268268
"""
269269

270-
_fields_: ClassVar[list[tuple[str, Any]]] = [
270+
_fields_: ClassVar[Sequence[tuple[str, Any]]] = [
271271
("method_name", ct.c_char_p),
272272
("alg_version", ct.c_char_p),
273273
("claimed_nist_level", ct.c_ubyte),
@@ -464,7 +464,7 @@ class Signature(ct.Structure):
464464
free | OQS_SIG_free
465465
"""
466466

467-
_fields_: ClassVar[list[tuple[str, Any]]] = [
467+
_fields_: ClassVar[Sequence[tuple[str, Any]]] = [
468468
("method_name", ct.c_char_p),
469469
("alg_version", ct.c_char_p),
470470
("claimed_nist_level", ct.c_ubyte),

0 commit comments

Comments
 (0)