I’m glad to announce that my newest ebook, Python Typing, is now accessible on all platforms. You will get your copy on Gumroad or Leanpub or Amazon
Python has had kind hinting assist since Python 3.5, over TEN years in the past! Nonetheless, Python’s kind annotations have modified repeatedly over time. In Python Typing: Kind Checking for Python Programmers, you’ll be taught all it’s essential to know so as to add kind hints to your Python functions successfully.
Additionally, you will learn to use Python kind checkers, configure them, and set them up in pre-commit or GitHub Actions. This information will provide you with the facility to test your code and your staff’s code mechanically earlier than merging, hopefully catching defects earlier than they make it into your merchandise.
What You’ll Study
You’ll be taught all about Python’s assist for kind hinting (annotations). Particularly, you’ll be taught concerning the following subjects:
- Variable annotations
- Perform annotations
- Kind aliases
- New varieties
- Generics
- Hinting callables
- Annotating TypedDict
- Annotating Decorators and Mills
- Utilizing Mypy for kind checking
- Mypy configuration
- Utilizing ty for kind checking
- ty configuration
- and extra!

