Always import Protocol from typing in stubs (#6617)

This commit is contained in:
Stephen Rosen authored and GitHub committed 2021-12-17 13:12:22 +01:00
1 parent 2ad00c9664
commit df0a724c0f
9 files changed
+12 -17

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
import sys
import types
from typing import Any, Callable, Generic, Iterable, Mapping, Tuple, Type, TypeVar, overload
from typing_extensions import Protocol
from typing import Any, Callable, Generic, Iterable, Mapping, Protocol, Tuple, Type, TypeVar, overload
if sys.version_info >= (3, 9):
from types import GenericAlias