The most common Python trap & how to find it
We had a near miss with a mutable default argument in one of my Python projects.
Mutable defaults are an old and well-documented problem in Python, arguably a language design mistake. Given its notoriety, I was running under the assumption that it's the kind of obvious Python bug that any linter would immediately pick up and flag. I were to explain to a 6-year-old what a "python linter" is, I'd probably say someting like "a tool that finds typical bugs, like mutable default function arguments".
Turns out I was being optimistic!
We caught the bug before it went live, but I resolved to find which static analysis tools actually check for this problem.