pykythe
pykythe copied to clipboard
Unknown attr added to ${TYPESHED_FQN}.stdlib.2and3.builtins.object
It's not clear whether this is a bug or a feature.
As a feature, it means that all attrs that we can't resolve can be found.
As a bug, it's probably too broad a grouping, and there should be some mechanism for defining a more limited per-"package" or per-"project" <unknown-...> rather than builtins.object; however defining this automatically could be tricky and defining it manually could be painful.
We can circumscribe the possibilities to all the (recursive) imports. One possibility would be to add ref/possible to the Kythe data model, and then generate ref/possible for all entries in the symtab that match .attr ( a simple scan for all items ending with the attr should suffice).