You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried the other applicable steps from the Troubleshooting Guide
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
The tooltip and help pane do not show any interface information for ALIAS NAMES of imported classes.
>>>fromMODULEimportCLASSasALIAS
If the original name of the class is used, the interface description is available.
This also applies to all initialized objects.
If these were initiated with the original name,
>>>a=CLASS()
then the tooltip and help pane are complete.
However, if the object was initiated with the ALIAS,
>>>a=ALIAS()
then the interface description is missing.
To make it even crazier:
If the docstring is removed from ClassA, then the script shows no tooltip and no HELP pane vor CLASS. At least the interface description should be displayed.
But ALIAS still shows the old docstring (w/o interface information), although this no longer exists.
If the docstring of class ClassA is activated again and changed, the previous behavior becomes apparent again .. with the changes made in the docstring.
And if the docstring in class ClassA is removed again, the tooltip and HELP pane in CLASS are again empty (correct).
But ALIAS shows the old/first version of docstring from ClassA.
Accordingly, not only is information about classes and functions missing, but incorrect information can also be displayed.
In a repository with SUB-MODULES and several developers ... fatal.
What is the expected output? What do you see instead?
expected 1
The tooltip and the HELP pane show the same information for CLASS and ALIAS.
instead 1
The tooltip and the HELP pane for ALIAS do not show any interface information.
expected 2
If docstring of CLASS is removed, tooltip and HELP pane of CLASS and ALIAS showing interface description only.
instead 2 tooltip and HELP pane of CLASS is not shown... not even the interface description tooltip and HELP pane of ALIAS is still showing the old docstring
expected 3
If docstring of CLASS is activated again and changed, tooltip and HELP pane of CLASS and ALIAS should show the same (except that the interface information is missing -> based on instead 1).
instead 3
as expected based on instead 1
expected 4
If docstring of CLASS is removed again, tooltip and HELP pane of ALIAS must still show the changed docstring (based on instead 2)
instead 4 tooltip and HELP pane of ALIAS shows the initial (un-changed) information.
Hi there, sorry for such a late response! Checking the scenarios/cases with 6.0.4 from the Windows installer:
expected 1
The tooltip and the HELP pane show the same information for CLASS and ALIAS.
instead 1
The tooltip and the HELP pane for ALIAS do not show any interface information.
I was able to reproduce it:
expected 2
If docstring of CLASS is removed, tooltip and HELP pane of CLASS and ALIAS showing interface description only.
instead 2
tooltip and HELP pane of CLASS is not shown... not even the interface description
tooltip and HELP pane of ALIAS is still showing the old docstring
Partially reproduced (Help pane shows CLASS signature correctly but there is no tooltip for CLASS or ALIAS and ALIAS inspection doesn't bring up anything):
expected 3
If docstring of CLASS is activated again and changed, tooltip and HELP pane of CLASS and ALIAS should show the same (except that the interface information is missing -> based on instead 1).
instead 3
as expected based on instead 1
Same behavior as with scenario/case 1:
expected 4
If docstring of CLASS is removed again, tooltip and HELP pane of ALIAS must still show the changed docstring (based on instead 2)
instead 4
tooltip and HELP pane of ALIAS shows the initial (un-changed) information.
Same behavior as with scenario/case 2:
From my testing then seems like the current behavior (Spyder 6.0.4) is that ALIAS only shows the docstring of CLASS and when CLASS doesn't have a docstring no tooltip is generated (for CLASS or ALIAS) and ALIAS inspection doesn't return anything
Anyhow, maybe this is some sort of jedi/python-lsp-server limitation @ccordoba12 ? I'm not totally sure if there is something that can be done over Spyder 🤔
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
The tooltip and help pane do not show any interface information for ALIAS NAMES of imported classes.
If the original name of the class is used, the interface description is available.
This also applies to all initialized objects.
If these were initiated with the original name,
then the tooltip and help pane are complete.
However, if the object was initiated with the ALIAS,
then the interface description is missing.
To make it even crazier:
If the docstring is removed from ClassA, then the script shows no tooltip and no HELP pane vor CLASS. At least the interface description should be displayed.
But ALIAS still shows the old docstring (w/o interface information), although this no longer exists.
If the docstring of class ClassA is activated again and changed, the previous behavior becomes apparent again .. with the changes made in the docstring.
And if the docstring in class ClassA is removed again, the tooltip and HELP pane in CLASS are again empty (correct).
But ALIAS shows the old/first version of docstring from ClassA.
Accordingly, not only is information about classes and functions missing, but incorrect information can also be displayed.
In a repository with SUB-MODULES and several developers ... fatal.
What steps reproduce the problem?
modul.py
script.py
screenshot: tooltip and HELP Pane of CLASS
screenshot: tooltip and HELP Pane of ALIAS
What is the expected output? What do you see instead?
expected 1
The tooltip and the HELP pane show the same information for CLASS and ALIAS.
instead 1
The tooltip and the HELP pane for ALIAS do not show any interface information.
expected 2
If docstring of CLASS is removed, tooltip and HELP pane of CLASS and ALIAS showing interface description only.
instead 2
tooltip and HELP pane of CLASS is not shown... not even the interface description
tooltip and HELP pane of ALIAS is still showing the old docstring
expected 3
If docstring of CLASS is activated again and changed, tooltip and HELP pane of CLASS and ALIAS should show the same (except that the interface information is missing -> based on instead 1).
instead 3
as expected based on instead 1
expected 4
If docstring of CLASS is removed again, tooltip and HELP pane of ALIAS must still show the changed docstring (based on instead 2)
instead 4
tooltip and HELP pane of ALIAS shows the initial (un-changed) information.
Paste Traceback/Error Below (if applicable)
n/a
Versions
Spyder version: 4.2.5
Python version: 3.7.10 64-bit | Qt 5.12.10 | PyQt5 5.12.3 | Windows 10
Qt version: 5.12.10
PyQt version: 5.12.3
Operating System name/version: Windows 10
Dependencies
The text was updated successfully, but these errors were encountered: