Aug-26-2018, 05:06 AM
What you want is linter, such as pylint. This won't involve declarations, but it will detect typos much like a language with variable declaration.
Personally, I try to follow a function-programming style of not reassigning variable names. While that won't catch typos in use before runtime, it prevents accidentally naming a second variable with a typo'd name.
Personally, I try to follow a function-programming style of not reassigning variable names. While that won't catch typos in use before runtime, it prevents accidentally naming a second variable with a typo'd name.