From 03674bd4526ce2374f5077d50cd6da603e78f48a Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 13 Apr 2022 16:01:32 -0400 Subject: [PATCH] use Tuple for type alias __future__.annotations only fixes py37/generic builtins in annotations syntax, not arbitrary expressions --- src/allmydata/test/cli/wormholetesting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/cli/wormholetesting.py b/src/allmydata/test/cli/wormholetesting.py index 715e82236..0cee78a5a 100644 --- a/src/allmydata/test/cli/wormholetesting.py +++ b/src/allmydata/test/cli/wormholetesting.py @@ -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):