Skip to content

Commit

Permalink
test: fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Nov 30, 2024
1 parent 95fb9d1 commit 762d8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def from_file(
assert unary_operators is None
assert n_features_in is None
with open(pkl_filename, "rb") as f:
model: "pysr.sr.PySRRegressor" = pkl.load(f)
model = cast("PySRRegressor", pkl.load(f))

# Update any parameters if necessary, such as
# extra_sympy_mappings:
Expand Down

0 comments on commit 762d8f9

Please sign in to comment.