-
Notifications
You must be signed in to change notification settings - Fork 767
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
Pylance doesn't suggest the methods in a class #53
Comments
Thanks for reporting the problem. You are correct, of course. It should suggest methods, properties and instance variables that are appropriate for This is a regression that was introduced recently when we changed the way the type of |
Thanks for the super quick answer and fix! |
Environment data
appnope==0.1.0
asgiref==3.2.7
astroid==2.4.2
backcall==0.2.0
certifi==2020.4.5.2
chardet==3.0.4
coverage==5.1
decorator==4.4.2
Django==3.0.7
django-cors-headers==3.3.0
django-redis==4.12.1
ecdsa==0.15
gunicorn==20.0.4
idna==2.9
imbox==0.9.6
ipython==7.15.0
ipython-genutils==0.2.0
isort==4.3.21
jedi==0.17.0
lazy-object-proxy==1.4.3
mccabe==0.6.1
mysqlclient==1.4.6
parso==0.7.0
pexpect==4.8.0
pickleshare==0.7.5
prompt-toolkit==3.0.3
ptyprocess==0.6.0
pyasn1==0.4.8
Pygments==2.6.1
pylint==2.5.3
python-jose==3.1.0
pytz==2020.1
PyYAML==5.3.1
redis==3.5.3
requests==2.23.0
rope==0.17.0
rsa==4.1
six==1.15.0
sqlparse==0.3.1
toml==0.10.1
traitlets==4.3.3
typed-ast==1.4.1
urllib3==1.25.9
wcwidth==0.2.4
wrapt==1.12.1
yapf==0.29.0 my minimal reproduce: first , start new django project and app, then edit
|
This issue has been fixed in version 2020.7.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202070-9-july-2020 |
Environment data
Actual behaviour
I'd expect that inside a class, if I type
self.
Pylance would autosuggest the methods in that class first, along with their docstrings. This is what happens using Jedi. Instead, Pylance seems to think for a long time but ultimately it doesn't suggest anything. If I force the suggestion box or start typing, then I can see the methods but they are not marked as such (the icon isabc
) and they are not prioritised so I think those are just the general VSCode suggestions. Once I have written the full name of the method and press(
the docstring is shown correctly.Logs
The text was updated successfully, but these errors were encountered: