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

Python codegen: fix ndjson for aliased nullable fields #116

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

naegelejd
Copy link
Contributor

Fixes #114

@@ -548,7 +548,7 @@ def test_unions(format: Format):
tm.DateTime.from_components(2025, 3, 4),
),
null_or_fruits_or_days_of_week=tm.basic_types.GenericNullableUnion2.T1(
tm.basic_types.Fruits.APPLE
tm.basic_types.Fruits.APPLE # type: ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can specify type args instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sloppy. Thanks!

@naegelejd naegelejd merged commit b1e7388 into main Nov 28, 2023
14 checks passed
@naegelejd naegelejd deleted the naegelejd/fix-#114 branch November 28, 2023 21:13
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.

Python ndjson error reading aliased nullable union with value None
2 participants