You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
We skip object's attributes for completions, per the definition of completions_class (according to the comment, this is because there were a lot of things cluttering the results)
Maybe the fix should be that we should start giving results for object, only if regular completions w/o object don't give any results?
That works, or we just sort object items to the bottom. Sorting seems easier since changing completions as it's typed would mean chaing our isIncomplete behavior
I’d like to work on this. I’ll first reproduce the missing __doc__ completion, add an LSP regression test, then implement the smallest focused fix and run python3 test.py. #claim
Activity
connernilsen commentedon Oct 1, 2025
@asukaminato0721 thanks for reporting this!
@kinto0 (when you're back), thoughts?
kinto0 commentedon Oct 2, 2025
My first thought is it's likely related to this:
#1076
It requires further investigation though.
github-actions commentedon Oct 29, 2025
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
asukaminato0721 commentedon Nov 6, 2025
It's here...
https://github.com/python/typeshed/blob/65b8a85e4b775d5465e7fdb7382c181fb7efa958/stdlib/types.pyi#L76
yangdanny97 commentedon Nov 26, 2025
I think it's because because it's inherited from
objecthttps://github.com/python/typeshed/blob/65b8a85e4b775d5465e7fdb7382c181fb7efa958/stdlib/builtins.pyi#L110
We skip
object's attributes for completions, per the definition ofcompletions_class(according to the comment, this is because there were a lot of things cluttering the results)https://github.com/facebook/pyrefly/blob/main/pyrefly/lib/alt/attr.rs#L2017
Maybe the fix should be that we should start giving results for
object, only if regular completions w/oobjectdon't give any results?Curious to hear everyone's thoughts.
kinto0 commentedon Nov 26, 2025
That works, or we just sort object items to the bottom. Sorting seems easier since changing completions as it's typed would mean chaing our
isIncompletebehavior1 remaining item
SamB commentedon Jun 3, 2026
I think once the user has typed
.__it should already be fairly short?fhshaik commentedon Jul 21, 2026
I’d like to work on this. I’ll first reproduce the missing
__doc__completion, add an LSP regression test, then implement the smallest focused fix and runpython3 test.py. #claimgithub-actions commentedon Jul 21, 2026
@fhshaik you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉
Add tests for missing object attributes in attribute completion
Include attributes inherited from `object` in attribute completion, r…