Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No attribute docstring in hover information for parameter input of type Callable #3135

Closed
Fate6174 opened this issue Aug 4, 2022 · 1 comment
Assignees
Labels
bug Something isn't working docstrings fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@Fate6174
Copy link

Fate6174 commented Aug 4, 2022

Environment data

  • VS Code version: 1.69.2
  • Language Server version: 2022.8.10
  • OS and version: linux x64 (Manjaro)
  • Python version (and distribution if applicable, e.g. Anaconda): 3.10.5

Code Snippet

from collections.abc import Callable

class MyClass():
    def __init__(
            self,
            number : float,
            func : Callable[[float], float]
        ) -> None:
        self.number = number
        """A given number"""
        self.func = func
        """A given function"""

Expected behavior

The hover information should contain the variable docstring as is happening for number (type float).
image

Actual behavior

The hover information does not contain the variable docstring for func (type Callable[[float], float]).
image

@bschnurr bschnurr self-assigned this Aug 4, 2022
@bschnurr bschnurr added docstrings bug Something isn't working labels Aug 4, 2022
@heejaechang
Copy link
Contributor

This issue has been fixed in version 2022.8.12, which we've just released. You can find the changelog here: CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docstrings fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants