Python Type Hints
Annotations, Generics, Protocols, Static Checking, Gradual Typing and Cleaner Code in Large Python Projects

EPUB · German
Price and availability
EPUB eBookUS store
$25.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- German
- Publisher
- neobooks
- Published
- 22 October 2026
- ISBN
- 9783565978151
- Subjects
- Computing & information technology, Computing and Information Technology
About this book
Large Python projects slow down when nobody can say what a function accepts, what it returns, or whether a value may be None. This book shows how to fix that with annotations a checker can verify. You will annotate functions and data, handle None with narrowing, write generics in the modern and the older syntax, describe interfaces with protocols, shape records with TypedDict and dataclasses, and use overloads and override checks to keep signatures honest. One chapter takes an unchecked legacy codebase through a gradual, module by module migration, and another sets up configuration and continuous integration for a team. Every example was run on Python 3.14 with mypy, and the runtime chapter explains what annotations do not enforce, including deferred evaluation in 3.14.
Bibliographic data © Gardners Books Ltd.