Mรณdulo 03 ยท Classes & Typing โ Lecciรณn 3 de 4 ยท ~8 min
Type hints
Hints Python never enforced โ until now, sort of
You've already been writing type hints (name: str, price_cents: int) without naming them. A type hint is an annotation after : on a parameter, or after -> on a function, describing the type you INTEND. def price_label(cents: int) -> str: reads: takes an int, returns a str.