They help, but like their name, they're only hints. It's pretty easy for the object to be set as something else accidentally. It gives you an idea of what type to expect for a variable, but you have no guarantee that it will actually be that type at runtime.
1
u/Flatscreens Jul 20 '18
Are type hints close enough?