We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a110e commit f24d6ddCopy full SHA for f24d6dd
src/stratis_cli/_actions/_utils.py
@@ -145,14 +145,13 @@ def __init__(self, info):
145
self.value = str(value)
146
147
148
-class Device: # pylint: disable=too-few-public-methods
+class Device(BaseModel):
149
"""
150
A representation of a device in a stopped pool.
151
152
153
- def __init__(self, mapping):
154
- self.uuid = UUID(mapping["uuid"])
155
- self.devnode = str(mapping["devnode"])
+ uuid: UUID
+ devnode: str
156
157
158
class StoppedPool(BaseModel):
0 commit comments