Add @disjoint_base decorator in the stdlib (#14599)

And fix some other new stubtest finds.
This commit is contained in:
Jelle Zijlstra
2025-08-24 07:27:14 -07:00
committed by GitHub
parent 2565f34946
commit e8ba06f710
55 changed files with 701 additions and 307 deletions
+7 -1
View File
@@ -1,5 +1,6 @@
import sys
from typing import Final, NamedTuple, type_check_only
from typing_extensions import disjoint_base
if sys.platform != "win32":
@type_check_only
@@ -9,7 +10,12 @@ if sys.platform != "win32":
salt_chars: int
total_size: int
class _Method(_MethodBase): ...
if sys.version_info >= (3, 12):
class _Method(_MethodBase): ...
else:
@disjoint_base
class _Method(_MethodBase): ...
METHOD_CRYPT: Final[_Method]
METHOD_MD5: Final[_Method]
METHOD_SHA256: Final[_Method]