Minor changes to type hints

This commit is contained in:
Pablito 2024-12-04 14:49:54 +01:00
parent 60ad958472
commit 555b54cbbc

View File

@ -1,12 +1,13 @@
# 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) -> [float]:
def legendre(n: int) -> List[float]:
"""
Compute the coefficients of the nth Legendre polynomial.