Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 4, 2025

The Method Resolution Order (MRO) rules for Python state (in brief) that all classes and interfaces in an inheritance declaration must be listed subclass-before-superclass, and in the same order on all classes.

jsii-pacmak was not guaranteeing order, leading to sometimes producing an order that violates MRO.

Update jsii-pacmak to update base classes and sort them in the right order.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The Method Resolution Order (MRO) rules for Python state (in brief)
that all classes and interfaces in an inheritance declaration must
be listed subclass-before-superclass, and in the same order on all
classes.

`jsii-pacmak` was not guaranteeing order, leading to sometimes producing
an order that violates MRO.

Update `jsii-pacmak` to update base classes and sort them in the right
order.
@rix0rrr rix0rrr requested a review from a team November 4, 2025 10:04
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 4, 2025
@mergify
Copy link
Contributor

mergify bot commented Nov 4, 2025

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Nov 4, 2025
@mergify
Copy link
Contributor

mergify bot commented Nov 4, 2025

Merging (with squash)...

@mergify mergify bot added the queued label Nov 4, 2025
@mergify mergify bot merged commit cfb6580 into main Nov 4, 2025
40 checks passed
@mergify mergify bot deleted the huijbers/mro branch November 4, 2025 12:39
@mergify mergify bot removed pr/ready-to-merge This PR is ready to be merged. queued labels Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants