Skip to content

Commit 2911447

Browse files
authored
Use non-deprecated name in pyproject.toml (#812)
* Use non-deprecated name in pyproject.toml * Update secret.py
1 parent 31dc2c1 commit 2911447

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
requires = [
44
"setuptools>=40.8.0",
55
"wheel",
6-
"cffi>=1.4.1; python_implementation != 'PyPy'",
6+
"cffi>=1.4.1; platform_python_implementation != 'PyPy'",
77
]
88
build-backend = "setuptools.build_meta"
99

src/nacl/secret.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class SecretBox(encoding.Encodable, StringFixer):
5252
KEY_SIZE: ClassVar[int] = nacl.bindings.crypto_secretbox_KEYBYTES
5353
NONCE_SIZE: ClassVar[int] = nacl.bindings.crypto_secretbox_NONCEBYTES
5454
MACBYTES: ClassVar[int] = nacl.bindings.crypto_secretbox_MACBYTES
55-
MESSAGEBYTES_MAX: ClassVar[
56-
int
57-
] = nacl.bindings.crypto_secretbox_MESSAGEBYTES_MAX
55+
MESSAGEBYTES_MAX: ClassVar[int] = (
56+
nacl.bindings.crypto_secretbox_MESSAGEBYTES_MAX
57+
)
5858

5959
def __init__(
6060
self, key: bytes, encoder: encoding.Encoder = encoding.RawEncoder

0 commit comments

Comments
 (0)