-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "No default __reduce__ due to non-trivial __cinit__" #229
Labels
Comments
devin-ai-integration bot
added a commit
that referenced
this issue
Jan 6, 2025
- Replace datasets.utils._dill with cloudpickle for better type annotation support - Update function serialization to handle type annotations properly - Add cloudpickle dependency to pyproject.toml - Update documentation and examples with type annotation best practices - Maintain backward compatibility with existing code patterns Co-Authored-By: [email protected] <[email protected]>
devin-ai-integration bot
added a commit
that referenced
this issue
Jan 7, 2025
- Add dedicated test suite for CustomPickler functionality - Test path normalization and type annotation support - Fix return type annotations in test_prompt.py prompt functions - Add proper type hints for test functions Part of #229: Implement CustomPickler for function serialization Co-Authored-By: [email protected] <[email protected]>
I cannot reproduce this error. I only get warnings
|
Seems like the warning comes from: uqfoundation/dill#650 |
Per uqfoundation/dill#650 (comment), it seems like this only occurs when the class is declared in main, like @shreyaspimpalgaonkar said. |
Given that this only throws a warning and is restricted to a certain scenario, I'll lower the priority. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a separate parse_func where you add type annotation to the argument, you get this strange error.
e.g.
Error:
The text was updated successfully, but these errors were encountered: