isn't it annoying that the pythonic way is to import the specific type names?
that import list gets really long and ugly in some modules, so i'm tempted to do from typing import * or import typing as t
maybe a bit... cause it's not so elegant as in C++
but... it's easier to maintain and read the code as you know what that function returns just by reading the declaration of the function + you can be sure that other Devs won't try to parse it wrong types and you can check it before runtime.
Обсуждают сегодня