-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(python): unable to implement additional interfaces
When a type extends a jsii class, any additional interfaces implemented via the `@jsii.implements` annotation were not properly registered, and overrides were not properly discovered. This was the combination of a code-generation bug, which caused the type passed to the `create` kernel method to be that of the jsii class, instead of the dynamic class (`self.__class__`); and a kernel bug, which caused those inheritance graphs to completely skip overrides detection. Fixes #2963
- Loading branch information
1 parent
a9f0163
commit 0ff1e84
Showing
6 changed files
with
220 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/jsii-pacmak/test/generated-code/__snapshots__/examples.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.