We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using metaclasses, the signature has the wrong class name. Here's a very easy example:
class Dummy_metaclass(type): def __new__(cls, name, bases, dct): dct["ID"] = 0 return type.__new__(cls, name, bases, dct) class Test(metaclass=Dummy_metaclass): def __init__(self, a, b, c): pass
With "Show signature" enabled, this displays:
which is dumb. It should be Test(a, b, c). Typically this happens when one use cls.__class__.name instead of cls.__name__.
Test(a, b, c)
cls.__class__.name
cls.__name__
If I understand this issue correctly, this looks rather like a jedi bug where the wrong value is passed here:
ptpython/ptpython/signatures.py
Line 150 in 91d2c35
which is why I also opened an issue on davidhalter/jedi#1950
Infos: ptpython 3.0.23 on Debian 12
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using metaclasses, the signature has the wrong class name. Here's a very easy example:
With "Show signature" enabled, this displays:
which is dumb. It should be
Test(a, b, c)
. Typically this happens when one usecls.__class__.name
instead ofcls.__name__
.If I understand this issue correctly, this looks rather like a jedi bug where the wrong value is passed here:
ptpython/ptpython/signatures.py
Line 150 in 91d2c35
which is why I also opened an issue on davidhalter/jedi#1950
Infos: ptpython 3.0.23 on Debian 12
The text was updated successfully, but these errors were encountered: