
Type Checking in Python
I completed “Python Type Checking (Guide)” intermediate-level tutorial offered by Real Python. The instructor of the tutorial is Geir Arne Hjelle. Using type hints makes it easier for you to reason about code, find subtle bugs, and maintain a clean architecture. In this tutorial I learned about: • Type Systems • Pros and Cons • Annotations • Sequences and Mappings • Type Aliases • Functions Without Return Value • The any Type • Type Theory • Type Variables • Duck Types and Protocols • The Optional Type • Example: A Deck of Cards • Example: The Object(ive) of the Game • Type hints for Methods • Class as Types • Returning self or cls • Annotating *args and **kwargs • Callables • The Mypy project and running Mypy • Adding Stubs • Typeshed • Using Types at Runtime You can find this tutorial at · https://realpython.com/python-type-checking/