B7 - type hints

number: int = int(input('number: '))
word: str = input('word: ')
def func(n: float) -> None:
	...

def func2(a: str, b: str) -> str:
	return a + b


type aliases

type Vector = list[float]

def scale(scalar: float, vector: Vector) -> Vector:
	return [scalar * num for num in vector]
from typing import TypeAlias

Vector: TypeAlias = list[float]

new type

from typing import NewType

Id  = NewType(Id, int)
random_id = Id(1321)
random_id2 = Id(1354)

output = random_id + random_id2
# the type will be int