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

Check for empty tuple in format_type #164

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Conversation

Heliozoa
Copy link
Contributor

Empty tuple fields () are currently identified as never[] but are serialized into null. This PR fixes this by checking for an empty tuple at format_type. This can come up in generics where T = ().

@NyxCode
Copy link
Collaborator

NyxCode commented Aug 16, 2023

I cant believe that wasn't already covered by the test suite. Thanks!!

@NyxCode NyxCode merged commit c4bee20 into Aleph-Alpha:main Aug 16, 2023
@Heliozoa Heliozoa deleted the unit-null branch September 12, 2023 18: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