From: Sergey Matveev Date: Mon, 28 Nov 2016 10:07:45 +0000 (+0300) Subject: Fix stubs: successors of PEP247 X-Git-Tag: 3.1^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=9cee8b1f1f7509d755dd5f12e09eb0f5ddecf879 Fix stubs: successors of PEP247 --- diff --git a/NEWS b/NEWS index b9b4075..2fca8c8 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +3.1: + Fixed mypy stubs related to PEP247-successors. + 3.0: * gost3411_94 renamed to gost341194 * gost3411_2012 renamed and split to gost34112012256, gost34112012512 diff --git a/VERSION b/VERSION index 9f55b2c..8c50098 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0 +3.1 diff --git a/pygost/stubs/pygost/gost28147_mac.pyi b/pygost/stubs/pygost/gost28147_mac.pyi index c0c4a32..2ba4341 100644 --- a/pygost/stubs/pygost/gost28147_mac.pyi +++ b/pygost/stubs/pygost/gost28147_mac.pyi @@ -1,4 +1,7 @@ -class MAC: +from pygost.iface import PEP247 + + +class MAC(PEP247): def __init__( self, key: bytes, diff --git a/pygost/stubs/pygost/gost34112012.pyi b/pygost/stubs/pygost/gost34112012.pyi index d1366e2..17a727f 100644 --- a/pygost/stubs/pygost/gost34112012.pyi +++ b/pygost/stubs/pygost/gost34112012.pyi @@ -1,4 +1,7 @@ -class GOST34112012: +from pygost.iface import PEP247 + + +class GOST34112012(PEP247): def __init__(self, data: bytes=..., digest_size: int=...) -> None: ... @property diff --git a/pygost/stubs/pygost/gost34112012256.pyi b/pygost/stubs/pygost/gost34112012256.pyi index 365e9cc..fcbe64e 100644 --- a/pygost/stubs/pygost/gost34112012256.pyi +++ b/pygost/stubs/pygost/gost34112012256.pyi @@ -1,4 +1,7 @@ -class GOST34112012256: +from pygost.iface import PEP247 + + +class GOST34112012256(PEP247): def __init__(self, data: bytes=...) -> None: ... @property diff --git a/pygost/stubs/pygost/gost34112012512.pyi b/pygost/stubs/pygost/gost34112012512.pyi index da384a4..af944d0 100644 --- a/pygost/stubs/pygost/gost34112012512.pyi +++ b/pygost/stubs/pygost/gost34112012512.pyi @@ -1,4 +1,7 @@ -class GOST34112012512: +from pygost.iface import PEP247 + + +class GOST34112012512(PEP247): def __init__(self, data: bytes=...) -> None: ... @property diff --git a/pygost/stubs/pygost/gost341194.pyi b/pygost/stubs/pygost/gost341194.pyi index 1432fad..b495957 100644 --- a/pygost/stubs/pygost/gost341194.pyi +++ b/pygost/stubs/pygost/gost341194.pyi @@ -1,4 +1,7 @@ -class GOST341194: +from pygost.iface import PEP247 + + +class GOST341194(PEP247): def __init__(self, data: bytes=..., sbox: str=...) -> None: ... @property diff --git a/www.texi b/www.texi index 2c4649f..1c0f9a8 100644 --- a/www.texi +++ b/www.texi @@ -88,6 +88,9 @@ mailing list. Announcements also go to this mailing list. @unnumbered News @table @strong +@item 3.1 +Fixed mypy stubs related to PEP247-successors. + @item 3.0 @itemize @item @code{gost3411_94} renamed to @code{gost341194}