News for hackers. Stuff that matters.
Re:Python Anti-Pattern by davidatbu on Thursday September 16, 2021 @02:39AM (#28548787)
You're right, I checked, and pyright only warns about function calls in default arguments, not mutable containers.

I started a discussion in Pyright's repo here[0].

[0] https://github.com/microsoft/pyright/discussions/2306

Re:Python Anti-Pattern by davidatbu on Thursday September 16, 2021 @02:55PM (#28555698)
Thanks to the maintainer's great responsiveness, Pyright will implement such a warning soon: https://github.com/microsoft/pyright/issues/2308