Skip to content

Commit

Permalink
Merge pull request #37 from tekktrik/dev/fix-pylint-errors
Browse files Browse the repository at this point in the history
Fix pylint errors
  • Loading branch information
kattni authored Nov 8, 2022
2 parents d5474d3 + 0b64138 commit 67eeaa2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions adafruit_rsa/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
class AbstractKey(object):
"""Abstract superclass for private and public keys."""

__slots__ = ("n", "e")

def __init__(self, n: int, e: int) -> None:
self.n = n
self.e = e
Expand Down
1 change: 0 additions & 1 deletion adafruit_rsa/pkcs1.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class _FileLikeObject(Protocol):

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

except ImportError:
pass
Expand Down
5 changes: 2 additions & 3 deletions examples/rsa_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ def test_sign_verify_fail():

# Run adafruit_rsa tests
start_time = time.monotonic()
# pylint: disable=consider-using-enumerate
for test_num, test_name in enumerate(all_tests, start=0):
for test_name in all_tests:
# for i in range(0, len(all_tests)):
print("Testing: {}".format(test_name))
all_tests[test_num]()
test_name()
print("OK!")
print(
"Ran {} tests in {} seconds".format(len(all_tests), time.monotonic() - start_time)
Expand Down

0 comments on commit 67eeaa2

Please sign in to comment.