You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having the same issue as #6567 , not sure why that was closed! And downgrading to PyLance 2024.9.2 would solve the issue for me.
I couldn't re-open the issue, that issue has every necessary information to reproduce.
Behaviour
Python no longer suggests type aliases from the project
Steps to reproduce:
Create type alias like this (TypeAlias type annotation doesn't matter): Component: TypeAlias = VdomDict | ReactpyComponent | ContextProviderType | str
Go to some other file in the project and try ctrl + . to try to import it. It is not an option. It is not an option under "search for other import matches". Adding a class to the same file shows up. If you search for the name with ctrl + t it shows up as the first option.
If I enable "enable aliases in user files", it still does not show up.
I created a fresh codespace to rule out some sort of corruption somewhere.
Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): UV
Value of the python.languageServer setting: Default
The text was updated successfully, but these errors were encountered:
I'm having the same issue as #6567 , not sure why that was closed! And downgrading to PyLance 2024.9.2 would solve the issue for me.
I couldn't re-open the issue, that issue has every necessary information to reproduce.
python.languageServer
setting: DefaultThe text was updated successfully, but these errors were encountered: