Re:An Overview of the Starlark Language
by Turskarama on Friday June 07, 2024 @11:46PM
(#40615119)
OP did also say "They wouldn't even have to be specified", which is the big difference here needed for a type checker to actually use them over comments.
One difference is that Python specifies the type system in PEPs (basically Python's RFCs), while OP didn't ask for that here. This would mean whatever tool is implemented would define the type system.