Skip to content
This repository was archived by the owner on Nov 23, 2025. It is now read-only.

Commit 77eea6a

Browse files
committed
Froze InstructionsArguments class as this does not need to be mutable.
1 parent 82079d1 commit 77eea6a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Version 0.6.0
1616
getter methods such as ``get_pin`` should be provided.
1717
* Removed checks to ``COMResult.exception`` length in internal code as it is
1818
sufficient to just check ``COMResult.status``.
19+
* Set ``abstractions.InstructionArguments`` class froze as there is no-reason
20+
for it to be mutable.
1921

2022
Version 0.5.0
2123
-------------

uoshardware/abstractions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def get_rx_payload(self, packet_index: int) -> list[int]:
164164
return self.rx_packets[packet_index][4:-2]
165165

166166

167-
@dataclass
167+
@dataclass(frozen=True)
168168
class InstructionArguments:
169169
"""Containing the data structure used to generalise UOS arguments."""
170170

0 commit comments

Comments
 (0)