Add __repr__

This commit is contained in:
Woosuk Kwon
2023-02-14 09:34:07 +00:00
parent 2729087efe
commit 3363c27d19
2 changed files with 14 additions and 3 deletions

View File

@@ -49,3 +49,8 @@ class PhysicalTokenBlock:
self.block_size = block_size
self.ref_count = 0
def __repr__(self) -> str:
return (f'PhysicalTokenBlock(device={self.device}, '
f'block_number={self.block_number}, '
f'ref_count={self.ref_count})')