From 03d2cd1fa5787f93b366c8bf02fe5bc4726dd09b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 Feb 2023 14:12:59 -0700 Subject: [PATCH] [qu2cu] More cython annotations Apparently you can even annotate variables inside generator expressions. --- Lib/fontTools/qu2cu/qu2cu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/fontTools/qu2cu/qu2cu.py b/Lib/fontTools/qu2cu/qu2cu.py index 0beba0ed9..7d01f5224 100644 --- a/Lib/fontTools/qu2cu/qu2cu.py +++ b/Lib/fontTools/qu2cu/qu2cu.py @@ -111,6 +111,7 @@ def elevate_quadratic(p0, p1, p2, _1_3=1 / 3, _2_3=2 / 3): prod_ratio=cython.double, sum_ratio=cython.double, ratio=cython.double, + t=cython.double, p0=cython.complex, p1=cython.complex, p2=cython.complex, @@ -263,6 +264,8 @@ Solution = namedtuple("Solution", ["num_points", "error", "start_index", "is_cub p1=cython.complex, p2=cython.complex, p3=cython.complex, + v=cython.complex, + u=cython.complex, ) def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False): """