1
- From 363d69b366695fea117631d30c348e36b9a5a99d Mon Sep 17 00:00:00 2001
1
+ From c217544146d36899d50e828d627652a0d8f63bb7 Mon Sep 17 00:00:00 2001
2
2
From: Marc Mueller <
[email protected] >
3
3
Date: Sat, 21 Dec 2024 22:36:38 +0100
4
4
Subject: [PATCH] Revert Remove redundant inheritances from Iterator in
@@ -15,7 +15,7 @@ Subject: [PATCH] Revert Remove redundant inheritances from Iterator in
15
15
7 files changed, 34 insertions(+), 34 deletions(-)
16
16
17
17
diff --git a/mypy/typeshed/stdlib/_asyncio.pyi b/mypy/typeshed/stdlib/_asyncio.pyi
18
- index 4544680cc..19a2d12d8 100644
18
+ index ed56f33af..5253e967e 100644
19
19
--- a/mypy/typeshed/stdlib/_asyncio.pyi
20
20
+++ b/mypy/typeshed/stdlib/_asyncio.pyi
21
21
@@ -1,6 +1,6 @@
@@ -36,10 +36,10 @@ index 4544680cc..19a2d12d8 100644
36
36
@property
37
37
def _exception(self) -> BaseException | None: ...
38
38
diff --git a/mypy/typeshed/stdlib/builtins.pyi b/mypy/typeshed/stdlib/builtins.pyi
39
- index ea77a730f..900c4c93f 100644
39
+ index 0575be3c8..d9be595fe 100644
40
40
--- a/mypy/typeshed/stdlib/builtins.pyi
41
41
+++ 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]):
43
43
def __hash__(self) -> int: ...
44
44
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
45
45
@@ -48,7 +48,7 @@ index ea77a730f..900c4c93f 100644
48
48
def __new__(cls, iterable: Iterable[_T], start: int = 0) -> Self: ...
49
49
def __iter__(self) -> Self: ...
50
50
def __next__(self) -> tuple[int, _T]: ...
51
- @@ -1366 ,7 +1366 ,7 @@ else:
51
+ @@ -1380 ,7 +1380 ,7 @@ else:
52
52
53
53
exit: _sitebuiltins.Quitter
54
54
@@ -57,7 +57,7 @@ index ea77a730f..900c4c93f 100644
57
57
@overload
58
58
def __new__(cls, function: None, iterable: Iterable[_T | None], /) -> Self: ...
59
59
@overload
60
- @@ -1431 ,7 +1431 ,7 @@ license: _sitebuiltins._Printer
60
+ @@ -1444 ,7 +1444 ,7 @@ license: _sitebuiltins._Printer
61
61
62
62
def locals() -> dict[str, Any]: ...
63
63
@@ -66,7 +66,7 @@ index ea77a730f..900c4c93f 100644
66
66
# 3.14 adds `strict` argument.
67
67
if sys.version_info >= (3, 14):
68
68
@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
70
70
71
71
quit: _sitebuiltins.Quitter
72
72
@@ -75,7 +75,7 @@ index ea77a730f..900c4c93f 100644
75
75
@overload
76
76
def __new__(cls, sequence: Reversible[_T], /) -> Iterator[_T]: ... # type: ignore[misc]
77
77
@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]: ...
79
79
@overload
80
80
def vars(object: Any = ..., /) -> dict[str, Any]: ...
81
81
@@ -107,7 +107,7 @@ index 2c8e7109c..4ed0ab1d8 100644
107
107
restkey: _T | None
108
108
restval: str | Any | None
109
109
diff --git a/mypy/typeshed/stdlib/fileinput.pyi b/mypy/typeshed/stdlib/fileinput.pyi
110
- index 948b39ea1..1d5f9cf00 100644
110
+ index 910d63814..eb942bc55 100644
111
111
--- a/mypy/typeshed/stdlib/fileinput.pyi
112
112
+++ b/mypy/typeshed/stdlib/fileinput.pyi
113
113
@@ -1,8 +1,8 @@
@@ -116,12 +116,12 @@ index 948b39ea1..1d5f9cf00 100644
116
116
- from collections.abc import Callable, Iterable
117
117
+ from collections.abc import Callable, Iterable, Iterator
118
118
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
121
121
from typing_extensions import Self, TypeAlias
122
122
123
123
__all__ = [
124
- @@ -104 ,7 +104 ,7 @@ def fileno() -> int: ...
124
+ @@ -105 ,7 +105 ,7 @@ def fileno() -> int: ...
125
125
def isfirstline() -> bool: ...
126
126
def isstdin() -> bool: ...
127
127
@@ -307,10 +307,10 @@ index b79f9e773..f276372d0 100644
307
307
def __iter__(self) -> Self: ...
308
308
def next(self, timeout: float | None = None) -> _T: ...
309
309
diff --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
311
311
--- a/mypy/typeshed/stdlib/sqlite3/__init__.pyi
312
312
+++ b/mypy/typeshed/stdlib/sqlite3/__init__.pyi
313
- @@ -399 ,7 +399 ,7 @@ class Connection:
313
+ @@ -405 ,7 +405 ,7 @@ class Connection:
314
314
self, type: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None, /
315
315
) -> Literal[False]: ...
316
316
@@ -320,5 +320,5 @@ index 5d3c2330b..ab783dbde 100644
320
320
@property
321
321
def connection(self) -> Connection: ...
322
322
- -
323
- 2.49.0
323
+ 2.50.1
324
324
0 commit comments