Minor changes to type hints

This commit is contained in:
Pablito 2024-12-04 14:51:02 +01:00
parent 555b54cbbc
commit 33266f262f

View File

@ -1,13 +1,12 @@
# Imports de bibliothèques standard # Imports de bibliothèques standard
from math import factorial from math import factorial
from typing import List
# Imports de bibliothèques tierces # Imports de bibliothèques tierces
import pytest import pytest
from numpy.polynomial import Polynomial 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. Compute the coefficients of the nth Legendre polynomial.