We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
importlib.resources.files()
1 parent bfc9e52 commit 181f447Copy full SHA for 181f447
python/prophet/models.py
@@ -125,7 +125,10 @@ class CmdStanPyBackend(IStanBackend):
125
def __init__(self) -> None:
126
import cmdstanpy
127
# this must be set before super.__init__() for load_model to work on Windows
128
- local_cmdstan = importlib.resources.files("prophet") / "stan_model" / f"cmdstan-{self.CMDSTAN_VERSION}"
+ local_cmdstan = cast(
129
+ pathlib.Path,
130
+ importlib.resources.files("prophet") / "stan_model" / f"cmdstan-{self.CMDSTAN_VERSION}",
131
+ )
132
if local_cmdstan.exists():
133
cmdstanpy.set_cmdstan_path(str(local_cmdstan))
134
super().__init__()
0 commit comments