We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d40df0 commit e0f3178Copy full SHA for e0f3178
1 file changed
src/outcome/_impl.py
@@ -180,10 +180,7 @@ def unwrap(self) -> ValueT:
180
pass
181
else:
182
object.__delattr__(self, "value")
183
- try:
184
- return v
185
- finally:
186
- del v
+ return v
187
raise AlreadyUsedError
188
189
def send(self, gen: Generator[ResultT, ValueT, object]) -> ResultT:
@@ -218,10 +215,7 @@ def _unwrap_error(self) -> BaseException:
218
215
219
216
220
217
object.__delattr__(self, "error")
221
222
223
224
225
226
227
def unwrap(self) -> NoReturn:
0 commit comments