mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 20:12:08 +08:00
Import from collections.abc wherever possible (#7635)
This commit is contained in:
@@ -1,21 +1,8 @@
|
||||
import sys
|
||||
from _typeshed import Self, StrOrBytesPath
|
||||
from collections.abc import AsyncGenerator, AsyncIterator, Awaitable, Callable, Generator, Iterator
|
||||
from types import TracebackType
|
||||
from typing import ( # noqa: Y027
|
||||
IO,
|
||||
Any,
|
||||
AsyncGenerator,
|
||||
AsyncIterator,
|
||||
Awaitable,
|
||||
Callable,
|
||||
ContextManager,
|
||||
Generator,
|
||||
Generic,
|
||||
Iterator,
|
||||
Protocol,
|
||||
TypeVar,
|
||||
overload,
|
||||
)
|
||||
from typing import IO, Any, ContextManager, Generic, Protocol, TypeVar, overload # noqa: Y027
|
||||
from typing_extensions import ParamSpec, TypeAlias
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
|
||||
Reference in New Issue
Block a user