from typing import List


def linspace(start: float, stop: float, n: int) -> List[float]:
	"""Returns a List of linearly spaced numbers."""
	if n <= 0:
		return []
	elif n == 1:
		return [start]
	else:
		step = (stop - start)/(n - 1)
		return [start + step*i for i in range(n)]