Skip to content

Commit 7bfacff

Browse files
committed
Fix typo
1 parent 93e8833 commit 7bfacff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesflow/approximators/continuous_approximator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _sample(
338338
**filter_kwargs(kwargs, self.inference_network.sample),
339339
)
340340

341-
def log_prob(self, data: dict[str, np.ndarray], **kwargs) -> np.ndarray | dict(str, np.ndarray):
341+
def log_prob(self, data: dict[str, np.ndarray], **kwargs) -> np.ndarray | dict[str, np.ndarray]:
342342
"""
343343
Computes the log-probability of given data under the model. The `data` dictionary is preprocessed using the
344344
`adapter`. Log-probabilities are returned as NumPy arrays.
@@ -368,7 +368,7 @@ def _log_prob(
368368
inference_conditions: Tensor = None,
369369
summary_variables: Tensor = None,
370370
**kwargs,
371-
) -> Tensor | dict(str, Tensor):
371+
) -> Tensor | dict[str, Tensor]:
372372
if self.summary_network is None:
373373
if summary_variables is not None:
374374
raise ValueError("Cannot use summary variables without a summary network.")

0 commit comments

Comments
 (0)