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

Fix jedi.api.names(..., all_scopes=False) returning class and function-level definitions #1203

Conversation

immerrr
Copy link
Contributor

@immerrr immerrr commented Aug 16, 2018

This PR adds a fix for #1202

@immerrr immerrr force-pushed the names-all-scopes-false-returns-class-fields branch from 64e846b to 3f5ac0c Compare October 18, 2018 11:47
@immerrr immerrr changed the title Add failing test for jedi.api.names(..., all_scopes=False) Fix jedi.api.names(..., all_scopes=False) returning class and function-level definitions Oct 18, 2018
@immerrr
Copy link
Contributor Author

immerrr commented Oct 18, 2018

@davidhalter I seem to have fixed the problem described in #1202. Let me know if it looks OK.

Ideally, I would change get_parent_scope to use is_name_of_func_or_class_def as described in the comment, but tests start failing when I do it, and apparently it influences flow and reachability checks, so I left that out of the scope of this PR.

@immerrr
Copy link
Contributor Author

immerrr commented Dec 7, 2018

@davidhalter could you have a look at this? I would like your opinion on the previous comment.

@davidhalter
Copy link
Owner

Thanks for contributing this. I'm really sorry for not keeping up with pull requests. It's been a lot of work and I was tired. Sorry.

@immerrr immerrr deleted the names-all-scopes-false-returns-class-fields branch April 9, 2019 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants