Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark
pydantic_settings.BaseSettings
as having default copy semantics (
#8793) ## Summary In 2.0, Pydantic has moved the `BaseSettings` class to a separate package called `pydantic-settings` (https://docs.pydantic.dev/2.4/migration/#basesettings-has-moved-to-pydantic-settings), which results in a false positive on `RUF012` (`mutable-class-default`). A simple fix for that would be adding `pydantic_settings.BaseSettings` base to the `has_default_copy_semantics` helper, which I've done in this PR. Related issue: #5308 ## Test Plan `cargo test`
- Loading branch information