Skip to content

Commit 617d2aa

Browse files
authored
Fix crash when running mypy master against typeshed master (#7660)
1 parent eafc23d commit 617d2aa

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

stdlib/builtins.pyi

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,20 @@ from _typeshed import (
2222
SupportsTrunc,
2323
SupportsWrite,
2424
)
25-
from collections.abc import (
26-
Awaitable,
27-
Callable,
28-
Iterable,
29-
Iterator,
30-
Mapping,
31-
MutableMapping,
32-
MutableSet,
33-
Reversible,
34-
Set as AbstractSet,
35-
Sized,
36-
)
25+
from collections.abc import Awaitable, Callable, Iterable, Iterator, MutableSet, Reversible, Set as AbstractSet, Sized
3726
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
3827
from types import CodeType, TracebackType, _Cell
3928

40-
# mypy crashes if any of {ByteString, Sequence, MutableSequence} are imported from collections.abc in builtins.pyi
29+
# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping} are imported from collections.abc in builtins.pyi
4130
from typing import ( # noqa: Y027
4231
IO,
4332
Any,
4433
BinaryIO,
4534
ByteString,
4635
ClassVar,
4736
Generic,
37+
Mapping,
38+
MutableMapping,
4839
MutableSequence,
4940
NoReturn,
5041
Protocol,

0 commit comments

Comments
 (0)