Skip to content

Commit

Permalink
fix(unipoly): add type notations
Browse files Browse the repository at this point in the history
  • Loading branch information
gy001 committed Dec 13, 2024
1 parent 2e5795f commit 092215b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unipoly.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def compute_linear_combination_linear_moduli_fix(tree, ws, domain):
return result

@staticmethod
def evaluate_at_point(poly, point):
def evaluate_at_point(poly: list[F], point: F) -> F:
"""Evaluate a polynomial at a single point using Horner's method."""
result = 0
for coeff in reversed(poly):
Expand Down

0 comments on commit 092215b

Please sign in to comment.