Jake Bailey

Results 1405 comments of Jake Bailey

We can find it (as a stub in typeshed), it's just that we issue a warning when we can't find the source. I'm sure pylint has special cased this to...

Pylance supports quick fixes for undefined variables of this nature. If you enable Pylance you should be able to try it out.

The Python extension supports multiple "language servers", which provide functionality such as diagnostics, completions, tooltips, etc. By default, the Python extension bundles and uses jedi. To run pylance instead, you...

Are you using the old-style notebooks, or "native notebooks"? I'm not sure that the the old-style notebooks support quick fixes, but the newer native notebooks may.

I see. It's very possible that their custom LSP -> notebook logic doesn't yet support quick fixes like these. They have to do a bit of massaging to the messages...

Yes, code actions. We don't actually make file changes ourselves, there's a command that returns text edits the client is supposed to be applying, which shouldn't be different than a...

The code action response contains commands which VS Code (or the client in general) runs on acceptance, but the commands themselves do not apply the edits directly to any file...

The command contains paths, but the command is generated by Pylance and returned to Pylance only (nobody else), which then generates the text updates and sends those back as it...

Thanks, that's what we need. I don't see us finding `cv2`, even though the `.so` is in `/usr/lib/python3.9/site-packages`. Potentially there's a bug in how we check for compiled modules and...

Pyright doesn't come with these stubs at all, and if you don't configure it to do so, it won't scan libraries for types either. It's possible that it's inferring things...