-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
Add tooltips #2
Add tooltips #2
Conversation
cls = next( | ||
v.__class__ if n == 'self' else v | ||
for n, v in frame.f_locals.items() | ||
if n in ('self', 'cls') | ||
if n in ('self', 'cls') and v is not None | ||
) | ||
function = f'{cls.__name__}.{function}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this change address? A comment in code might be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the uvloop tabs showed: NoneType.run
instead of just run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would appear to be a case with non-Python code then.
Note that packages installed in editable mode are considered user code. This might affect what gets hidden, where the auto-scroll lands and affect the warning sign. If you have sanic installed normally, it might produce different results than what you get in editable install. The warning sign shows the location where user code calls site-packages code (external library) that raises. |
Adds tooltips to the marked lines for explanation.