Skip to content

Commit 7cc56dd

Browse files
committed
add types
1 parent f57ea45 commit 7cc56dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/outcome/_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ async def asend(self, agen: AsyncGenerator[ResultT, ValueT]) -> ResultT:
190190
return await agen.asend(self.unwrap())
191191

192192
@property
193-
def value(self):
193+
def value(self) -> ValueT:
194194
return self.unwrap()
195195

196196

@@ -250,7 +250,7 @@ async def asend(self, agen: AsyncGenerator[ResultT, NoReturn]) -> ResultT:
250250
return await agen.athrow(self._unwrap_error())
251251

252252
@property
253-
def error(self):
253+
def error(self) -> BaseException:
254254
return self._unwrap_error()
255255

256256

0 commit comments

Comments
 (0)