Use proper typing syntax

remote_task_cancelling
Tyler Goodlet 2019-01-01 12:14:57 -05:00
parent eb6e82f577
commit ef23055d12
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Portal api
import importlib import importlib
import inspect import inspect
import typing import typing
from typing import Tuple, Any, Dict, Optional from typing import Tuple, Any, Dict, Optional, Set
import trio import trio
from async_generator import asynccontextmanager from async_generator import asynccontextmanager
@ -65,7 +65,7 @@ class Portal:
self._expect_result: Optional[ self._expect_result: Optional[
Tuple[str, Any, str, Dict[str, Any]] Tuple[str, Any, str, Dict[str, Any]]
] = None ] = None
self._agens: Set(AsyncGenerator) = set() self._agens: Set[typing.AsyncGenerator] = set()
async def aclose(self) -> None: async def aclose(self) -> None:
log.debug(f"Closing {self}") log.debug(f"Closing {self}")