File tree 3 files changed +2
-6
lines changed 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 58
58
class AbstractKey (object ):
59
59
"""Abstract superclass for private and public keys."""
60
60
61
- __slots__ = ("n" , "e" )
62
-
63
61
def __init__ (self , n : int , e : int ) -> None :
64
62
self .n = n
65
63
self .e = e
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ class _FileLikeObject(Protocol):
44
44
45
45
def read (self , blocksize : int ) -> Union [bytes , str ]:
46
46
"""A method that reads a given number of bytes or chracters"""
47
- ...
48
47
49
48
except ImportError :
50
49
pass
Original file line number Diff line number Diff line change @@ -93,11 +93,10 @@ def test_sign_verify_fail():
93
93
94
94
# Run adafruit_rsa tests
95
95
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 :
98
97
# for i in range(0, len(all_tests)):
99
98
print ("Testing: {}" .format (test_name ))
100
- all_tests [ test_num ] ()
99
+ test_name ()
101
100
print ("OK!" )
102
101
print (
103
102
"Ran {} tests in {} seconds" .format (len (all_tests ), time .monotonic () - start_time )
You can’t perform that action at this time.
0 commit comments