1- From 363d69b366695fea117631d30c348e36b9a5a99d Mon Sep 17 00:00:00 2001
1+ From c217544146d36899d50e828d627652a0d8f63bb7 Mon Sep 17 00:00:00 2001
22From: Marc Mueller <
[email protected] >
33Date: Sat, 21 Dec 2024 22:36:38 +0100
44Subject: [PATCH] Revert Remove redundant inheritances from Iterator in
@@ -15,7 +15,7 @@ Subject: [PATCH] Revert Remove redundant inheritances from Iterator in
1515 7 files changed, 34 insertions(+), 34 deletions(-)
1616
1717diff --git a/mypy/typeshed/stdlib/_asyncio.pyi b/mypy/typeshed/stdlib/_asyncio.pyi
18- index 4544680cc..19a2d12d8 100644
18+ index ed56f33af..5253e967e 100644
1919--- a/mypy/typeshed/stdlib/_asyncio.pyi
2020+++ b/mypy/typeshed/stdlib/_asyncio.pyi
2121@@ -1,6 +1,6 @@
@@ -36,10 +36,10 @@ index 4544680cc..19a2d12d8 100644
3636 @property
3737 def _exception(self) -> BaseException | None: ...
3838diff --git a/mypy/typeshed/stdlib/builtins.pyi b/mypy/typeshed/stdlib/builtins.pyi
39- index ea77a730f..900c4c93f 100644
39+ index 0575be3c8..d9be595fe 100644
4040--- a/mypy/typeshed/stdlib/builtins.pyi
4141+++ b/mypy/typeshed/stdlib/builtins.pyi
42- @@ -1170 ,7 +1170 ,7 @@ class frozenset(AbstractSet[_T_co]):
42+ @@ -1186 ,7 +1186 ,7 @@ class frozenset(AbstractSet[_T_co]):
4343 def __hash__(self) -> int: ...
4444 def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
4545
@@ -48,7 +48,7 @@ index ea77a730f..900c4c93f 100644
4848 def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
4949 def __iter__(self) -> Self: ...
5050 def __next__(self) -> tuple[int, _T]: ...
51- @@ -1366 ,7 +1366 ,7 @@ else:
51+ @@ -1380 ,7 +1380 ,7 @@ else:
5252
5353 exit: _sitebuiltins.Quitter
5454
@@ -57,7 +57,7 @@ index ea77a730f..900c4c93f 100644
5757 @overload
5858 def __new__(cls, function: None, iterable: Iterable[_T | None], /) -> Self: ...
5959 @overload
60- @@ -1431 ,7 +1431 ,7 @@ license: _sitebuiltins._Printer
60+ @@ -1444 ,7 +1444 ,7 @@ license: _sitebuiltins._Printer
6161
6262 def locals() -> dict[str, Any]: ...
6363
@@ -66,7 +66,7 @@ index ea77a730f..900c4c93f 100644
6666 # 3.14 adds `strict` argument.
6767 if sys.version_info >= (3, 14):
6868 @overload
69- @@ -1734 ,7 +1734 ,7 @@ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex
69+ @@ -1750 ,7 +1750 ,7 @@ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex
7070
7171 quit: _sitebuiltins.Quitter
7272
@@ -75,7 +75,7 @@ index ea77a730f..900c4c93f 100644
7575 @overload
7676 def __new__(cls, sequence: Reversible[_T], /) -> Iterator[_T]: ... # type: ignore[misc]
7777 @overload
78- @@ -1795 ,7 +1795 ,7 @@ def vars(object: type, /) -> types.MappingProxyType[str, Any]: ...
78+ @@ -1814 ,7 +1814 ,7 @@ def vars(object: type, /) -> types.MappingProxyType[str, Any]: ...
7979 @overload
8080 def vars(object: Any = ..., /) -> dict[str, Any]: ...
8181
@@ -107,7 +107,7 @@ index 2c8e7109c..4ed0ab1d8 100644
107107 restkey: _T | None
108108 restval: str | Any | None
109109diff --git a/mypy/typeshed/stdlib/fileinput.pyi b/mypy/typeshed/stdlib/fileinput.pyi
110- index 948b39ea1..1d5f9cf00 100644
110+ index 910d63814..eb942bc55 100644
111111--- a/mypy/typeshed/stdlib/fileinput.pyi
112112+++ b/mypy/typeshed/stdlib/fileinput.pyi
113113@@ -1,8 +1,8 @@
@@ -116,12 +116,12 @@ index 948b39ea1..1d5f9cf00 100644
116116- from collections.abc import Callable, Iterable
117117+ from collections.abc import Callable, Iterable, Iterator
118118 from types import GenericAlias, TracebackType
119- - from typing import IO, Any, AnyStr, Generic, Literal, Protocol, overload
120- + from typing import IO, Any, AnyStr, Literal, Protocol, overload
119+ - from typing import IO, Any, AnyStr, Generic, Literal, Protocol, overload, type_check_only
120+ + from typing import IO, Any, AnyStr, Literal, Protocol, overload, type_check_only
121121 from typing_extensions import Self, TypeAlias
122122
123123 __all__ = [
124- @@ -104 ,7 +104 ,7 @@ def fileno() -> int: ...
124+ @@ -105 ,7 +105 ,7 @@ def fileno() -> int: ...
125125 def isfirstline() -> bool: ...
126126 def isstdin() -> bool: ...
127127
@@ -307,10 +307,10 @@ index b79f9e773..f276372d0 100644
307307 def __iter__(self) -> Self: ...
308308 def next(self, timeout: float | None = None) -> _T: ...
309309diff --git a/mypy/typeshed/stdlib/sqlite3/__init__.pyi b/mypy/typeshed/stdlib/sqlite3/__init__.pyi
310- index 5d3c2330b..ab783dbde 100644
310+ index bcfea3a13..5a659deac 100644
311311--- a/mypy/typeshed/stdlib/sqlite3/__init__.pyi
312312+++ b/mypy/typeshed/stdlib/sqlite3/__init__.pyi
313- @@ -399 ,7 +399 ,7 @@ class Connection:
313+ @@ -405 ,7 +405 ,7 @@ class Connection:
314314 self, type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None, /
315315 ) -> Literal[False]: ...
316316
@@ -320,5 +320,5 @@ index 5d3c2330b..ab783dbde 100644
320320 @property
321321 def connection(self) -> Connection: ...
322322- -
323- 2.49.0
323+ 2.50.1
324324
0 commit comments