mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-23 10:08:42 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -3,7 +3,8 @@ import types
|
||||
import zipimport
|
||||
from _typeshed import Self
|
||||
from abc import ABCMeta
|
||||
from typing import IO, Any, Callable, Generator, Iterable, Sequence, TypeVar, overload
|
||||
from collections.abc import Callable, Generator, Iterable, Sequence
|
||||
from typing import IO, Any, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
LegacyVersion: TypeAlias = Any # from packaging.version
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from _typeshed import Self
|
||||
from collections.abc import Callable
|
||||
from types import ModuleType
|
||||
from typing import Any, Callable, Generic, TypeVar, overload
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from unittest import TestLoader, TestSuite
|
||||
|
||||
from setuptools import Command
|
||||
|
||||
Reference in New Issue
Block a user