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

[BUG] Fix tab completion on expression namespaced accessors #2251

Merged
merged 1 commit into from
May 7, 2024

Conversation

jaychia
Copy link
Contributor

@jaychia jaychia commented May 7, 2024

Fixes tab completion for our namespaced accessors:
image

One crappy part is that it shows some of the @property functions (e.g. def fget) in there. This is because the jedi interpreter/parser is seeing that it could potentially be aliased in the Sphinx path.

Here's where there is a strong assertion about the name having to be @property instead of some alias like we have here.
https://github.com/davidhalter/jedi/blob/f7c9ee943390d9d3102b1992c9d3b6c7d224c16c/jedi/parser_utils.py#L341-L345

@github-actions github-actions bot added the bug Something isn't working label May 7, 2024
@jaychia jaychia enabled auto-merge (squash) May 7, 2024 22:56
@jaychia jaychia merged commit 3b1a5ca into main May 7, 2024
31 checks passed
@jaychia jaychia deleted the jay/fix-tab-completion-expression-namespaces branch May 7, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant