Spaces:
Runtime error
Runtime error
Add `frozen=True` to dataclasses
#1
by pblair-blairsoft - opened
- src/display/utils.py +2 -2
src/display/utils.py
CHANGED
|
@@ -13,7 +13,7 @@ def fields(raw_class):
|
|
| 13 |
# These classes are for user facing column names,
|
| 14 |
# to avoid having to change them all around the code
|
| 15 |
# when a modif is needed
|
| 16 |
-
@dataclass
|
| 17 |
class ColumnContent:
|
| 18 |
name: str
|
| 19 |
type: str
|
|
@@ -63,7 +63,7 @@ class EvalQueueColumn: # Queue column
|
|
| 63 |
status = ColumnContent("status", "str", True)
|
| 64 |
|
| 65 |
## All the model information that we might need
|
| 66 |
-
@dataclass
|
| 67 |
class ModelDetails:
|
| 68 |
name: str
|
| 69 |
display_name: str = ""
|
|
|
|
| 13 |
# These classes are for user facing column names,
|
| 14 |
# to avoid having to change them all around the code
|
| 15 |
# when a modif is needed
|
| 16 |
+
@dataclass(frozen=True)
|
| 17 |
class ColumnContent:
|
| 18 |
name: str
|
| 19 |
type: str
|
|
|
|
| 63 |
status = ColumnContent("status", "str", True)
|
| 64 |
|
| 65 |
## All the model information that we might need
|
| 66 |
+
@dataclass(frozen=True)
|
| 67 |
class ModelDetails:
|
| 68 |
name: str
|
| 69 |
display_name: str = ""
|