3 ms·
You can check https://pypi.org/project/smart_imports/ https://pypi.org/project/smart_imports/
by makapuf 6y ago
You can check https://pypi.org/project/smart_imports/ https://pypi.org/project/smart_imports/
- fulafel 6y ago> Get source code of the module, from which smart_imports.all() has called. > Parse it, find all not initialized variables. > Search imports, suitable for found variables. Import them. Genius. (Evil genius mabye...)
- black3r 6y agoPyCharm has functionality that allows you to find the correct import in libraries across your project. If it finds multiple functions / objects with the same name, it gives you choices. For me on larger projects it shows choices ~80% of the time. I wonder how can this work correctly on anything larger than the provided example.