Skip to content

Commit

Permalink
fix bad doc examples in mutually_broadcastable_shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsokl committed Oct 10, 2022
1 parent fda07ec commit e2327e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

This improves the documentation for :func:`~hypothesis.extra.numpy.mutually_broadcastable_shapes`. Specifically, it fixes examples that included incorrect return-shapes.
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/extra/_array_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ def mutually_broadcastable_shapes(
... print(strat.example())
BroadcastableShapes(input_shapes=((4, 1, 3), (4, 2, 3), ()), result_shape=(4, 2, 3))
BroadcastableShapes(input_shapes=((3,), (1, 3), (2, 3)), result_shape=(2, 3))
BroadcastableShapes(input_shapes=((), (), ()), result_shape=(2, 3))
BroadcastableShapes(input_shapes=((3,), (), (3,)), result_shape=(2, 3))
BroadcastableShapes(input_shapes=((), (), ()), result_shape=())
BroadcastableShapes(input_shapes=((3,), (), (3,)), result_shape=(3,))
BroadcastableShapes(input_shapes=((1, 2, 3), (3,), ()), result_shape=(1, 2, 3))
"""
Expand Down

0 comments on commit e2327e3

Please sign in to comment.