diff --git a/src/python/bezier/hazmat/algebraic_intersection.py b/src/python/bezier/hazmat/algebraic_intersection.py index 531f5a07..9c7225a6 100644 --- a/src/python/bezier/hazmat/algebraic_intersection.py +++ b/src/python/bezier/hazmat/algebraic_intersection.py @@ -715,9 +715,9 @@ def bernstein_companion(coeffs): companion = np.zeros((effective_degree, effective_degree), order="F") # pylint: disable=unsupported-assignment-operation - companion.flat[ - effective_degree :: effective_degree + 1 # noqa: E203 - ] = 1.0 + companion.flat[effective_degree :: effective_degree + 1] = ( # noqa: E203 + 1.0 + ) # pylint: enable=unsupported-assignment-operation companion[0, :] = -sigma_coeffs[::-1] return companion, degree, effective_degree diff --git a/tests/unit/test__symbolic.py b/tests/unit/test__symbolic.py index 0d422525..76896a12 100644 --- a/tests/unit/test__symbolic.py +++ b/tests/unit/test__symbolic.py @@ -124,12 +124,7 @@ def test_it(self): f_polynomial = self._call_function_under_test(x_fn, y_fn, s) expected = ( - x_sym**2 - + 2 * x_sym * y_sym - - 3 * x_sym - + y_sym**2 - - 4 * y_sym - + 3 + x_sym**2 + 2 * x_sym * y_sym - 3 * x_sym + y_sym**2 - 4 * y_sym + 3 ) assert sympy_equal(f_polynomial, expected) diff --git a/tests/unit/test_curve.py b/tests/unit/test_curve.py index 1a4e159f..c2036500 100644 --- a/tests/unit/test_curve.py +++ b/tests/unit/test_curve.py @@ -249,9 +249,7 @@ def _intersect_helper(self, **kwargs): right = self._make_one(nodes_right, 2) result = left.intersect(right, **kwargs) expected = np.asfortranarray([[1.0], [2.0]]) / 3.0 - self.assertTrue( - np.allclose(result, expected, atol=0.0, rtol=0.5**52) - ) + self.assertTrue(np.allclose(result, expected, atol=0.0, rtol=0.5**52)) def test_intersect(self): self._intersect_helper()