Skip to content

Commit 18a2d77

Browse files
committed
move attr docstrings to properties
1 parent 4322626 commit 18a2d77

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
@@ -179,7 +179,6 @@ class Value(Outcome[ValueT], Generic[ValueT]):
179179
"""
180180

181181
_value: ValueT = attr.ib()
182-
"""The contained value."""
183182

184183
def __repr__(self) -> str:
185184
try:
@@ -208,6 +207,7 @@ async def asend(self, agen: AsyncGenerator[ResultT, ValueT]) -> ResultT:
208207

209208
@property
210209
def value(self) -> ValueT:
210+
"""The contained value."""
211211
try:
212212
return self._value
213213
except AttributeError as e:
@@ -225,7 +225,6 @@ class Error(Outcome[NoReturn]):
225225
_error: BaseException = attr.ib(
226226
validator=attr.validators.instance_of(BaseException)
227227
)
228-
"""The contained exception object."""
229228

230229
def __repr__(self) -> str:
231230
try:
@@ -293,6 +292,7 @@ async def asend(self, agen: AsyncGenerator[ResultT, NoReturn]) -> ResultT:
293292

294293
@property
295294
def error(self) -> BaseException:
295+
"""The contained exception object."""
296296
try:
297297
return self._error
298298
except AttributeError:

0 commit comments

Comments
 (0)