Yep, a renowned Python footgun. Although Lambda container reuse adds a modern twist to it.
Can I ask what editor you were using? Because decent ones should have warned you about mutable default args.
Can I ask what editor you were using? Because decent ones should have warned you about mutable default args.
I started a discussion in Pyright's repo here[0].