From bff2726a7310b9c919ea3457e86e58f2a9ec95f8 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 19 Nov 2016 19:08:27 +0300 Subject: [PATCH] Fix mypy stubs --- pygost/stubs/pygost/gost3410.pyi | 8 ++++---- pygost/stubs/pygost/gost3410_vko.pyi | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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: ... -- 2.48.1