one can argue that it is intrinsically wrong for type hints (which are metadata, much like comments) to modify the program's behavior at all, but in reality nearly everyone is fine with it since it does makes sense in cases like this one and other libraries that parse structured input in similar ways.
View all comments
Show parent comment
6
u/ChannelCat Nov 26 '22
This makes sense and is supported by type checkers. What's not to like?