]> Cypherpunks.ru repositories - pygost.git/commitdiff
Fix stubs: successors of PEP247 3.1
authorSergey Matveev <stargrave@stargrave.org>
Mon, 28 Nov 2016 10:07:45 +0000 (13:07 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 28 Nov 2016 10:22:27 +0000 (13:22 +0300)
NEWS
VERSION
pygost/stubs/pygost/gost28147_mac.pyi
pygost/stubs/pygost/gost34112012.pyi
pygost/stubs/pygost/gost34112012256.pyi
pygost/stubs/pygost/gost34112012512.pyi
pygost/stubs/pygost/gost341194.pyi
www.texi

diff --git a/NEWS b/NEWS
index b9b407564bb92b12ddd2e22e0da3911f77a1006e..2fca8c897e52de29b6bbd063f62c6c7ec36276fa 100644 (file)
--- 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 9f55b2ccb5f234fc6b87ada62389a3d73815d0d1..8c50098d8aed57b02fd10f40a670a7c673b7c5a5 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.0
+3.1
index c0c4a327417671b92ce6756994964557dd453d74..2ba4341ccf84b272cb96b5447ac3fb76ee4f8738 100644 (file)
@@ -1,4 +1,7 @@
-class MAC:
+from pygost.iface import PEP247
+
+
+class MAC(PEP247):
     def __init__(
         self,
         key: bytes,
index d1366e22e92c054e9133d98c41a95300a56e104d..17a727f43563c03424906aae2fca5a880ff83a91 100644 (file)
@@ -1,4 +1,7 @@
-class GOST34112012:
+from pygost.iface import PEP247
+
+
+class GOST34112012(PEP247):
     def __init__(self, data: bytes=..., digest_size: int=...) -> None: ...
 
     @property
index 365e9cc15d17cc4a8349af98fc984463a31031b6..fcbe64e591b0a358775ddc5f636e1fc58cbdb082 100644 (file)
@@ -1,4 +1,7 @@
-class GOST34112012256:
+from pygost.iface import PEP247
+
+
+class GOST34112012256(PEP247):
     def __init__(self, data: bytes=...) -> None: ...
 
     @property
index da384a450c6bc4e95f1b711bfb8c78b196ba5e8f..af944d0277f37a44165866cb51c27396b572c861 100644 (file)
@@ -1,4 +1,7 @@
-class GOST34112012512:
+from pygost.iface import PEP247
+
+
+class GOST34112012512(PEP247):
     def __init__(self, data: bytes=...) -> None: ...
 
     @property
index 1432fad29422e6ed39859a4a07c675859759ff5c..b495957fb8fe8b3275e9debd396499200e3bf00a 100644 (file)
@@ -1,4 +1,7 @@
-class GOST341194:
+from pygost.iface import PEP247
+
+
+class GOST341194(PEP247):
     def __init__(self, data: bytes=..., sbox: str=...) -> None: ...
 
     @property
index 2c4649f710535f79884b9d7bc9572a7d58917d0e..1c0f9a87de874cf184b056fb2de902668f41ee9e 100644 (file)
--- 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}