archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.36k stars 545 forks source link

Remove most of the remaining deprecated typing imports #2818

Closed correctmost closed 1 week ago

correctmost commented 1 week ago

PR Description:

This PR brings us closer to enabling Ruff's UP035 rule. Here's what remains:

$ ruff check --select=UP035 --output-format=concise .
archinstall/lib/disk/device_handler.py:9:1: UP035 [*] Import from `collections.abc` instead: `Iterable`
archinstall/lib/disk/device_handler.py:9:1: UP035 `typing.List` is deprecated, use `list` instead
archinstall/lib/disk/device_handler.py:9:1: UP035 `typing.Dict` is deprecated, use `dict` instead
archinstall/lib/disk/device_model.py:11:1: UP035 `typing.List` is deprecated, use `list` instead
archinstall/lib/disk/device_model.py:11:1: UP035 `typing.Dict` is deprecated, use `dict` instead

I can fix those warnings after https://github.com/archlinux/archinstall/pull/2775 is reviewed and merged.

Tests and Checks