Skip to content

Commit

Permalink
Fix the syntax used in a831132
Browse files Browse the repository at this point in the history
This library supports Python < 3.10
  • Loading branch information
pgjones committed Jan 28, 2024
1 parent a831132 commit d692f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quart_auth/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from contextlib import asynccontextmanager
from enum import auto, Enum
from hashlib import sha512
from typing import Any, AsyncGenerator, cast, Dict, Optional
from typing import Any, AsyncGenerator, cast, Dict, Optional, Union

from itsdangerous import BadSignature, SignatureExpired, URLSafeTimedSerializer
from quart import (
Expand Down Expand Up @@ -46,7 +46,7 @@ class Action(Enum):


class _AuthSerializer(URLSafeTimedSerializer):
def __init__(self, secret: str | bytes, salt: str) -> None:
def __init__(self, secret: Union[str, bytes], salt: str) -> None:
super().__init__(secret, salt, signer_kwargs={"digest_method": sha512})


Expand Down

0 comments on commit d692f0c

Please sign in to comment.