Always import Protocol from typing in stubs (#6617)

This commit is contained in:
Stephen Rosen
2021-12-17 07:12:22 -05:00
committed by GitHub
parent 2ad00c9664
commit df0a724c0f
9 changed files with 12 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
from types import TracebackType
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar
from typing_extensions import Protocol
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Protocol, Type, TypeVar
_T = TypeVar("_T")
_T_co = TypeVar("_T_co", covariant=True)