A blog post on choosing more specific types rather than general ones like list and dict.

  • qwertyasdef@programming.dev
    ·
    9 months ago

    If you don't need to reuse the collection or access its items out of order, you can also use Iterable which accepts even more inputs like generators.