tensorflow / tensorflow/probability
IDE autocomplete broken (with lazy loaded modules?)
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 4.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
I've just installed 0.12.1, and in PyCharm I'm no longer getting autocomplete for module members, and when I do access members of the modules, it highlights them as
Unresolved attribute reference '<member>' for class 'ModuleType'
for any given <member>
Looking at the module definitions, it looks like this might be due to the lazy loading, specifically that the modules are all typed to types.ModuleType. It would be helpful if autocomplete and member resolution were reinstated
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the missing autocomplete and unresolved-member warnings in PyCharm with version 0.12.1. Inspect the module definitions and lazy-loading behavior described in the report; done means module members regain autocomplete and PyCharm no longer reports them as unresolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100