Skip to content

Commit

Permalink
storage/v2: annotations -> attr Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
dbungert committed Oct 7, 2021
1 parent 57148ee commit 5203b1d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions subiquity/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class Partition:
number: Optional[int] = None
preserve: Optional[bool] = None
wipe: Optional[str] = None
annotations: Optional[List[str]] = []
annotations: List[str] = attr.ib(default=attr.Factory(list))
mount: Optional[str] = None
format: Optional[str] = None
grub_device: Optional[bool] = None
Expand All @@ -257,16 +257,16 @@ class Partition:
@attr.s(auto_attribs=True)
class Disk:
id: str
partitions: List[Partition]
label: Optional[str]
type: Optional[str]
label: str
type: str
size: int
ok_for_guided: Optional[bool]
usage_labels: List[str]
partitions: List[Partition]
ok_for_guided: bool
ptable: Optional[str]
preserve: Optional[bool] = None
path: Optional[str] = None
free_for_partitions: Optional[int] = 0
usage_labels: Optional[List[str]] = []
preserve: bool
path: Optional[str]
free_for_partitions: int


@attr.s(auto_attribs=True)
Expand Down

0 comments on commit 5203b1d

Please sign in to comment.