Skip to content

Commit

Permalink
Update PyJWT's exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-k committed Oct 16, 2018
1 parent 703c03e commit f996639
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions third_party/3/jwt/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ def register_algorithm(alg_id: str,

def unregister_algorithm(alg_id: str) -> None: ...

class InvalidTokenError(Exception): ...
class PyJWTError(Exception): ...
class InvalidTokenError(PyJWTError): ...
class DecodeError(InvalidTokenError): ...
class ExpiredSignatureError(InvalidTokenError): ...
class InvalidAudienceError(InvalidTokenError): ...
class InvalidIssuerError(InvalidTokenError): ...
class InvalidIssuedAtError(InvalidTokenError): ...
class ImmatureSignatureError(InvalidTokenError): ...
class InvalidKeyError(Exception): ...
class InvalidKeyError(PyJWTError): ...
class InvalidAlgorithmError(InvalidTokenError): ...
class MissingRequiredClaimError(InvalidTokenError): ...
class InvalidSignatureError(DecodeError): ...

# Compatibility aliases (deprecated)
ExpiredSignature = ExpiredSignatureError
Expand Down

0 comments on commit f996639

Please sign in to comment.