mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix Py2 hashlib.new arg type (#157)
This commit is contained in:
committed by
Guido van Rossum
parent
f5f349ca8f
commit
0f67b2a675
@@ -11,7 +11,7 @@ class _hash(object):
|
||||
def hexdigest(self) -> str: ...
|
||||
def copy(self) -> _hash: ...
|
||||
|
||||
def new(algo: str = ...) -> _hash: ...
|
||||
def new(name: str, data: str = ...) -> _hash: ...
|
||||
|
||||
def md5(s: str = ...) -> _hash: ...
|
||||
def sha1(s: str = ...) -> _hash: ...
|
||||
|
||||
Reference in New Issue
Block a user