Remove even more unused TypeVars (#6928)

This commit is contained in:
Alex Waygood
2022-01-16 16:07:32 +00:00
committed by GitHub
parent dbcb38a605
commit 425ba77bb2
10 changed files with 5 additions and 18 deletions

View File

@@ -3,11 +3,9 @@ from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Option
_T = TypeVar("_T")
_T_co = TypeVar("_T_co", covariant=True)
_T_io = TypeVar("_T_io", bound=Optional[IO[str]])
_F = TypeVar("_F", bound=Callable[..., Any])
_ExitFunc = Callable[[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]], bool]
_CM_EF = TypeVar("_CM_EF", ContextManager[Any], _ExitFunc)
class GeneratorContextManager(ContextManager[_T_co]):
def __call__(self, func: _F) -> _F: ...