Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Aug 26, 2024
1 parent 314dcfd commit 4df8fd5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/unit/test_security/test_jwt/test_token.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from __future__ import annotations

import secrets
import sys
from dataclasses import asdict
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, Optional
from typing import Any
from uuid import uuid4

import jwt
Expand All @@ -23,10 +25,10 @@
@pytest.mark.parametrize("token_extras", [None, {"email": "[email protected]"}])
def test_token(
algorithm: str,
token_issuer: Optional[str],
token_audience: Optional[str],
token_unique_jwt_id: Optional[str],
token_extras: Optional[Dict[str, Any]],
token_issuer: str | None,
token_audience: str | None,
token_unique_jwt_id: str | None,
token_extras: dict[str, Any] | None,
) -> None:
token_secret = secrets.token_hex()
token = Token(
Expand Down

0 comments on commit 4df8fd5

Please sign in to comment.