-
Notifications
You must be signed in to change notification settings - Fork 263
Upgrade version of typeguard in python runtime #4469
Copy link
Copy link
Closed
Labels
Description
Describe the feature
The python runtime for the CDK has an old and inflexible dependency on typeguard~=2.13.3
https://github.com/aws/jsii/blob/main/packages/%40jsii/python-runtime/setup.py#L37C10-L37C27
Use Case
I would like to have a CDK application include the latest pandera libraries but this fixed dependency is a blocker.
Proposed Solution
Increase the range and add version-aware adaptation code if required to handle the different versions.
Later versions of typeguard no longer accept the argname parameter. We'd have to change this line of code:
jsii/packages/jsii-pacmak/lib/targets/python.ts
Lines 3205 to 3207 in 576fd20
| `check_type(argname=${JSON.stringify( | |
| `argument ${name}`, | |
| )}, value=${name}, expected_type=${expectedType})${comment}`, |
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.134.0
Environment details (OS name and version, etc.)
Mac OS
Reactions are currently unavailable