Skip to content

No docstring shown for dict.update #5831

@debonte

Description

@debonte

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions