Skip to content

Commit ee5c745

Browse files
committed
Partially revert changes to array and types to workaround pytype failures
1 parent ade56e1 commit ee5c745

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

stdlib/array.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from _typeshed import Self
3-
from collections.abc import Iterable, MutableSequence
4-
from typing import Any, BinaryIO, Generic, TypeVar, overload
3+
from collections.abc import Iterable
4+
from typing import Any, BinaryIO, Generic, MutableSequence, TypeVar, overload
55
from typing_extensions import Literal, SupportsIndex, TypeAlias
66

77
_IntTypeCode: TypeAlias = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"]

stdlib/types.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ from collections.abc import (
1010
Iterable,
1111
Iterator,
1212
KeysView,
13-
Mapping,
1413
MutableSequence,
1514
ValuesView,
1615
)
1716
from importlib.abc import _LoaderProtocol
1817
from importlib.machinery import ModuleSpec
19-
from typing import Any, ClassVar, Generic, TypeVar, overload
18+
from typing import Any, ClassVar, Generic, Mapping, TypeVar, overload
2019
from typing_extensions import Literal, ParamSpec, final
2120

2221
if sys.version_info >= (3, 10):

0 commit comments

Comments
 (0)