You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/validators/with_default.rs
-5Lines changed: 0 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -95,11 +95,6 @@ impl BuildValidator for WithDefaultValidator {
95
95
}else{
96
96
false
97
97
};
98
-
if copy_default {
99
-
let message = format!("`{}` has a mutable default value that will be deep copied during validation. Consider using `default_factory` instead for finer control.", validator.get_name());
100
-
let user_warning_type = py.import("builtins")?.getattr("UserWarning")?;
101
-
PyErr::warn(py, user_warning_type,&message,0)?;
102
-
}
103
98
104
99
let name = format!("{}[{}]",Self::EXPECTED_TYPE, validator.get_name());
0 commit comments