Sitelet https://github.com/ctalkington/python-ipp/commit/b8a0d945f872acbe72df5dd9091b8f1c2ecdc448
Skip to content

Commit b8a0d94

Browse files
authored
Thaw models (#453)
1 parent c9951a9 commit b8a0d94

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/pyipp/models.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
PRINTER_STATES = {3: "idle", 4: "printing", 5: "stopped"}
1313

1414

15-
@dataclass(frozen=True)
15+
@dataclass
1616
class Info:
1717
"""Object holding information from IPP."""
1818

@@ -90,7 +90,7 @@ def from_dict(data: dict[str, Any]) -> Info:
9090
)
9191

9292

93-
@dataclass(frozen=True)
93+
@dataclass
9494
class Marker:
9595
"""Object holding marker (ink) info from IPP."""
9696

@@ -103,7 +103,7 @@ class Marker:
103103
high_level: int
104104

105105

106-
@dataclass(frozen=True)
106+
@dataclass
107107
class Uri:
108108
"""Object holding URI info from IPP."""
109109

@@ -112,7 +112,7 @@ class Uri:
112112
security: str | None
113113

114114

115-
@dataclass(frozen=True)
115+
@dataclass
116116
class State:
117117
"""Object holding the IPP printer state."""
118118

@@ -135,7 +135,7 @@ def from_dict(data: dict[str, Any]) -> State:
135135
)
136136

137137

138-
@dataclass(frozen=True)
138+
@dataclass
139139
class Printer:
140140
"""Object holding the IPP printer information."""
141141

0 commit comments

Comments
 (0)