archlinux / archinstall

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

Pydantic deprecation warning with LsblkOutput.parse_raw call #2948

Open correctmost opened 2 days ago

correctmost commented 2 days ago

I see this deprecation warning when running tests with pytest:

archinstall/lib/disk/device_model.py:1473:

PydanticDeprecatedSince20: The `parse_raw` method is deprecated; if your data is JSON use `model_validate_json`,
otherwise load the data then use `model_validate` instead. Deprecated in Pydantic V2.0 to be removed in V3.0.
See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/

    return LsblkOutput.parse_raw(output)

Migration guide: https://docs.pydantic.dev/2.10/migration/#migration-guide