From: Sergey Matveev Date: Sat, 19 Nov 2016 19:59:27 +0000 (+0300) Subject: Add missing hash.new mypy stub entries X-Git-Tag: 3.0~6 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=83256651e8a0b24124834b29df9d2e826be7450f Add missing hash.new mypy stub entries --- diff --git a/pygost/gost34112012.py b/pygost/gost34112012.py index de4ef2e..bfb7cc9 100644 --- a/pygost/gost34112012.py +++ b/pygost/gost34112012.py @@ -271,4 +271,3 @@ class GOST34112012(PEP247): hsh = g(0, hsh, pack(" bytes: ... def hexdigest(self) -> str: ... + + +def new(data: bytes=...) -> GOST34112012256: ... diff --git a/pygost/stubs/pygost/gost34112012512.pyi b/pygost/stubs/pygost/gost34112012512.pyi index 163fe7a..da384a4 100644 --- a/pygost/stubs/pygost/gost34112012512.pyi +++ b/pygost/stubs/pygost/gost34112012512.pyi @@ -11,3 +11,6 @@ class GOST34112012512: def digest(self) -> bytes: ... def hexdigest(self) -> str: ... + + +def new(data: bytes=...) -> GOST34112012512: ... diff --git a/pygost/stubs/pygost/gost341194.pyi b/pygost/stubs/pygost/gost341194.pyi index d16cb51..18e04d4 100644 --- a/pygost/stubs/pygost/gost341194.pyi +++ b/pygost/stubs/pygost/gost341194.pyi @@ -11,3 +11,6 @@ class GOST341194: def digest(self) -> bytes: ... def hexdigest(self) -> str: ... + + +def new(data: bytes=..., sbox: str=...) -> GOST341194: ...