tensorflow / tensorflow/probability

IDE autocomplete broken (with lazy loaded modules?)

Open
#1,229 1 comment 3 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.