Skip to content

Commit

Permalink
Add Pydantic's BaseConfig to default-copy list
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 26, 2024
1 parent 91046e4 commit 7d7504a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/rules/ruff/rules/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
)
Expand Down

0 comments on commit 7d7504a

Please sign in to comment.