From: Marvin Schenkel Date: Sat, 31 Jan 2026 08:05:42 +0000 (+0100) Subject: Fix mypy jwt X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=ebc4322f854cb10afaddf007979a592ca3160f30;p=music-assistant-server.git Fix mypy jwt --- diff --git a/music_assistant/helpers/jwt_auth.py b/music_assistant/helpers/jwt_auth.py index 8f00db8d..c7d6bb03 100644 --- a/music_assistant/helpers/jwt_auth.py +++ b/music_assistant/helpers/jwt_auth.py @@ -75,12 +75,11 @@ class JWTHelper: :return: Decoded token payload. :raises jwt.InvalidTokenError: If token is invalid or expired. """ - options = {"verify_exp": verify_exp} payload: dict[str, Any] = jwt.decode( token, self.secret_key, algorithms=[self.algorithm], - options=options, + options={"verify_exp": verify_exp}, ) return payload