Type hint

Applies to: python

A type hint documents the expected type of a value. Python can run without it, but editors and checkers use it to catch mistakes.

def norm(x: float, y: float) -> float:
    return (x*x + y*y) ** 0.5

See also: data-type, function