← Back to issue list

refactor: Make DistroBase hashable

View original Github issue

Metadata

Project
craft-platforms
Number
#231
Type
issue
State
open
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

DistroBase is a frozen dataclass with custom __eq__ but no __hash__, making it unhashable. Issue created 81 days ago with no labels or maintainer comments.

Suggested action: needs triage

Reason: The issue is well-structured with a clear description of the problem (DistroBase overrides __eq__ without __hash__, making it unhashable) but has no labels, no maintainer comments, and no assignee after 81 days. A grep for __hash__ in the repo returned no matches, confirming the fix hasn't been implemented. This needs maintainer triage to prioritize and label appropriately.

Impact: 40 Quick Win: 34.0 Staleness: 60 Complexity: 15 Confidence: 75 Support Request: 5

Issue body

Currently, `DistroBase` is a `frozen` dataclass but overrides `__eq__` manually without defining `__hash__`. This implicitly makes `DistroBase` unhashable, raising `TypeError: unhashable type: 'DistroBase'` when used in a set or as a dictionary key. Create a `__hash__` method for DistroBase.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 40
Quick Win: 34.0
Staleness: 60
Complexity: 15
Confidence: 75
Support Request: 5
needs triage DistroBase is a frozen dataclass with custom __eq__ but no __hash__, making it unhashable. Issue created 81 days ago with no labels or maintainer comments.
qwen/qwen3.6-35b-a3b
Staleness: 45
Complexity: 15
Confidence: 90
Support Request: 0
needs triage Unhashable DistroBase dataclass due to missing __hash__ method after overriding __eq__. Issue is unlabelled and has received no maintainer comments or activity in 36 days.
qwen3.6-35b-a3b-mtp-q6
Staleness: 30
Complexity: 10
Confidence: 90
Support Request: 0
needs triage Request to implement a hash method for DistroBase to resolve a TypeError when used in sets or as dictionary keys. Currently unlabelled and awaiting implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 10
Complexity: 10
Confidence: 85
Support Request: 5
needs triage Request to implement hash for DistroBase to fix TypeError when used in sets or dicts. Currently unlabelled and awaiting triage.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.