2 ms·
Well then support an option to enable that kind behaviour? Make it an explicit decision by the devs. I think running in a type error and then adding an exceptio
by luoc 1y ago
Well then support an option to enable that kind behaviour? Make it an explicit decision by the devs. I think running in a type error and then adding an exception to your config is safer than silently pass and only learn about the mixed types in a production bug
- fastasucan 1y agoThe tool doesn't have a version number yet, its in preview. Chill.
- shoeb00m 1y agoI think this should be handled by a type assisted linter not typechecker. Imo a type checker in a dynamic language should is primarily there to avoid runtime errors. In a list with multiple types the typechecker should instead force you to check the type before using an element in that list. If you want static types python is the wrong language