Skip to content
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

Type aliases are expanded out in tooltips #265

Closed
judej opened this issue Aug 20, 2020 · 3 comments
Closed

Type aliases are expanded out in tooltips #265

judej opened this issue Aug 20, 2020 · 3 comments
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@judej
Copy link
Contributor

judej commented Aug 20, 2020

Version: Pylance language server 2020.8.2-dev.19.gfaa9ac5b (pyright fbe2eb4d) starting

Not sure if this is a bug or not, but it makes the user experience less than optimal

When the type alias is in the file scope the behavior is fine - as seen below:
image

However in the case when the alias is in the global scope of an imported module as in Pygame Colors module
image
image

When trying to call a function that uses the alias in the sig, the alias is expanded out
image

@erictraut
Copy link
Contributor

I noticed this earlier today too, and it's on my list of things to fix. It's a bug, and I understand the cause, but it's going to be a relatively complex changed.

@erictraut erictraut added the bug Something isn't working label Aug 21, 2020
@github-actions github-actions bot removed the triage label Aug 21, 2020
@erictraut
Copy link
Contributor

The fix for this will be included in the next release of Pylance.

@erictraut erictraut added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Aug 21, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.8.3, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202083-28-august-2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants