mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
Work in Python 3.8.
This commit is contained in:
parent
f8e9631f53
commit
176fac7360
@ -4,7 +4,17 @@ HTTP server for storage.
|
||||
|
||||
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 functools import wraps
|
||||
from base64 import b64decode
|
||||
@ -115,7 +125,7 @@ class BaseApp(Protocol):
|
||||
|
||||
P = ParamSpec("P")
|
||||
T = TypeVar("T")
|
||||
SecretsDict = dict[Secrets, bytes]
|
||||
SecretsDict = Dict[Secrets, bytes]
|
||||
App = TypeVar("App", bound=BaseApp)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user