Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Unfilter __all__ #708

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Unfilter __all__ #708

merged 1 commit into from
Mar 6, 2019

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Mar 6, 2019

Fixes #642.
Reopens #619.
Related #620.

This unfilters __all__ except for things which are directly from typing or are imported modules, though even that may be too strong. The old LS didn't look at __all__ whatsoever, so maybe all of these should be allowed to come through; you tell me.

Numpy:

image

@jakebailey
Copy link
Member Author

Amending my statement: Even though the old LS didn't look at __all__ doesn't mean that it didn't filter what modules exported. I haven't looked at that code to see what it did, as I assume it didn't just pass everything through. Probably did what I'm changing to above (no modules or typing).

@jakebailey
Copy link
Member Author

Old LS exposed variable defs, which I think would be about the same as what I've written. I'll merge this and we can tweak it later; at least numpy works now. 😄

@jakebailey jakebailey merged commit 1072de6 into microsoft:master Mar 6, 2019
@jakebailey jakebailey deleted the unfilter-all-2 branch March 6, 2019 01:36
@jakebailey jakebailey added this to the Feb 2019.2 milestone Mar 6, 2019
jakebailey added a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Fixes microsoft#642.
Reopens microsoft#619.
Related microsoft#620.

This unfilters exported variables except for things which are directly from typing or are imported modules, though even that may be too strong. The old LS didn't look at __all__ whatsoever, so maybe all of these should be allowed to come through; you tell me.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants