Skip to content

Commit 30aa760

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 650d9d7 commit 30aa760

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

returns/maybe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/test_maybe/test_maybe_conversions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_nothing_is_false():
1515
def 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))

0 commit comments

Comments
 (0)