Comments (5)
I'll try this myself if I find the time, just wanted to write down the idea :)
from jedi.
First, the example you give is not correct, because __all__
only affects star imports: from pkg.mod import *
. Because you didn't know this, some of the stuff below might not be intended for you to hear. It's just to gather my thoughts.
That said, it is important to note that star imports are not that important, actually I think you shouldn't use it at all (which you are not saying of course).
I once wanted to check for __all__
, but then I noticed, that it is really difficult with numpy, because there are additions on add, etc. So I guess the chance that jedi misses some entries, because understanding array operations is pretty heavy, is just too big for me.
However, if anyone wants to add this feature, the condition is that numpy is still fully functional with jedi.
from jedi.
I'm well aware of how __all__
works ;)
The reason for this feature suggestion is that I want be able to filter out the names that aren't in the public interface, i.e. the names not in __all__
. For example, I've got the variable __copyright__
in every file and all names imported into a module always appear in the completion menu. So I think it would be a nice side effect of defining __all__
despite the encouragement on *
imports.
from jedi.
Yeah, probably you're right. It could be an option in settings.py
! I would probably make it the default. But to do this, numpy
has to be taken care of. (It's not on my todo list at the moment, though.)
from jedi.
I'm closing this because of no activity and the lack of interest in the community (I myself am not interest in this option anyway and think that it's hard to do with Jedi).
However if somebody wants to do that. Feel free.
from jedi.
Related Issues (20)
- Is it possible to generate completion for `argparse.Namespace`? HOT 5
- TypedDict : Suggestion issues HOT 2
- Python stubs loaded from extensions folder even when using an explicit interpreter HOT 8
- Error when trying to detect environment HOT 5
- `PathFinder` has no attribute `find_module` in `python 12.2` HOT 2
- Questions about Copilot + Open Source Software Hierarchy HOT 1
- What exactly does "smart_sys_path" do? HOT 5
- Completion fails when variable name is identical to type name HOT 4
- 'TreeInstance' object has no attribute 'with_generics' when using typing.Literal["str"] return annotation on property HOT 4
- How to discover the import statement for a particular Name? HOT 4
- Does Jedi support type inference for type annotations that include generics? HOT 2
- _get_executable_path() can't get the correct path on Windows Anaconda
- Issues with pytest 8 HOT 1
- [Feature request] Support for syntax coloring (based on symbol type) HOT 1
- Script.infer() unexpectedly returns empty list HOT 10
- Jedi outputs: Syntax Error Invalid Syntax HOT 2
- [Feature Request]: infer the return type of functions HOT 1
- Any type inference error HOT 6
- `test_completion_param_annotations` fails in Python 3.13 HOT 4
- jedi automatic completion missing HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedi.