mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
implement some minor 3.7 features (#1966)
References: - https://docs.python.org/dev/library/datetime.html#datetime.datetime.fromisoformat - https://docs.python.org/dev/library/crypt.html#crypt.mksalt - https://docs.python.org/dev/library/contextlib.html#contextlib.AbstractAsyncContextManager - https://docs.python.org/dev/library/calendar.html#calendar.HTMLCalendar.cssclasses - https://docs.python.org/dev/library/binascii.html#binascii.b2a_uu Part of #1965.
This commit is contained in:
@@ -9,10 +9,15 @@ if sys.version_info >= (3, 3):
|
||||
METHOD_MD5: _Method
|
||||
METHOD_SHA256: _Method
|
||||
METHOD_SHA512: _Method
|
||||
if sys.version_info >= (3, 7):
|
||||
METHOD_BLOWFISH: _Method
|
||||
|
||||
methods: List[_Method]
|
||||
|
||||
def mksalt(method: Optional[_Method] = ...) -> str: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def mksalt(method: Optional[_Method] = ..., *, rounds: Optional[int] = ...) -> str: ...
|
||||
else:
|
||||
def mksalt(method: Optional[_Method] = ...) -> str: ...
|
||||
def crypt(word: str, salt: Optional[Union[str, _Method]] = ...) -> str: ...
|
||||
else:
|
||||
def crypt(word: str, salt: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user