Skip to content

Commit

Permalink
correct overload type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
Goose committed Mar 3, 2025
1 parent b512717 commit ec0597f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymc/sampling/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from collections.abc import Callable, Iterable, Sequence
from typing import (
Any,
Literal,
TypeAlias,
cast,
overload,
Expand Down Expand Up @@ -367,7 +368,7 @@ def sample_prior_predictive(
model: Model | None = None,
var_names: Iterable[str] | None = None,
random_seed: RandomState = None,
return_inferencedata: bool = True,
return_inferencedata: Literal[True] = True,
idata_kwargs: dict | None = None,
compile_kwargs: dict | None = None,
samples: int | None = None,
Expand All @@ -378,7 +379,7 @@ def sample_prior_predictive(
model: Model | None = None,
var_names: Iterable[str] | None = None,
random_seed: RandomState = None,
return_inferencedata: bool = False,
return_inferencedata: Literal[False] = False,
idata_kwargs: dict | None = None,
compile_kwargs: dict | None = None,
samples: int | None = None,
Expand Down

0 comments on commit ec0597f

Please sign in to comment.