Commit f618638
authored
chore: fix Python TypeError: Cannot create a consistent method resolution order (MRO) (#35932)
### Issue # (if applicable)
Build on main failing with
```
E TypeError: Cannot create a consistent method resolution
E order (MRO) for bases IResource, IResourceWithPolicy, Protocol
```
### Reason for this change
There's a bug in jsii-pakmak. We can avoid the bug my not including the interface twice.
### Description of changes
`iam.IResourceWithPolicy` already extends `IResource`, so we can remove it from the two places that extended both
### Describe any new or updated permissions being added
n/a
### Description of how you validated changes
Build, packaged and executed the python lib.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 2cdfc8a commit f618638
File tree
3 files changed
+4
-5
lines changed- packages/aws-cdk-lib
- aws-ecs/lib
- aws-efs/lib
- aws-logs/lib
3 files changed
+4
-5
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments