Skip to content

Commit dbae925

Browse files
Update docs2
1 parent db2e1da commit dbae925

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
@@ -147,8 +147,10 @@ def filter(self,
147147
If the predicate returns false, Nothing is returned
148148
149149
.. code:: python
150+
151+
>>> from returns.maybe import Maybe, Some, Nothing
150152
>>> def predicate(value):
151-
>>> return value % 2 == 0
153+
... return value % 2 == 0
152154
153155
>>> assert Some(5).filter(predicate) == Nothing
154156
>>> assert Some(6).filter(predicate) == Some(6)

0 commit comments

Comments
 (0)