mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -11,17 +11,17 @@ class _hash(object):
|
||||
def hexdigest(self) -> str: ...
|
||||
def copy(self) -> _hash: ...
|
||||
|
||||
def new(algo: str = None) -> _hash: ...
|
||||
def new(algo: str = ...) -> _hash: ...
|
||||
|
||||
def md5(s: str = None) -> _hash: ...
|
||||
def sha1(s: str = None) -> _hash: ...
|
||||
def sha224(s: str = None) -> _hash: ...
|
||||
def sha256(s: str = None) -> _hash: ...
|
||||
def sha384(s: str = None) -> _hash: ...
|
||||
def sha512(s: str = None) -> _hash: ...
|
||||
def md5(s: str = ...) -> _hash: ...
|
||||
def sha1(s: str = ...) -> _hash: ...
|
||||
def sha224(s: str = ...) -> _hash: ...
|
||||
def sha256(s: str = ...) -> _hash: ...
|
||||
def sha384(s: str = ...) -> _hash: ...
|
||||
def sha512(s: str = ...) -> _hash: ...
|
||||
|
||||
algorithms = ... # type: Tuple[str, ...]
|
||||
algorithms_guaranteed = ... # type: Tuple[str, ...]
|
||||
algorithms_available = ... # type: Tuple[str, ...]
|
||||
|
||||
def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = None) -> str: ...
|
||||
def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user