Skip to content

Commit ad1686e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 96bb562 commit ad1686e

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

jwt/api_jwt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def decode_complete(
7979
# If the user has set the legacy `verify` argument, and it doesn't match
8080
# what the relevant `options` entry for the argument is, inform the user
8181
# that they're likely making a mistake.
82-
if 'verify' in kwargs and kwargs['verify'] != options['verify_signature']:
82+
if "verify" in kwargs and kwargs["verify"] != options["verify_signature"]:
8383
warnings.warn(
84-
'The `verify` argument to `decode` does nothing in PyJWT 2.0 and newer. '
85-
'The equivalent is setting `verify_signature` to False in the `options` dictionary. '
86-
'This invocation has a mismatch between the kwarg and the option entry.',
84+
"The `verify` argument to `decode` does nothing in PyJWT 2.0 and newer. "
85+
"The equivalent is setting `verify_signature` to False in the `options` dictionary. "
86+
"This invocation has a mismatch between the kwarg and the option entry.",
8787
category=DeprecationWarning,
8888
)
8989

tests/test_api_jwt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,4 +671,6 @@ def test_decode_legacy_verify_warning(self, jwt, payload):
671671
with pytest.deprecated_call():
672672
# The user explicitly sets verify=True,
673673
# but contradicts it in verify_signature.
674-
jwt.decode(jwt_message, secret, verify=True, options={"verify_signature": False})
674+
jwt.decode(
675+
jwt_message, secret, verify=True, options={"verify_signature": False}
676+
)

0 commit comments

Comments
 (0)