Skip to content

Hover message should show doc string for class when __init__ has none #5254

Description

@jaens

Often, classes have doc comments but __init__ methods don't.

It would be nice and ergonomic if in that case hovering over the MyClass in something like foo = MyClass(bar) would display the classes' doc comment instead of... nothing.

(feature/enhancement request for IDE/LSP)

Activity

  1. removed their assignment
    on Oct 16, 2026
  2. Vyoum commented on Oct 16, 2026

    @Vyoum

    Hi, I'd like to work on this, could you assign it to me?

  3. Vyoum commented on Oct 16, 2026

    @Vyoum

    My plan is to fall back to the class's docstring in the hover handler when init has none, and add a test for it. Could you assign it to me?

  4. jny0444 commented on Oct 19, 2026

    @jny0444

    #claim

  5. github-actions commented on Oct 19, 2026

    @github-actions

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

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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions