Commit a380ed92 by Wenzel Jakob

consider __setstate__ as a constructor

parent 178c8a89
......@@ -209,7 +209,7 @@ protected:
rec->signature = strdup(signature.c_str());
rec->args.shrink_to_fit();
rec->is_constructor = !strcmp(rec->name, "__init__");
rec->is_constructor = !strcmp(rec->name, "__init__") || !strcmp(rec->name, "__setstate__");
rec->has_args = false;
rec->has_kwargs = false;
rec->nargs = args;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment