mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
Minor changes to type hints
This commit is contained in:
parent
60ad958472
commit
555b54cbbc
|
@ -1,12 +1,13 @@
|
||||||
# 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) -> [float]:
|
def legendre(n: int) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Compute the coefficients of the nth Legendre polynomial.
|
Compute the coefficients of the nth Legendre polynomial.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user