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
super()
uv
Cannot run super() in Debug Console
Can run super() in Debug Console
class A: def method(self): print("super!") class B(A): def method(self): super().method() B().method()
super().method()
The text was updated successfully, but these errors were encountered:
Thanks for the issue but that's by design. The debugger is just running what you type in a python eval call. super() isn't allowed in an eval call.
eval
super() really means super(__class__, self). See this PEP: https://peps.python.org/pep-3135/
super(__class__, self)
If you want this to work, you'd do this instead:
super(__class__, self).method()
Sorry, something went wrong.
Thanks - learned something 😃
KacieKK
No branches or pull requests
Environment data
uv
Actual behavior
Cannot run
super()
in Debug ConsoleExpected behavior
Can run
super()
in Debug ConsoleSteps to reproduce:
super().method()
super().method()
in Debug ConsoleThe text was updated successfully, but these errors were encountered: