MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/90ew6o/every_time/e2qc3lk
r/ProgrammerHumor • u/kajri • Jul 20 '18
749 comments sorted by
View all comments
Show parent comments
2
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.
1 u/profbalr Jul 20 '18 But you should be able to transpile some other syntax into Python right? So the types are just syntax which get compiled into pure Python.
1
But you should be able to transpile some other syntax into Python right? So the types are just syntax which get compiled into pure Python.
2
u/mpa92643 Jul 20 '18
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.