Skip to content

Commit af4470f

Browse files
Update docs2
1 parent 0b3a3fc commit af4470f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

returns/maybe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ def filter(self,
149149
If the predicate returns false, Nothing is returned
150150
151151
.. code:: python
152+
153+
>>> from returns.maybe import Maybe, Some, Nothing
152154
>>> def predicate(value):
153-
>>> return value % 2 == 0
155+
... return value % 2 == 0
154156
155157
>>> assert Some(5).filter(predicate) == Nothing
156158
>>> assert Some(6).filter(predicate) == Some(6)

0 commit comments

Comments
 (0)