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

Add slots to [Generic]SerializableType #156

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

mishamsk
Copy link
Contributor

Hey,

Just realized that SerializableType and GenericSerializableType do not define __slots__ (unlike DataClassXXXMixin) which indirectly makes it impossible to create/use slotted custom types.

Very small change, looks pretty benign to me, but valuable.

@Fatal1ty
Copy link
Owner

Fatal1ty commented Sep 1, 2023

Oh, good catch! I didn't even think about it. Thanks you, I'll merge it and update test_slots later on.

@Fatal1ty Fatal1ty merged commit 1e0644f into Fatal1ty:master Sep 1, 2023
13 checks passed
@mishamsk
Copy link
Contributor Author

mishamsk commented Sep 1, 2023

@Fatal1ty thanks. so far I had to resort to this in my new version ;-)

@mishamsk mishamsk deleted the add-slots-to-ser-type branch September 9, 2023 17:06
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.

2 participants