mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 14:13:44 +00:00
Minor changes to type hints
This commit is contained in:
parent
555b54cbbc
commit
33266f262f
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user