1
- From e6995c91231e1915eba43a29a22dd4cbfaf9e08e Mon Sep 17 00:00:00 2001
1
+ From 805d7fc06a8bee350959512e0908a18a87b7f8c2 Mon Sep 17 00:00:00 2001
2
2
From: Shantanu <
[email protected] >
3
3
Date: Mon, 26 Sep 2022 12:55:07 -0700
4
4
Subject: [PATCH] Remove use of LiteralString in builtins (#13743)
@@ -8,7 +8,7 @@ Subject: [PATCH] Remove use of LiteralString in builtins (#13743)
8
8
1 file changed, 1 insertion(+), 99 deletions(-)
9
9
10
10
diff --git a/mypy/typeshed/stdlib/builtins.pyi b/mypy/typeshed/stdlib/builtins.pyi
11
- index 00728f42d..ea77a730f 100644
11
+ index c7ab95482..3e93da36e 100644
12
12
--- a/mypy/typeshed/stdlib/builtins.pyi
13
13
+++ b/mypy/typeshed/stdlib/builtins.pyi
14
14
@@ -63,7 +63,6 @@ from typing import ( # noqa: Y022,UP035
@@ -19,7 +19,7 @@ index 00728f42d..ea77a730f 100644
19
19
ParamSpec,
20
20
Self,
21
21
TypeAlias,
22
- @@ -453 ,31 +452 ,16 @@ class str(Sequence[str]):
22
+ @@ -468 ,31 +467 ,16 @@ class str(Sequence[str]):
23
23
def __new__(cls, object: object = ...) -> Self: ...
24
24
@overload
25
25
def __new__(cls, object: ReadableBuffer, encoding: str = ..., errors: str = ...) -> Self: ...
@@ -51,7 +51,7 @@ index 00728f42d..ea77a730f 100644
51
51
def format(self, *args: object, **kwargs: object) -> str: ...
52
52
def format_map(self, mapping: _FormatMapMapping, /) -> str: ...
53
53
def index(self, sub: str, start: SupportsIndex | None = ..., end: SupportsIndex | None = ..., /) -> int: ...
54
- @@ -493 ,98 +477 ,34 @@ class str(Sequence[str]):
54
+ @@ -508 ,98 +492 ,34 @@ class str(Sequence[str]):
55
55
def isspace(self) -> bool: ...
56
56
def istitle(self) -> bool: ...
57
57
def isupper(self) -> bool: ...
@@ -150,7 +150,7 @@ index 00728f42d..ea77a730f 100644
150
150
def zfill(self, width: SupportsIndex, /) -> str: ... # type: ignore[misc]
151
151
@staticmethod
152
152
@overload
153
- @@ -595 ,39 +515 ,21 @@ class str(Sequence[str]):
153
+ @@ -610 ,39 +530 ,21 @@ class str(Sequence[str]):
154
154
@staticmethod
155
155
@overload
156
156
def maketrans(x: str, y: str, z: str, /) -> dict[int, int | None]: ...
@@ -190,7 +190,7 @@ index 00728f42d..ea77a730f 100644
190
190
- @overload
191
191
def __rmul__(self, value: SupportsIndex, /) -> str: ... # type: ignore[misc]
192
192
def __getnewargs__(self) -> tuple[str]: ...
193
-
193
+ def __format__(self, format_spec: str, /) -> str: ...
194
194
- -
195
- 2.49.0
195
+ 2.50.1
196
196
0 commit comments