Skip to content

How to test that pylance includes expected suggestions with python #4996

Answered by rchiodo
ryan-kipawa asked this question in Q&A
Discussion options

You must be logged in to vote

Some of the dynamic attributes may be working in a jupyter notebook because in a notebook there's actually an additional completion provider, the jupyter kernel itself. The Jupyter extension provides completions in this manner by asking the kernel for them. These are then combined with the static completions provided by Pylance.

But anything you dynamically add through setattr can only be found this way = actually running the code and querying the kernel.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ryan-kipawa
Comment options

@rchiodo
Comment options

rchiodo Oct 23, 2023
Collaborator

Answer selected by ryan-kipawa
@ryan-kipawa
Comment options

@rchiodo
Comment options

rchiodo Oct 23, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants