Agent-Hellboy / Agent-Hellboy/trace-dkey

Frozen dataclass can be hashable

オープン
#16 コメント 4 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。