I just noticed that the default type hint in the new script editor (CPython and IronPython) unfortunately has been changed back from No Type Hint to ghdoc Object. We had a four year long discussion about this topic for GHPython back here:
In brief, I’d much prefer if either (in order of preference):
The default type hint was No Type Hint.
There was an option to set the default type hint (e.g. under Grasshopper menu).
The GHPython neighbour inheritance behaviour (is clunky, but works ok).
Indeed, which was the crux of the discussion in the other topic. Basically, at some point way back McNeel made a conjecture that ghdoc Object when geometry (rhinoscriptsyntax) as the default type hint would be more user/beginner friendly (i.e. because rhinoscriptsyntax). Which in my experience as a long time GHPython user/tutor has not been proven. If anything, it has proven itself to cause a lot of confusion for beginners and needlessly convoluted code (e.g. casting, dealing with GUIDs).
This was the solution eventually proposed/implemented by McNeel. As I said in the other topic, it’s clunky (and obviously not very well known/apparent since you don’t know about it), but does work. And again, I would much rather just be able to turn off default type hints than jump through hacky hoops
Hi Ehsan, nice to see you here!
I have been using Dynamo most of the times but recently I start working on some GH scripts. This type hint thingy certainly bothers me a lot.
I am editing scripts created by a coworker, and all those hints are set to ghdoc on my machine.