Agent-Hellboy / Agent-Hellboy/trace-dkey
Frozen dataclass can be hashable
Aperta
enhancement
hacktoberfest
- Lingua principale
- Python
- Stelle
- 8
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.