Skip to content

Commit 4753236

Browse files
committed
type hint
1 parent 322fb4b commit 4753236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesflow/workflows/basic_workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def compositional_sample(
291291
*,
292292
num_samples: int,
293293
conditions: Mapping[str, np.ndarray],
294-
compute_prior_score: Callable[Mapping[str, np.ndarray], Mapping[str, np.ndarray]],
294+
compute_prior_score: Callable[[Mapping[str, np.ndarray]], Mapping[str, np.ndarray]],
295295
**kwargs,
296296
) -> dict[str, np.ndarray]:
297297
"""
@@ -307,7 +307,7 @@ def compositional_sample(
307307
NumPy arrays containing the adapted simulated variables. Keys used as summary or inference
308308
conditions during training should be present.
309309
Should have shape (n_datasets, n_compositional_conditions, ...).
310-
compute_prior_score : Callable[dict[str, np.ndarray], dict[str, np.ndarray]]
310+
compute_prior_score : Callable[[dict[str, np.ndarray]], dict[str, np.ndarray]]
311311
A function that computes the log probability of samples under the prior distribution.
312312
**kwargs : dict, optional
313313
Additional keyword arguments passed to the approximator's sampling function.

0 commit comments

Comments
 (0)