Fix private interface import to test_invite

This commit is contained in:
dlee 2023-03-13 13:08:32 -05:00
parent b58dd2bb3b
commit 041a634d27
2 changed files with 5 additions and 3 deletions

View File

@ -19,8 +19,8 @@ from ...util.jsonbytes import dumps_bytes
from ..common_util import run_cli
from ..no_network import GridTestMixin
from .common import CLITestMixin
from .wormholetesting import MemoryWormholeServer, TestingHelper, memory_server
from wormhole._interfaces import IWormhole
from .wormholetesting import MemoryWormholeServer, TestingHelper, memory_server, IWormhole
# Logically:
# JSONable = dict[str, Union[JSONable, None, int, float, str, list[JSONable]]]

View File

@ -32,6 +32,8 @@ For example::
from __future__ import annotations
__all__ = ['IWormhole']
from typing import Iterator, Optional, List, Tuple, Any, TextIO
from inspect import getfullargspec
from itertools import count
@ -76,7 +78,7 @@ class MemoryWormholeServer(object):
stderr: TextIO=stderr,
_eventual_queue: Optional[Any]=None,
_enable_dilate: bool=False,
) -> _MemoryWormhole:
)-> _MemoryWormhole:
"""
Create a wormhole. It will be able to connect to other wormholes created
by this instance (and constrained by the normal appid/relay_url