Skip to content

Commit e113c34

Browse files
committed
Fix type-hints of rvs_to_value_vars and replace_rvs_in_graphs
1 parent be5efae commit e113c34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/aesaraf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def replace_rvs_in_graphs(
210210
replacement_fn: Callable[[TensorVariable], Dict[TensorVariable, TensorVariable]],
211211
initial_replacements: Optional[Dict[TensorVariable, TensorVariable]] = None,
212212
**kwargs,
213-
) -> Tuple[TensorVariable, Dict[TensorVariable, TensorVariable]]:
213+
) -> Tuple[List[TensorVariable], Dict[TensorVariable, TensorVariable]]:
214214
"""Replace random variables in graphs
215215
216216
This will *not* recompute test values.
@@ -265,7 +265,7 @@ def rvs_to_value_vars(
265265
apply_transforms: bool = True,
266266
initial_replacements: Optional[Dict[TensorVariable, TensorVariable]] = None,
267267
**kwargs,
268-
) -> TensorVariable:
268+
) -> List[TensorVariable]:
269269
"""Clone and replace random variables in graphs with their value variables.
270270
271271
This will *not* recompute test values in the resulting graphs.

0 commit comments

Comments
 (0)