Optional type hints are not the same at all.
This is miles ahead of having to struggle with getting types correct in C++ before you even have anything resembling a workable solution.
You might have forgotten, but you had head scratchers too when you where learning. Everyone has them. I’ve taught people who are absolute geniuses, even they struggled initially. And sure you get over it, just like people can become quite adapt at programming in esoteric languages like brainfuck, but that doesn’t mean there aren’t any better ways.