We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164fb7b commit 6b530eeCopy full SHA for 6b530ee
pyo3-macros-backend/src/pyclass.rs
@@ -2227,9 +2227,10 @@ fn pyclass_auto_new<'a>(
2227
) -> Result<Option<syn::ItemImpl>> {
2228
if options.auto_new.is_some() {
2229
ensure_spanned!(
2230
- options.set_all.is_some(), options.hash.span() => "The `auto_new` option requires the `set_all` option.";
2231
- );
+ options.extends.is_none(), options.hash.span() => "The `auto_new` option cannot be used with `extends`.";
+ );
2232
}
2233
+
2234
match options.auto_new {
2235
Some(opt) => {
2236
if matches!(methods_type, PyClassMethodsType::Specialization) {
0 commit comments