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

  • MeadSteve@reddthat.comOP
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    That was definitely a nice feature (I forget exactly when list over List was added). That said I've never really been bothered about having imports. Especially when I know the import is side effect free like the typing module. But I definitely use import free list for script files without many lines of code.