Agent-Hellboy / Agent-Hellboy/trace-dkey
Frozen dataclass can be hashable
Open
enhancement
hacktoberfest
- Dominant language
- Python
- Stars
- 8
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```py
from dataclasses import dataclass
@dataclass(frozen=True)
class Data:
a: int
b: int
data1 = Data(1,2)
print(data1)
dict = {data1: "firstdata"}
print(dict)
```
For now, we need a different branch to handle this scenario, and as we can assume this one is also `_ast.Call` object
we need to add a new branch for _ast.Call for frozen type which can be hashable
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.