Skip to content

Commit 2cfd182

Browse files
committed
Guard hashlib all update
1 parent 76a3d35 commit 2cfd182

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

stdlib/hashlib.pyi

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ from _typeshed import ReadableBuffer
2222
from collections.abc import Callable, Set as AbstractSet
2323
from typing import Protocol, type_check_only
2424

25-
if sys.version_info >= (3, 11):
25+
if sys.version_info >= (3, 15):
2626
__all__ = (
2727
"md5",
2828
"sha1",
@@ -45,6 +45,28 @@ if sys.version_info >= (3, 11):
4545
"pbkdf2_hmac",
4646
"scrypt",
4747
)
48+
elif sys.version_info >= (3, 11):
49+
__all__ = (
50+
"md5",
51+
"sha1",
52+
"sha224",
53+
"sha256",
54+
"sha384",
55+
"sha512",
56+
"blake2b",
57+
"blake2s",
58+
"sha3_224",
59+
"sha3_256",
60+
"sha3_384",
61+
"sha3_512",
62+
"shake_128",
63+
"shake_256",
64+
"new",
65+
"algorithms_guaranteed",
66+
"algorithms_available",
67+
"file_digest",
68+
"pbkdf2_hmac",
69+
)
4870
else:
4971
__all__ = (
5072
"md5",

0 commit comments

Comments
 (0)