Work in Python 3.8.

This commit is contained in:
Itamar Turner-Trauring 2023-07-28 14:20:05 -04:00
parent f8e9631f53
commit 176fac7360

View File

@ -4,7 +4,17 @@ HTTP server for storage.
from __future__ import annotations from __future__ import annotations
from typing import Any, Callable, Union, cast, Optional, TypeVar, Sequence, Protocol from typing import (
Any,
Callable,
Union,
cast,
Optional,
TypeVar,
Sequence,
Protocol,
Dict,
)
from typing_extensions import ParamSpec, Concatenate from typing_extensions import ParamSpec, Concatenate
from functools import wraps from functools import wraps
from base64 import b64decode from base64 import b64decode
@ -115,7 +125,7 @@ class BaseApp(Protocol):
P = ParamSpec("P") P = ParamSpec("P")
T = TypeVar("T") T = TypeVar("T")
SecretsDict = dict[Secrets, bytes] SecretsDict = Dict[Secrets, bytes]
App = TypeVar("App", bound=BaseApp) App = TypeVar("App", bound=BaseApp)