Skip to content

Commit 9e50870

Browse files
committed
Fix recursive example
1 parent ccac436 commit 9e50870

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hypothesis-python/docs/data.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ for your data type, returns a new strategy for it. So for example:
195195
... from pprint import pprint
196196
>>> json = recursive(
197197
... none() | booleans() | floats() | text(printable),
198-
... lambda children: lists(children, 1)
199-
... | dictionaries(text(printable), children, min_size=1),
198+
... lambda children: lists(children) | dictionaries(text(printable), children),
200199
... )
201200
>>> pprint(json.example())
202201
[[1.175494351e-38, ']', 1.9, True, False, '.M}Xl', ''], True]

0 commit comments

Comments
 (0)