Is there something equivalent for Python like Typescript for JS? I had the same issue with JS but recently picked up Typescript and it really changes the language.
There are type hints for Python that can give you (and the IDE) an idea of what type an object can be expected to be, but it's no guarantee that the object will actually be of that type since Python is duck-typed.
4
u/profbalr Jul 20 '18
Is there something equivalent for Python like Typescript for JS? I had the same issue with JS but recently picked up Typescript and it really changes the language.