Skip to content

auto complete __doc__ missing #1211

Closed
Closed

Description

@asukaminato0721

Describe the Bug

Image
from pathlib import Path
Path(".").read_text.__do

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

vscode-insider

0.35.0

Activity

  1. connernilsen commented on Oct 1, 2025

    @connernilsen
    Contributor

    @asukaminato0721 thanks for reporting this!

    @kinto0 (when you're back), thoughts?

  2. kinto0 commented on Oct 2, 2025

    @kinto0
    Contributor

    My first thought is it's likely related to this:
    #1076

    It requires further investigation though.

  3. added theissue type on Oct 2, 2025
  4. github-actions commented on Oct 29, 2025

    @github-actions

    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!

  5. removed their assignment
    on Oct 29, 2025
  6. yangdanny97 commented on Nov 26, 2025

    @yangdanny97
    Collaborator

    I think it's because because it's inherited from object

    https://github.com/python/typeshed/blob/65b8a85e4b775d5465e7fdb7382c181fb7efa958/stdlib/builtins.pyi#L110

    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)

    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/o object don't give any results?

    Curious to hear everyone's thoughts.

  7. kinto0 commented on Nov 26, 2025

    @kinto0
    Contributor

    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

  8. 1 remaining item

  9. added
    language-serverIssues specific to our IDE integration rather than type checking
    and removed on Dec 15, 2025
  10. SamB commented on Jun 3, 2026

    @SamB
    Contributor

    Depends on whether we want to keep completions list short, i suppose.

    I think once the user has typed .__ it should already be fairly short?

  11. fhshaik commented on Jul 21, 2026

    @fhshaik

    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

  12. github-actions commented on Jul 21, 2026

    @github-actions

    @fhshaik you've claimed this issue — it's now assigned to you. Thanks for picking it up! 🎉

  13. assigned and unassigned on Oct 12, 2026
  14. added this to the v1.4 milestone on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomerslanguage-serverIssues specific to our IDE integration rather than type checking

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions