diff options
author | Andrey Semakin <and-semakin@ya.ru> | 2019-11-04 18:35:23 +0500 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2020-06-03 13:43:27 +0200 |
commit | ae1a906952557f616706f79c66030fd812e48cdf (patch) | |
tree | 8b5d9f4051d72936f0b6fb4e2048d20282a34ab4 /rsa/common.py | |
parent | 1473cb8599c44cffad56cecbe32c467d64f00247 (diff) | |
download | rsa-ae1a906952557f616706f79c66030fd812e48cdf.tar.gz |
Add more type hints
Diffstat (limited to 'rsa/common.py')
-rw-r--r-- | rsa/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/common.py b/rsa/common.py index c5b647d..e7df21d 100644 --- a/rsa/common.py +++ b/rsa/common.py @@ -18,7 +18,7 @@ import typing class NotRelativePrimeError(ValueError): - def __init__(self, a, b, d, msg=''): + def __init__(self, a: int, b: int, d: int, msg: str = '') -> None: super().__init__(msg or "%d and %d are not relatively prime, divider=%i" % (a, b, d)) self.a = a self.b = b |