Comment on 3 percent of Python codebases we checked had silently failing unit testsparentComments−pure_simplicity4yThe second one will run, because as the file gets executed top down, the second declaration overwrites the first declaration, just like when you reassign a variable.But yeah that would be a good thing for a linter to catch. I'm not aware if any do.
Comments
The second one will run, because as the file gets executed top down, the second declaration overwrites the first declaration, just like when you reassign a variable.
But yeah that would be a good thing for a linter to catch. I'm not aware if any do.