ruff/crates/ruff_linter
Iipin e306359411
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`
2023-11-20 19:29:48 +00:00
..
resources/test Mark pydantic_settings.BaseSettings as having default copy semantics (#8793) 2023-11-20 19:29:48 +00:00
src Mark pydantic_settings.BaseSettings as having default copy semantics (#8793) 2023-11-20 19:29:48 +00:00
Cargo.toml Bump version to v0.1.6 (#8744) 2023-11-17 13:29:19 -05:00