Skip to content

Commit 159d603

Browse files
authored
Merge pull request #937 from probcomp/jburnim_map_annotation
Fix type annotation for MapCombinator.assess
2 parents 94a4b50 + cdff144 commit 159d603

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/genjax/_src/generative_functions/combinators/vector/map_combinator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from genjax._src.core.pytree import Pytree
3939
from genjax._src.core.typing import (
4040
Any,
41+
ArrayLike,
4142
FloatArray,
4243
IntArray,
4344
PRNGKey,
@@ -409,7 +410,7 @@ def assess(
409410
self,
410411
choice: VectorChoiceMap,
411412
args: Tuple,
412-
) -> Tuple[Any, FloatArray]:
413+
) -> Tuple[ArrayLike, Any]:
413414
self._static_check_broadcastable(args)
414415
broadcast_dim_length = self._static_broadcast_dim_length(args)
415416
choice_dim = Pytree.static_check_tree_leaves_have_matching_leading_dim(choice)

0 commit comments

Comments
 (0)