Try the following script:
bar = 10
"""A variable named bar"""
bar
When using auto-complete while typing "bar" the documentation of the variable is resolved correctly. However, if I hover over "bar" it shows the documentation of int()
which is not helpful at all.
The current implementation of hover uses Script.infer. Using Script.help gives the expected hover content.