Skip to content

Commit

Permalink
Add output type hints to broadcast_shape* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jun 18, 2022
1 parent a7902a1 commit 90a0f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aesara/tensor/extra_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ def ravel_multi_index(multi_index, dims, mode="raise", order="C"):
return RavelMultiIndex(mode=mode, order=order)(*args)


def broadcast_shape(*arrays, **kwargs):
def broadcast_shape(*arrays, **kwargs) -> Tuple[aes.ScalarVariable, ...]:
"""Compute the shape resulting from broadcasting arrays.
Parameters
Expand All @@ -1462,7 +1462,7 @@ def broadcast_shape(*arrays, **kwargs):
def broadcast_shape_iter(
arrays: Iterable[Union[TensorVariable, Tuple[TensorVariable, ...]]],
arrays_are_shapes: bool = False,
):
) -> Tuple[aes.ScalarVariable, ...]:
r"""Compute the shape resulting from broadcasting arrays.
Expand Down

0 comments on commit 90a0f73

Please sign in to comment.