use Tuple for type alias

__future__.annotations only fixes py37/generic builtins in annotations syntax,
not arbitrary expressions
This commit is contained in:
Jean-Paul Calderone 2022-04-13 16:01:32 -04:00
parent 38e1e93a75
commit 03674bd452

View File

@ -32,7 +32,7 @@ For example::
from __future__ import annotations
from typing import Iterator, Optional, Sequence
from typing import Iterator, Optional, Sequence, Tuple
from collections.abc import Awaitable
from inspect import getargspec
from itertools import count
@ -48,7 +48,7 @@ WormholeCode = str
WormholeMessage = bytes
AppId = str
RelayURL = str
ApplicationKey = tuple[RelayURL, AppId]
ApplicationKey = Tuple[RelayURL, AppId]
@define
class MemoryWormholeServer(object):