mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
crypt is not available on Windows (#6738)
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
import sys
|
||||
|
||||
class _Method: ...
|
||||
if sys.platform != "win32":
|
||||
class _Method: ...
|
||||
METHOD_CRYPT: _Method
|
||||
METHOD_MD5: _Method
|
||||
METHOD_SHA256: _Method
|
||||
METHOD_SHA512: _Method
|
||||
if sys.version_info >= (3, 7):
|
||||
METHOD_BLOWFISH: _Method
|
||||
|
||||
METHOD_CRYPT: _Method
|
||||
METHOD_MD5: _Method
|
||||
METHOD_SHA256: _Method
|
||||
METHOD_SHA512: _Method
|
||||
if sys.version_info >= (3, 7):
|
||||
METHOD_BLOWFISH: _Method
|
||||
methods: list[_Method]
|
||||
|
||||
methods: list[_Method]
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def mksalt(method: _Method | None = ..., *, rounds: int | None = ...) -> str: ...
|
||||
|
||||
else:
|
||||
def mksalt(method: _Method | None = ...) -> str: ...
|
||||
|
||||
def crypt(word: str, salt: str | _Method | None = ...) -> str: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def mksalt(method: _Method | None = ..., *, rounds: int | None = ...) -> str: ...
|
||||
else:
|
||||
def mksalt(method: _Method | None = ...) -> str: ...
|
||||
def crypt(word: str, salt: str | _Method | None = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user