Skip to content
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

fix(serializer): Implement abstract base class for customizing serialization #1363

Closed
wants to merge 3 commits into from

Conversation

sl0thentr0py
Copy link
Member

The addition of sentry_repr in #1322 breaks MagicMock since it creates attrs on the fly.
This adds a new ABC mixin class called SentryReprMixin which the user has to inherit and implement the sentry_repr method to customize serialization instead of directly implementing it on their class.

…ing getattr directly since it breaks MagicMock
@sl0thentr0py sl0thentr0py requested a review from antonpirker March 7, 2022 17:56
@sl0thentr0py
Copy link
Member Author

closing in favour of __sentry_repr__

@sl0thentr0py sl0thentr0py deleted the neel/sentry-repr-abc branch March 7, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant