From 33266f262f5c45fd9adf9ad3b7d02fb378d0b05b Mon Sep 17 00:00:00 2001 From: Pablito Date: Wed, 4 Dec 2024 14:51:02 +0100 Subject: [PATCH] Minor changes to type hints --- maths/polynomials/legendre.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maths/polynomials/legendre.py b/maths/polynomials/legendre.py index a359deabd..d5cbb2564 100644 --- a/maths/polynomials/legendre.py +++ b/maths/polynomials/legendre.py @@ -1,13 +1,12 @@ # Imports de bibliothèques standard from math import factorial -from typing import List # Imports de bibliothèques tierces import pytest from numpy.polynomial import Polynomial -def legendre(n: int) -> List[float]: +def legendre(n: int) -> list[float]: """ Compute the coefficients of the nth Legendre polynomial.