mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-07 07:31:55 +08:00
Always import Protocol from typing in stubs (#6617)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import threading
|
||||
from types import TracebackType
|
||||
from typing import Iterator, Type
|
||||
from typing_extensions import Literal, Protocol
|
||||
from typing import Iterator, Protocol, Type
|
||||
from typing_extensions import Literal
|
||||
|
||||
__version__: str
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from types import TracebackType
|
||||
from typing import Any, ClassVar, Type
|
||||
from typing_extensions import Protocol
|
||||
from typing import Any, ClassVar, Protocol, Type
|
||||
|
||||
from redis.client import Redis
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from _typeshed import SupportsItems
|
||||
from typing import Any, Iterable, Iterator, TypeVar
|
||||
from typing_extensions import Protocol
|
||||
from typing import Any, Iterable, Iterator, Protocol, TypeVar
|
||||
|
||||
_KT_co = TypeVar("_KT_co", covariant=True)
|
||||
_VT_co = TypeVar("_VT_co", covariant=True)
|
||||
|
||||
Reference in New Issue
Block a user