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

Autocomplete does not suggest custom methods in Enum instancec (items) #6058

Closed
Denis-Alexeev opened this issue Jun 25, 2024 · 2 comments
Closed
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@Denis-Alexeev
Copy link

Environment data

  • Language Server version: Pylance language server 2024.6.1 (pyright version 1.1.364, commit 0618acc5)
  • OS and version: MacOS Sonoma 14.5
  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.2 (brew)

Code Snippet

from enum import Enum

class A(Enum):
    B = "B"

    def visibility(self):
        print("visibility")


A.B.v

Repro Steps

  1. Create the code according to code snippet above
  2. Type A.B.v

Expected behavior

vscode suggests the method visibility

Actual behavior

vscode does not suggest the method visibility

Logs

image

Similar issue

#4928

@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jun 25, 2024
@Denis-Alexeev
Copy link
Author

Oh, I see that the linked issue was re-opened. May be it is worth to close this one. Sorry for bothering guys.

@heejaechang
Copy link
Contributor

due of #4928

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

3 participants