Articles by Real Python
Python 3.12 Preview: Static Typing Improvements
In this tutorial, you’ll preview the new static typing features in Python 3.12. You’ll learn about the new syntax for type variables, making generics simpler to define. You’ll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments.