diff --git a/crates/ruff_linter/src/rules/ruff/rules/helpers.rs b/crates/ruff_linter/src/rules/ruff/rules/helpers.rs index 1e2f2c828e2e89..c6465094359451 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/helpers.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/helpers.rs @@ -59,7 +59,7 @@ pub(super) fn has_default_copy_semantics( analyze::class::any_call_path(class_def, semantic, &|call_path| { matches!( call_path.as_slice(), - ["pydantic", "BaseModel" | "BaseSettings"] + ["pydantic", "BaseModel" | "BaseSettings" | "BaseConfig"] | ["pydantic_settings", "BaseSettings"] | ["msgspec", "Struct"] )