1
0

Add a custom __repr__ to RdataCommand for easier debugging

This commit is contained in:
Quentin Gliech
2025-08-04 18:03:25 +02:00
parent 7ed55666b5
commit bf105d22f4
+3
View File
@@ -144,6 +144,9 @@ class RdataCommand(Command):
self.token = token
self.row = row
def __repr__(self) -> str:
return f"RdataCommand(stream={self.stream_name!r}, instance={self.instance_name!r}, position={self.token!r}, row=...)"
@classmethod
def from_line(cls: Type["RdataCommand"], line: str) -> "RdataCommand":
stream_name, instance_name, token, row_json = line.split(" ", 3)