mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Always import Protocol from typing in stubs (#6617)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Stub-only types. This module does not exist at runtime.
|
||||
|
||||
from typing import Any
|
||||
from typing_extensions import Protocol
|
||||
from typing import Any, Protocol
|
||||
|
||||
# As defined https://docs.python.org/3/library/xml.dom.html#domimplementation-objects
|
||||
class DOMImplementation(Protocol):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user