From: Sergey Matveev Date: Sat, 19 Nov 2016 16:08:27 +0000 (+0300) Subject: Fix mypy stubs X-Git-Tag: 3.0~11 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bff2726a7310b9c919ea3457e86e58f2a9ec95f8;p=pygost.git Fix mypy stubs --- diff --git a/pygost/stubs/pygost/gost3410.pyi b/pygost/stubs/pygost/gost3410.pyi index 85128c3..3f93d71 100644 --- a/pygost/stubs/pygost/gost3410.pyi +++ b/pygost/stubs/pygost/gost3410.pyi @@ -24,7 +24,7 @@ class GOST3410Curve(object): def public_key(curve: GOST3410Curve, prv: int) -> PublicKey: ... -def sign(curve: GOST3410Curve, prv: int, digest: bytes, size: int=...) -> bytes: ... +def sign(curve: GOST3410Curve, prv: int, digest: bytes, mode: int=...) -> bytes: ... def verify( @@ -32,14 +32,14 @@ def verify( pub: PublicKey, digest: bytes, signature: bytes, - size: int=..., + mode: int=..., ) -> bool: ... def prv_unmarshal(prv: bytes) -> int: ... -def pub_marshal(pub: PublicKey, mode: int) -> bytes: ... +def pub_marshal(pub: PublicKey, mode: int=...) -> bytes: ... -def pub_unmarshal(pub: bytes, mode: int) -> PublicKey: ... +def pub_unmarshal(pub: bytes, mode: int=...) -> PublicKey: ... diff --git a/pygost/stubs/pygost/gost3410_vko.pyi b/pygost/stubs/pygost/gost3410_vko.pyi index fc1f3b0..b177ac6 100644 --- a/pygost/stubs/pygost/gost3410_vko.pyi +++ b/pygost/stubs/pygost/gost3410_vko.pyi @@ -5,7 +5,7 @@ from pygost.gost3410 import PublicKey def vko_34102001(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes) -> bytes: ... -def vko_34102012256(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm=...: bytes) -> bytes: ... +def vko_34102012256(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes=...) -> bytes: ... -def vko_34102012512(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm=...: bytes) -> bytes: ... +def vko_34102012512(curve: GOST3410Curve, prv: int, pubkey: PublicKey, ukm: bytes=...) -> bytes: ...