mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
md5.md5(string) (#1119)
* md5.md5(string) * switch md5 from str to AnyStr, add missing constants * add missing import * digest() and hexdigest() never return unicode * make md5.md5 an alias of, and fix, hashlib_hash * remove unnecessary import * fix duplicate block_size * md5.md5 and md5.new are aliases for hashlib.md5
This commit is contained in:
committed by
Jelle Zijlstra
parent
838d1b7436
commit
8b50522273
@@ -1,11 +1,6 @@
|
||||
# Stubs for Python 2.7 md5 stdlib module
|
||||
|
||||
class md5(object):
|
||||
def update(self, arg: str) -> None: ...
|
||||
def digest(self) -> str: ...
|
||||
def hexdigest(self) -> str: ...
|
||||
def copy(self) -> md5: ...
|
||||
from hashlib import md5 as md5, md5 as new
|
||||
|
||||
def new(string: str = ...) -> md5: ...
|
||||
blocksize = 0
|
||||
digest_size = 0
|
||||
|
||||
Reference in New Issue
Block a user