Skip to content

Commit e2327e3

Browse files
committed
fix bad doc examples in mutually_broadcastable_shapes
1 parent fda07ec commit e2327e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RELEASE_TYPE: patch
2+
3+
This improves the documentation for :func:`~hypothesis.extra.numpy.mutually_broadcastable_shapes`. Specifically, it fixes examples that included incorrect return-shapes.

hypothesis-python/src/hypothesis/extra/_array_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ def mutually_broadcastable_shapes(
387387
... print(strat.example())
388388
BroadcastableShapes(input_shapes=((4, 1, 3), (4, 2, 3), ()), result_shape=(4, 2, 3))
389389
BroadcastableShapes(input_shapes=((3,), (1, 3), (2, 3)), result_shape=(2, 3))
390-
BroadcastableShapes(input_shapes=((), (), ()), result_shape=(2, 3))
391-
BroadcastableShapes(input_shapes=((3,), (), (3,)), result_shape=(2, 3))
390+
BroadcastableShapes(input_shapes=((), (), ()), result_shape=())
391+
BroadcastableShapes(input_shapes=((3,), (), (3,)), result_shape=(3,))
392392
BroadcastableShapes(input_shapes=((1, 2, 3), (3,), ()), result_shape=(1, 2, 3))
393393
394394
"""

0 commit comments

Comments
 (0)