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 docstring shown for dict.update #5831

Open
debonte opened this issue Apr 30, 2024 · 0 comments
Open

No docstring shown for dict.update #5831

debonte opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@debonte
Copy link
Contributor

debonte commented Apr 30, 2024

Environment data

  • Language Server version: 2024.4.105
  • OS and version: Windows 11
  • Python version: 3.12.1

Code Snippet

{}.update()
{}.fromkeys()

Repro Steps

  1. Hover over fromkeys. Note that a docstring is shown -- "Create a new dictionary with keys from iterable and values set to value."
  2. Hover over update

Expected behavior

Docstring shown

Actual behavior

No docstring

image

Originally discussed at https://stackoverflow.com/questions/78193572/why-so-many-python-built-in-functions-has-no-in-code-docs/78193602#78193602. One user pointed to https://github.com/python/cpython/blob/8182319de33a9519a2f243ac8c35a20ef82a4d2d/Objects/dictobject.c#L4521-L4525 as the docstring for update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants