Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python): duplicated kwargs when field is multi-inherited (#2654)
When a struct field is inherited from more than one parent (this could be twice from the same type - in the case of a diamond shape; or from two distinct parents that declare the same field), the lifted keyword arguments in python would be duplicated for this field. This is because the method that performs the keyword argument lifting did not perform name-based de-duplication, and operates directly on the "raw" assembly (whereby it must traverse the inheritance tree itself, as opposed to the Go generator which uses `jsii-reflect` and has the field collection done by that library). Fixes #2653
- Loading branch information