Skip to content

Commit 5903efe

Browse files
committed
Fix return type of __exit__ to bool
1 parent 6de7f12 commit 5903efe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/pip/_internal/build_env.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __exit__(
132132
exc_val, # type: Optional[BaseException]
133133
exc_tb # type: Optional[TracebackType]
134134
):
135-
# type: (...) -> None
135+
# type: (...) -> bool
136136
for varname, old_value in self._save_env.items():
137137
if old_value is None:
138138
os.environ.pop(varname, None)
@@ -222,7 +222,7 @@ def __exit__(
222222
exc_val, # type: Optional[BaseException]
223223
exc_tb # type: Optional[TracebackType]
224224
):
225-
# type: (...) -> None
225+
# type: (...) -> bool
226226
pass
227227

228228
def cleanup(self):

0 commit comments

Comments
 (0)