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

Unfilter __all__ - #708

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:masterfrom
jakebailey:unfilter-all-2
Mar 6, 2019
Merged

Jake Bailey (jakebailey) merged 1 commit into
microsoft:masterfrom
jakebailey:unfilter-all-2

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Mar 6, 2019 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Jake Bailey (jakebailey) merged commit 1072de6 into microsoft:master Mar 6, 2019
@jakebailey
Jake Bailey (jakebailey) deleted the unfilter-all-2 branch March 6, 2019 01:36
@jakebailey Jake Bailey (jakebailey) added this to the Feb 2019.2 milestone Mar 6, 2019
Jake Bailey (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