209
Python Performance: Why 'if not list' is 2x Faster Than Using len()
(blog.codingconfessions.com)
This is a most excellent place for technology news and articles.
Better yet, a type hint.
foo: list | None
can be checked by static analysis,# foo is a list
isn't.