File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ def __init__(self, last_attempt: "Future") -> None:
190
190
self .last_attempt = last_attempt
191
191
super ().__init__ (last_attempt )
192
192
193
- def reraise (self ) -> t .NoReturn :
193
+ def reraise (self ) -> " t.NoReturn" :
194
194
if self .last_attempt .failed :
195
195
raise self .last_attempt .result ()
196
196
raise self
Original file line number Diff line number Diff line change 1
1
diff --git a/src/pip/_vendor/tenacity/__init__.py b/src/pip/_vendor/tenacity/__init__.py
2
- index 88c28d2d6..f984eec4e 100644
2
+ index 88c28d2d6..086ad46e1 100644
3
3
--- a/src/pip/_vendor/tenacity/__init__.py
4
4
+++ b/src/pip/_vendor/tenacity/__init__.py
5
5
@@ -76,10 +76,12 @@ from .after import after_nothing # noqa
@@ -19,3 +19,16 @@ index 88c28d2d6..f984eec4e 100644
19
19
20
20
if t.TYPE_CHECKING:
21
21
import types
22
+
23
+ --- a/src/pip/_vendor/tenacity/__init__.py
24
+ +++ b/src/pip/_vendor/tenacity/__init__.py
25
+ @@ -190,7 +190,7 @@ class RetryError(Exception):
26
+ self.last_attempt = last_attempt
27
+ super().__init__(last_attempt)
28
+
29
+ - def reraise(self) -> t.NoReturn:
30
+ + def reraise(self) -> "t.NoReturn":
31
+ if self.last_attempt.failed:
32
+ raise self.last_attempt.result()
33
+ raise self
34
+
You can’t perform that action at this time.
0 commit comments