mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-21 03:55:27 +00:00
use Tuple for type alias
__future__.annotations only fixes py37/generic builtins in annotations syntax, not arbitrary expressions
This commit is contained in:
parent
38e1e93a75
commit
03674bd452
@ -32,7 +32,7 @@ For example::
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Iterator, Optional, Sequence
|
from typing import Iterator, Optional, Sequence, Tuple
|
||||||
from collections.abc import Awaitable
|
from collections.abc import Awaitable
|
||||||
from inspect import getargspec
|
from inspect import getargspec
|
||||||
from itertools import count
|
from itertools import count
|
||||||
@ -48,7 +48,7 @@ WormholeCode = str
|
|||||||
WormholeMessage = bytes
|
WormholeMessage = bytes
|
||||||
AppId = str
|
AppId = str
|
||||||
RelayURL = str
|
RelayURL = str
|
||||||
ApplicationKey = tuple[RelayURL, AppId]
|
ApplicationKey = Tuple[RelayURL, AppId]
|
||||||
|
|
||||||
@define
|
@define
|
||||||
class MemoryWormholeServer(object):
|
class MemoryWormholeServer(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user