Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: handle objects with __getattr__ returning non-callable values in serialization#8109

Merged
dmadisetti merged 3 commits intomainfrom
ms/8096
Feb 4, 2026
Merged

fix: handle objects with __getattr__ returning non-callable values in serialization#8109
dmadisetti merged 3 commits intomainfrom
ms/8096

Conversation

Copy link
Contributor

mscolnick commented Feb 3, 2026

Summary

Objects that implement __getattr__ (like rdflib.Namespace) caused serialization errors because hasattr() returns True for any attribute name, but the returned value may not be callable.

Added getcallable() utility function that safely retrieves callable attributes, returning None if the attribute doesn't exist or isn't callable

Closes #8096

...in serialization

### Summary

Objects that implement `__getattr__` (like `rdflib.Namespace`) caused serialization errors because `hasattr()` returns `True` for any attribute name, but the returned value may not be callable.

Added `getcallable()` utility function that safely retrieves callable attributes, returning `None` if the attribute doesn't exist or isn't callable

Closes #8096
Copy link

vercel bot commented Feb 3, 2026 *
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Preview, Comment Feb 3, 2026 9:19pm

vercel bot deployed to Preview February 3, 2026 20:52 View deployment
dmadisetti added the bug Something isn't working label Feb 3, 2026
vercel bot deployed to Preview February 3, 2026 21:12 View deployment
vercel bot deployed to Preview February 3, 2026 21:19 View deployment
mscolnick requested a review from dmadisetti February 3, 2026 21:58
Copy link
Contributor Author

mscolnick commented Feb 3, 2026

test was fixed and merged to main

dmadisetti approved these changes Feb 4, 2026
dmadisetti merged commit 43f35eb into main Feb 4, 2026
40 of 45 checks passed
dmadisetti deleted the ms/8096 branch February 4, 2026 00:29
Copy link

github-actions bot commented Feb 4, 2026

Development release published. You may be able to view the changes at https://marimo.app?v=0.19.8-dev18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

dmadisetti dmadisetti approved these changes

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Objects implementing getattr are interpreted as having special methods for serialization.

2 participants