GeekTrainer

Musings of a trainer of geeks.

Python Type Hints

I was on a community call on the Microsoft Python Discord channel when I was asked what my favorite new feature for Python was. My answer was immediate - “Type hints, type hints, type hints”. I find questions like this make for great blog posts, so let’s give it a whirl! The problem Before we get into type hints and why they’re so amazing, let’s explore the problem space. Let’s say I’ve created the following function: Continue reading