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 c9b8178 commit bb9959bCopy full SHA for bb9959b
pyo3-macros-backend/src/pyclass.rs
@@ -2257,9 +2257,10 @@ fn pyclass_auto_new<'a>(
2257
) -> Result<Option<syn::ItemImpl>> {
2258
if options.auto_new.is_some() {
2259
ensure_spanned!(
2260
- options.set_all.is_some(), options.hash.span() => "The `auto_new` option requires the `set_all` option.";
2261
- );
+ options.extends.is_none(), options.hash.span() => "The `auto_new` option cannot be used with `extends`.";
+ );
2262
}
2263
+
2264
match options.auto_new {
2265
Some(opt) => {
2266
if matches!(methods_type, PyClassMethodsType::Specialization) {
0 commit comments