Type aliases are expanded out in tooltips #265
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
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](https://user-images.githubusercontent.com/547753/90835154-aff81e00-e300-11ea-9d99-9c5402c76e9e.png)
However in the case when the alias is in the global scope of an imported module as in Pygame Colors module
![image](https://user-images.githubusercontent.com/547753/90835354-3dd40900-e301-11ea-92eb-3a6670c057ea.png)
![image](https://user-images.githubusercontent.com/547753/90837673-93131900-e307-11ea-90dc-9749f467d593.png)
When trying to call a function that uses the alias in the sig, the alias is expanded out
![image](https://user-images.githubusercontent.com/547753/90835468-8f7c9380-e301-11ea-8c13-ba2052db9148.png)
The text was updated successfully, but these errors were encountered: