Wrap PACK_NONCE in staticmethod (#1002)

This commit is contained in:
J. Nick Koston 2024-11-27 13:26:45 -08:00 committed by GitHub
parent aa40e10f76
commit 472d6888ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ _bytes = bytes
class ChaCha20CipherReuseable(ChaCha20Cipher): # type: ignore[misc]
"""ChaCha20 cipher that can be reused."""
format_nonce = PACK_NONCE
format_nonce = staticmethod(PACK_NONCE)
@property
def klass(self) -> type[ChaCha20Poly1305Reusable]: