mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-09 09:59:16 +08:00
Add @disjoint_base decorator in the stdlib (#14599)
And fix some other new stubtest finds.
This commit is contained in:
+7
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user