Skip to content

Upgrade version of typeguard in python runtime #4469

@sam-goodwin

Description

@sam-goodwin

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:

`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

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.p1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions