Skip to content

Commit bb63337

Browse files
committed
Update remaining patches
1 parent d31a95f commit bb63337

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

misc/typeshed_patches/0001-Partially-revert-Clean-up-argparse-hacks.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b5f2cc9633f9f6cd9326eee96a32efb3aff70701 Mon Sep 17 00:00:00 2001
1+
From f12b57ec89a6431737e4f473cecabf0d350b0d46 Mon Sep 17 00:00:00 2001
22
From: Marc Mueller <[email protected]>
33
Date: Sat, 15 Feb 2025 20:11:06 +0100
44
Subject: [PATCH] Partially revert Clean up argparse hacks
@@ -8,7 +8,7 @@ Subject: [PATCH] Partially revert Clean up argparse hacks
88
1 file changed, 5 insertions(+), 3 deletions(-)
99

1010
diff --git a/mypy/typeshed/stdlib/argparse.pyi b/mypy/typeshed/stdlib/argparse.pyi
11-
index 029bfeefe..9dbd8c308 100644
11+
index 32beaff14..e97a2d2e1 100644
1212
--- a/mypy/typeshed/stdlib/argparse.pyi
1313
+++ b/mypy/typeshed/stdlib/argparse.pyi
1414
@@ -2,7 +2,7 @@ import sys
@@ -20,7 +20,7 @@ index 029bfeefe..9dbd8c308 100644
2020
from typing_extensions import Self, TypeAlias, deprecated
2121

2222
__all__ = [
23-
@@ -38,7 +38,9 @@ ONE_OR_MORE: Final = "+"
23+
@@ -36,7 +36,9 @@ ONE_OR_MORE: Final = "+"
2424
OPTIONAL: Final = "?"
2525
PARSER: Final = "A..."
2626
REMAINDER: Final = "..."
@@ -31,7 +31,7 @@ index 029bfeefe..9dbd8c308 100644
3131
ZERO_OR_MORE: Final = "*"
3232
_UNRECOGNIZED_ARGS_ATTR: Final = "_unrecognized_args" # undocumented
3333

34-
@@ -81,7 +83,7 @@ class _ActionsContainer:
34+
@@ -79,7 +81,7 @@ class _ActionsContainer:
3535
# more precisely, Literal["?", "*", "+", "...", "A...", "==SUPPRESS=="],
3636
# but using this would make it hard to annotate callers that don't use a
3737
# literal argument and for subclasses to override this method.
@@ -41,5 +41,5 @@ index 029bfeefe..9dbd8c308 100644
4141
default: Any = ...,
4242
type: _ActionType = ...,
4343
--
44-
2.48.1
44+
2.49.0
4545

misc/typeshed_patches/0001-Revert-sum-literal-integer-change-13961.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 58c6a6ab863c1c38e95ccafaf13792ed9c00e499 Mon Sep 17 00:00:00 2001
1+
From ea30f4a61c9b4094519d02b4793cee5ad2ba6b54 Mon Sep 17 00:00:00 2001
22
From: Shantanu <[email protected]>
33
Date: Sat, 29 Oct 2022 12:47:21 -0700
44
Subject: [PATCH] Revert sum literal integer change (#13961)
@@ -19,10 +19,10 @@ within mypy, I might pursue upstreaming this in typeshed.
1919
1 file changed, 1 insertion(+), 1 deletion(-)
2020

2121
diff --git a/mypy/typeshed/stdlib/builtins.pyi b/mypy/typeshed/stdlib/builtins.pyi
22-
index ea9f8c894..a6065cc67 100644
22+
index e45967e10..e9b0d51eb 100644
2323
--- a/mypy/typeshed/stdlib/builtins.pyi
2424
+++ b/mypy/typeshed/stdlib/builtins.pyi
25-
@@ -1653,7 +1653,7 @@ _SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWit
25+
@@ -1686,7 +1686,7 @@ _SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWit
2626
# without creating many false-positive errors (see #7578).
2727
# Instead, we special-case the most common examples of this: bool and literal integers.
2828
@overload
@@ -32,5 +32,5 @@ index ea9f8c894..a6065cc67 100644
3232
def sum(iterable: Iterable[_SupportsSumNoDefaultT], /) -> _SupportsSumNoDefaultT | Literal[0]: ...
3333
@overload
3434
--
35-
2.46.0
35+
2.49.0
3636

misc/typeshed_patches/0001-Revert-typeshed-ctypes-change.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 61a490091d7c941780919660dc4fdfa88ae6474a Mon Sep 17 00:00:00 2001
1+
From 59b3ec786214d308b6e6950b1cfa2d6266967174 Mon Sep 17 00:00:00 2001
22
From: AlexWaygood <[email protected]>
33
Date: Mon, 1 May 2023 20:34:55 +0100
44
Subject: [PATCH] Revert typeshed ctypes change Since the plugin provides
@@ -11,10 +11,10 @@ Subject: [PATCH] Revert typeshed ctypes change Since the plugin provides
1111
1 file changed, 1 insertion(+), 5 deletions(-)
1212

1313
diff --git a/mypy/typeshed/stdlib/_ctypes.pyi b/mypy/typeshed/stdlib/_ctypes.pyi
14-
index 60bbc51d9..cf9cb81a4 100644
14+
index 4cbb030bb..6b79b9ff0 100644
1515
--- a/mypy/typeshed/stdlib/_ctypes.pyi
1616
+++ b/mypy/typeshed/stdlib/_ctypes.pyi
17-
@@ -169,11 +169,7 @@ class Array(_CData, Generic[_CT]):
17+
@@ -284,11 +284,7 @@ class Array(_CData, Generic[_CT], metaclass=_PyCArrayType):
1818
def _type_(self) -> type[_CT]: ...
1919
@_type_.setter
2020
def _type_(self, value: type[_CT]) -> None: ...
@@ -25,8 +25,8 @@ index 60bbc51d9..cf9cb81a4 100644
2525
- def raw(self, value: ReadableBuffer) -> None: ...
2626
+ raw: bytes # Note: only available if _CT == c_char
2727
value: Any # Note: bytes if _CT == c_char, str if _CT == c_wchar, unavailable otherwise
28-
# TODO These methods cannot be annotated correctly at the moment.
28+
# TODO: These methods cannot be annotated correctly at the moment.
2929
# All of these "Any"s stand for the array's element type, but it's not possible to use _CT
3030
--
31-
2.39.3 (Apple Git-146)
31+
2.49.0
3232

0 commit comments

Comments
 (0)