Skip to content

Do we want to add trivial defaults to the stubs #1292

@yangdanny97

Description

@yangdanny97

The stub writing guide says:

For default values, use the literal values of “simple” default values (None, bools, ints, bytes, strings, and floats). Use the ellipsis literal ... in place of more complex default values.

Is this something you're interested in adding?

I'm experimenting with a semi-automated way to scrape docstrings for types and default values to fill in missing annotations, and was wondering if the defaults part makes sense for pandas-stubs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions