Skip to content

Conversation

@jbland64
Copy link

@jbland64 jbland64 commented Dec 15, 2025

#8843
tests/nested_union_test.fbs - union name changed to highlight inconsistent union creator naming in generated python code
src/idl_gen_python.cpp - match union creator definition and call
** - other generated files impacted by the above changes

@github-actions github-actions bot added python c++ codegen Involving generating code from schema labels Dec 15, 2025
@jbland64 jbland64 changed the title 8843 [Python] Inconsistent python generation of union creator types #8843 [Python] Inconsistent python generation of union creator types Dec 15, 2025
@jbland64 jbland64 changed the title #8843 [Python] Inconsistent python generation of union creator types [Python] Inconsistent python generation of union creator types #8843 Dec 15, 2025
@jtdavis777 jtdavis777 added the ready-for-merge This PR has been approved by a maintainer and is ready for merge by a code owner label Dec 20, 2025
test3:Test;
}

union Any { Vec3, TestSimpleTableWithEnum }
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is going to change this tests generated code for all languages.. lets not do that.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, what would you suggest as an alternative?

Copy link
Collaborator

Choose a reason for hiding this comment

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

the least intrusive solution is to create a dedicated test file and case for this

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

Labels

c++ codegen Involving generating code from schema python ready-for-merge This PR has been approved by a maintainer and is ready for merge by a code owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] Inconsistent python generation of union creator types

3 participants