I recently reviewed #python code I wrote when I first starting using type hints.

My hints restricted what users could do with it. But two tiny changes opened up more possibilities and better communicated what the code needed.

I wrote this article to help others improve their hints.

everydaysuperpowers.dev/articl

@peterdrake Nice!!!

I especially like your "hints" in the yellow boxes.

I am working on adding similar hints to an ABC cheat sheet.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.