Skip to content

TaskInstance/Realization: frozen=True dataclasses with dict fields are unhashable #4

Description

@jeqcho

src/kitchenbench/instances.py:53-73: TaskInstance and Realization are frozen=True with dict fields, hence unhashable (TypeError: unhashable type: 'dict' when used as set members / dict keys). Frozen usually signals hashable, so this is a small API surprise. Options: eq=False (identity hashing), converting the dict fields to sorted tuples for __hash__, or documenting the limitation.

Version single-sourcing and Python-floor questions for this repo are tracked org-wide at robocurve/inspect-robots#8.

🤖 Generated with Claude Code

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