Skip to content

Commit db1d356

Browse files
committed
Algorithm base class methods now raise NotImplementedError
1 parent 3958141 commit db1d356

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jwt/algorithms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ def _register_default_algorithms():
4141

4242
class Algorithm(object):
4343
def prepare_key(self, key):
44-
pass
44+
raise NotImplementedError
4545

4646
def sign(self, msg, key):
47-
pass
47+
raise NotImplementedError
4848

4949
def verify(self, msg, key, sig):
50-
pass
50+
raise NotImplementedError
5151

5252

5353
class NoneAlgorithm(Algorithm):

0 commit comments

Comments
 (0)