Skip to content

add_column and add_item erroneously(?) require new_fingerprint parameter #7864

@echthesia

Description

@echthesia

Describe the bug

Contradicting their documentation (which doesn't mention the parameter at all), both Dataset.add_column and Dataset.add_item require a new_fingerprint string. This parameter is passed directly to the dataset constructor, which has the fingerprint parameter listed as optional; is there any reason it shouldn't be optional in these methods as well?

Steps to reproduce the bug

Reproduction steps:

  1. Look at the function signature for add_column:
    def add_column(
  2. Repeat for add_item:
    def add_item(self, item: dict, new_fingerprint: str):

Expected behavior

add_column and add_item should either set the fingerprint parameter to optional or include it in their docstrings

Environment info

Not environment-dependent

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