21
Typed Python: Choose Sequence over List
(blog.meadsteve.dev)
Welcome to the Python community on the programming.dev Lemmy instance!
October 2023
November 2023
Past
July 2023
August 2023
September 2023
Good point, and Łukasz Langa mentioned this in his talk (check it out). He names it the robustness principle, in his words (around
22:20
mark:But he also mentions some gotchas like how
Iterable[str]
can backfire, becausestr
is also anIterable[str]
and it might be better to uselist[str]
.