Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def fetch_part_info(self, path: Path) -> LsblkInfo:
debug(f'Unable to determine new uuid: {path}\n{lsblk_info}')
raise DiskError(f'Unable to determine new uuid: {path}')

debug(f'partition information found: {lsblk_info.json()}')
debug(f'partition information found: {lsblk_info.model_dump_json()}')

return lsblk_info

Expand Down
4 changes: 2 additions & 2 deletions archinstall/lib/models/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ class AvailablePackage(BaseModel):

@cached_property
def longest_key(self) -> int:
return max(len(key) for key in self.dict().keys())
return max(len(key) for key in self.model_dump().keys())

# return all package info line by line
def info(self) -> str:
output = ''
for key, value in self.dict().items():
for key, value in self.model_dump().items():
key = key.replace('_', ' ').capitalize()
key = key.ljust(self.longest_key)
output += f'{key} : {value}\n'
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ disallow_any_explicit = false
disallow_any_expr = false
disallow_any_unimported = true
enable_error_code = [
"deprecated",
"explicit-override",
"ignore-without-code",
"mutable-override",
Expand Down