add several NamedTuple base classes (#12987)

This commit is contained in:
Stephen Morton authored and GitHub committed 2024-11-21 10:52:31 +01:00
1 parent 0fb3a092c7
commit 32f48a5eae
11 files changed
+47 -52

No files matched your search

+9 -2
View File
@@ -1,8 +1,15 @@
import sys
from typing import Final
from typing import Final, NamedTuple, type_check_only
if sys.platform != "win32":
class _Method: ...
@type_check_only
class _MethodBase(NamedTuple):
name: str
ident: str | None
salt_chars: int
total_size: int
class _Method(_MethodBase): ...
METHOD_CRYPT: Final[_Method]
METHOD_MD5: Final[_Method]
METHOD_SHA256: Final[_Method]