Siehe auch Software Design Guide

<aside> 💡 Type hints are not mandatory but they are very helpful and make code more secure!

</aside>

https://www.youtube.com/watch?v=dgBCEB2jVU0&ab_channel=ArjanCodes

Beispiel

def say_hi(name: str) -> str:
    return f'Hi {name}'

Type overview: Type hints cheat sheet