mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 02:41:16 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -5,7 +5,7 @@ from typing import Tuple, Union
|
||||
_DataType = Union[str, unicode, bytearray, buffer, memoryview]
|
||||
|
||||
class _hash(object): # This is not actually in the module namespace.
|
||||
name = ... # type: str
|
||||
name: str
|
||||
block_size = 0
|
||||
digest_size = 0
|
||||
digestsize = 0
|
||||
@@ -24,8 +24,8 @@ def sha256(s: _DataType = ...) -> _hash: ...
|
||||
def sha384(s: _DataType = ...) -> _hash: ...
|
||||
def sha512(s: _DataType = ...) -> _hash: ...
|
||||
|
||||
algorithms = ... # type: Tuple[str, ...]
|
||||
algorithms_guaranteed = ... # type: Tuple[str, ...]
|
||||
algorithms_available = ... # type: Tuple[str, ...]
|
||||
algorithms: Tuple[str, ...]
|
||||
algorithms_guaranteed: Tuple[str, ...]
|
||||
algorithms_available: Tuple[str, ...]
|
||||
|
||||
def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user