v1.103.1 -> v1.104.0 upgrade breaks Python code using an IntEnum value where int is expected #4662
Closed
1 task done
Labels
bug
This issue is a bug.
closed-for-staleness
needs-triage
This issue or PR still needs to be triaged.
potential-regression
Marking this issue as a potential regression to be checked by team member
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I have Python CDK code like this:
After upgrading dependency packages:
...the code above has started breaking with
AttributeError: __jsii_type__
if I amend this line:
cpu=FargateCpu.ONE.value
then it works againbut that should not be necessary
Regression Issue
Expected Behavior
IntEnum
is a true subclass ofint
so this is not just a duck-typing problem but a failure to recognise subtype
it should be valid to use
IntEnum
member anywhere thatint
is expectedCurrent Behavior
Reproduction Steps
see above
Possible Solution
No response
Additional Information/Context
I have guessed this is a JSII issue rather than something in CDK lib.
SDK version used
1.104.0
Environment details (OS name and version, etc.)
macos 14.6.1, nodejs v20.15.1, Python 3.11
The text was updated successfully, but these errors were encountered: