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

No autocomplete suggestions for PEP 695 type aliases #6543

Open
cdce8p opened this issue Oct 9, 2024 · 0 comments
Open

No autocomplete suggestions for PEP 695 type aliases #6543

cdce8p opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@cdce8p
Copy link

cdce8p commented Oct 9, 2024

Environment data

  • Pylance version: v2024.10.1
  • Python version: 3.13.0

Code Snippet

# lib.py
def my_func() -> None: ...
type MyAlias = int | str | None: ...

Repro Steps

  1. Create lib.py file
  2. In the same folder, create a test.py file and open it
  3. Look for autocomplete suggestions for both my_func and MyAlias

Expected behavior

Similar to my_func I'd have expected an autocomplete suggestion for MyAlias.

Actual behavior

No suggestion for MyAlias.

Settings

{
    "python.analysis.typeCheckingMode": "strict",
    "python.analysis.indexing": true,
    "python.analysis.includeAliasesFromUserFiles": true
}

Not sure what includeAliasesFromUserFiles actual does (i.e. which alias symbols are supposed to show up) but changing it doesn't seem to have any effect.

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants