- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
fix: Enable stub mechanism for caching un-pickable objects #6657
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
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
for more information, see https://pre-commit.ci
        
          
                marimo/_save/stubs/__init__.py
              
                Outdated
          
        
      | return True | ||
|  | ||
| # Walk MRO to find matching base class | ||
| for cls in value_type.__mro__: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did this in formatters, and it has a chance of raising errors in odd edge maybe either catch the exception or comment if we just want to propoage it up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looked at the formatters change, and a little too small to meaningfully DRY- but hopefully this saves us a bug report
📝 Summary
closes #5542
CustomStubclass which enables custom methods of hashing, saving, and restoring objects to and from cache.