Skip to content

Commit 0b64138

Browse files
committed
Fix pylint errors
1 parent d5474d3 commit 0b64138

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

adafruit_rsa/key.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
class AbstractKey(object):
5959
"""Abstract superclass for private and public keys."""
6060

61-
__slots__ = ("n", "e")
62-
6361
def __init__(self, n: int, e: int) -> None:
6462
self.n = n
6563
self.e = e

adafruit_rsa/pkcs1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class _FileLikeObject(Protocol):
4444

4545
def read(self, blocksize: int) -> Union[bytes, str]:
4646
"""A method that reads a given number of bytes or chracters"""
47-
...
4847

4948
except ImportError:
5049
pass

examples/rsa_tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ def test_sign_verify_fail():
9393

9494
# Run adafruit_rsa tests
9595
start_time = time.monotonic()
96-
# pylint: disable=consider-using-enumerate
97-
for test_num, test_name in enumerate(all_tests, start=0):
96+
for test_name in all_tests:
9897
# for i in range(0, len(all_tests)):
9998
print("Testing: {}".format(test_name))
100-
all_tests[test_num]()
99+
test_name()
101100
print("OK!")
102101
print(
103102
"Ran {} tests in {} seconds".format(len(all_tests), time.monotonic() - start_time)

0 commit comments

Comments
 (0)