parent
4990ea5951
commit
4055db314a
@ -1,17 +1,20 @@
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class BlockDevice:
|
||||
device: str
|
||||
cluster: str
|
||||
description: str
|
||||
|
||||
|
||||
def __init__(self, device: str, cluster: str, description: str):
|
||||
self.device = device
|
||||
self.cluster = cluster
|
||||
self.description = description
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return f"BlockDevice(device={self.device}, cluster={self.cluster}, description={self.description})"
|
||||
|
||||
return (
|
||||
f"BlockDevice(device={self.device},"
|
||||
f" cluster={self.cluster},"
|
||||
f" description={self.description})"
|
||||
)
|
||||
|
Loading…
Reference in new issue