File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -443,8 +443,9 @@ def failure(self):
443443 raise UnwrapFailedError (self )
444444
445445 def __bool__ (self ):
446- """Returns ``True```. Any instance of ``Something`` is treated
447- as ``True``, even ``Something(None)``."""
446+ """Returns ``True```. Any instance of ``Something`` is treated
447+ as ``True``, even ``Something(None)``.
448+ """
448449 return True
449450
450451
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def test_nothing_is_false():
1515def test_some_none_is_true ():
1616 """Ensures that ``Something(None)`` is ``True`` when treated as a boolean.
1717
18- See <https://github.com/dry-python/returns/issues/2177> for the discussion
18+ See <https://github.com/dry-python/returns/issues/2177> for the discussion
1919 of this design choice.
2020 """
2121 assert bool (Some (None ))
You can’t perform that action at this time.
0 commit comments