NEWS | 3 +++ VERSION | 2 +- pygost/stubs/pygost/gost28147_mac.pyi | 5 ++++- pygost/stubs/pygost/gost34112012.pyi | 5 ++++- pygost/stubs/pygost/gost34112012256.pyi | 5 ++++- pygost/stubs/pygost/gost34112012512.pyi | 5 ++++- pygost/stubs/pygost/gost341194.pyi | 5 ++++- www.texi | 3 +++ diff --git a/NEWS b/NEWS index e63a03a936cc83b865ada74b42fcb2aeabd35f4181a972b3fceb1fed68f83f13..2b09ca9d4bddebd88fbf17d332b17cbf436e226e0f12864bcdd689739baae6e3 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 a233cfcdb584133924ee353c0e37f95386fd922c8fe14b78fef107e3d103bae5..eac7f115ab4ad1209330f28ff2c5bc44db822d0dd059bf1863830486cb93ffd4 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 75fe0113e09b7bdba6b2acb5ced5c769fafcb52fdb5f296b0475779196fdaf45..33e709be5fbd5b31bbdcfb182e5a1f739a3c9cdc09b0f7db08c15f662edaf268 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 34beed47a8bb1d3df1805961518251d721b6ed50f92adbfcf9a10f415e741164..1b297ade6dd5c2b5ecb266f64fcb15bac0c9accbaa0738a0b96003b51c6488c3 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 9558af5c54c40c287a43197210cce837df08ef4901180b08c630f93cb79d22d5..b784c57c5071256ed6572754daf5db99db97c5ac33b9d172a3f1d8df85780bda 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 b216b6cf5a3faf7df52013f6287f5c48f4b413e77cbafbdc1ca96cd3696b4bbd..dae414c0455374b69437d47069eb9b3a6bdf561ae149171697079747281ca1ca 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 8b12b431f4c6f1898526d1a8e514cecd2262583fe8eb479475268d8ea78c4922..cef7d8c70b90303f689bdba2e6d846666c5fe09c580c4838c95710bd593841a0 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 2efbe3c7640e196c5b093bec3ee72a34e95301361fd217880968eea0ac6278c2..a66c11754b6bef3dd64a2313b07154ae80c55a2826bfd659693e1310074bfed7 100644 --- a/www.texi +++ b/www.texi @@ -88,6 +88,9 @@ @node News @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}