Agent-Hellboy / Agent-Hellboy/trace-dkey

Frozen dataclass can be hashable

未關閉
#16 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement hacktoberfest
主要語言
Python
星號
8
分支
6
PR 合併指標
30 天內沒有已合併 PR

描述

```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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。