Giter Club home page Giter Club logo

Comments (5)

mawright avatar mawright commented on August 15, 2024

Hi @brettcannon, sorry if my original title wasn't clear.

Your title change describes the current behavior. That is that only the class dosctring is shown on the hover popups when you are instantiating a class.

The constructor dosctring is not shown. This means one needs to use something other than the hover popups to find the constructor documentation if init is not documented in the class docstring.

from python-language-server.

dukduque avatar dukduque commented on August 15, 2024

It would be nice if the constructor docstring just follow right after the class docstring.

from python-language-server.

jakebailey avatar jakebailey commented on August 15, 2024

This looks like an old issue, and has been fixed for a while now:

image

Closing.

from python-language-server.

celynw avatar celynw commented on August 15, 2024

Is there some kind of setting which could be overriding this?
It's always been like this for me and I was surprised to find it fixed.

docstring

  • VS Code version: 1.40.1
  • Extension version (available under the Extensions sidebar): 2019.11.50794
  • OS and version: Ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda, 3.7.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: N/A

EDIT: Ah! Yes. The setting python.jediEnabled is set by default, which overrides the Microsoft Python Analysis Engine. I wasn't even using this, it seems!
Tried it again and works as expected

from python-language-server.

jakebailey avatar jakebailey commented on August 15, 2024

Yes, if jedi's enabled, we're not, so it'd be a bug on jedi itself. Thanks for checking.

from python-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.