-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The automatic sync failed due to a merge conflict. Source commit: python/typeshed@661fe27 --------- Co-authored-by: Shantanu <[email protected]> Co-authored-by: AlexWaygood <[email protected]>
- Loading branch information
1 parent
35679e2
commit 0a6d40b
Showing
76 changed files
with
1,365 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 44bc98bd50e7170887f0740b53ed95a8eb04f00e Mon Sep 17 00:00:00 2001 | ||
From 58c6a6ab863c1c38e95ccafaf13792ed9c00e499 Mon Sep 17 00:00:00 2001 | ||
From: Shantanu <[email protected]> | ||
Date: Sat, 29 Oct 2022 12:47:21 -0700 | ||
Subject: [PATCH] Revert sum literal integer change (#13961) | ||
|
@@ -19,18 +19,18 @@ within mypy, I might pursue upstreaming this in typeshed. | |
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/mypy/typeshed/stdlib/builtins.pyi b/mypy/typeshed/stdlib/builtins.pyi | ||
index 99919c64c..680cd5561 100644 | ||
index ea9f8c894..a6065cc67 100644 | ||
--- a/mypy/typeshed/stdlib/builtins.pyi | ||
+++ b/mypy/typeshed/stdlib/builtins.pyi | ||
@@ -1596,7 +1596,7 @@ _SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWit | ||
@@ -1653,7 +1653,7 @@ _SupportsSumNoDefaultT = TypeVar("_SupportsSumNoDefaultT", bound=_SupportsSumWit | ||
# without creating many false-positive errors (see #7578). | ||
# Instead, we special-case the most common examples of this: bool and literal integers. | ||
@overload | ||
-def sum(iterable: Iterable[bool | _LiteralInteger], /, start: int = 0) -> int: ... # type: ignore[overload-overlap] | ||
+def sum(iterable: Iterable[bool], /, start: int = 0) -> int: ... # type: ignore[overload-overlap] | ||
-def sum(iterable: Iterable[bool | _LiteralInteger], /, start: int = 0) -> int: ... | ||
+def sum(iterable: Iterable[bool], /, start: int = 0) -> int: ... | ||
@overload | ||
def sum(iterable: Iterable[_SupportsSumNoDefaultT], /) -> _SupportsSumNoDefaultT | Literal[0]: ... | ||
@overload | ||
-- | ||
2.39.3 (Apple Git-146) | ||
2.46.0 | ||
|
Oops, something went wrong.