Skip to content

Context.items/keys/values docstrings claim lists but return iterators #142918

@hyongtao-code

Description

@hyongtao-code

_contextvars.Context.items(), .keys(), and .values() return iterator objects, but their docstrings state that they return lists.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions