From 4b5be189f32675554f8dfaec131d34161f033996 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 21 Sep 2015 14:20:02 -0700 Subject: [PATCH] add missing constructors to _sha256, _sha512 --- builtins/2.7/_sha256.pyi | 2 ++ builtins/2.7/_sha512.pyi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/builtins/2.7/_sha256.pyi b/builtins/2.7/_sha256.pyi index e5181a883..a429ec7e0 100644 --- a/builtins/2.7/_sha256.pyi +++ b/builtins/2.7/_sha256.pyi @@ -3,6 +3,7 @@ class sha224(object): block_size = ... # type: int digest_size = ... # type: int digestsize = ... # type: int + def __init__(self, init: Optional[str]) -> None: ... def copy(self) -> "sha224": ... def digest(self) -> str: ... def hexdigest(self) -> str: ... @@ -13,6 +14,7 @@ class sha256(object): block_size = ... # type: int digest_size = ... # type: int digestsize = ... # type: int + def __init__(self, init: Optional[str]) -> None: ... def copy(self) -> "sha256": ... def digest(self) -> str: ... def hexdigest(self) -> str: ... diff --git a/builtins/2.7/_sha512.pyi b/builtins/2.7/_sha512.pyi index ab553e29d..5da79aabb 100644 --- a/builtins/2.7/_sha512.pyi +++ b/builtins/2.7/_sha512.pyi @@ -3,6 +3,7 @@ class sha384(object): block_size = ... # type: int digest_size = ... # type: int digestsize = ... # type: int + def __init__(self, init: Optional[str]) -> None: ... def copy(self) -> "sha384": ... def digest(self) -> str: ... def hexdigest(self) -> str: ... @@ -13,6 +14,7 @@ class sha512(object): block_size = ... # type: int digest_size = ... # type: int digestsize = ... # type: int + def __init__(self, init: Optional[str]) -> None: ... def copy(self) -> "sha512": ... def digest(self) -> str: ... def hexdigest(self) -> str: ...