Skip to content

Commit 9a6db3d

Browse files
committed
🔧 chore: update return type of RequestsMock.__exit__
1 parent 9ea86fe commit 9a6db3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

responses/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,13 +990,12 @@ def __enter__(self) -> "RequestsMock":
990990
self.start()
991991
return self
992992

993-
def __exit__(self, type: Any, value: Any, traceback: Any) -> bool:
993+
def __exit__(self, type: Any, value: Any, traceback: Any) -> None:
994994
success = type is None
995995
try:
996996
self.stop(allow_assert=success)
997997
finally:
998998
self.reset()
999-
return success
1000999

10011000
@overload
10021001
def activate(self, func: "_F" = ...) -> "_F":

0 commit comments

Comments
 (0)