-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-lambda: from_security_group_id returns object of invalid type #4669
Comments
related to #4658 moving to JSII repo. |
Our main priority is that users are not unintentionally blocked by this. @jcmonteiro From your description ot sounds like you were explicitly declaring a dependency on typeguard 4.3.0 (as opposed to automatically receiving this version as a transitive dependency). Can you confirm this if this was the case? |
I actually got the dependency via transitivity. I mentioned explicitly stating the version to make it easier to reproduce. In fact, upon checking the changes to my Poetry lock file, I noticed that a particular commit caused "typeguard" to bump from 2.13 to 4.3. That was due to a cascade of upgrades allowed by the fact that |
Thanks @jcmonteiro Looks like there are a few more packages that need their version constraint updated. |
But will close this here as a duplicate of #4658 and track it over there. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
The returned object from
SecurityGroup.from_security_group_id
when used in DockerImageFunction fails to pass the typeguard check in thecheck_type
function.This error wasn't present when using
typeguard
version 4.0.0. It used to throw warnings but not errors. The warning is pasted below.The error appears with
typeguard
version 4.3.0. The error message is pasted below.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The type check should succeed.
Current Behavior
The type check fails and so does
cdk deploy
orcdk synth
.Reproduction Steps
typeguard
version 4.3.0 in your environment.cdk synth
the Stack defined below.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.162.1
Framework Version
No response
Node.js Version
v22.9.0
OS
Mac
Language
Python
Language Version
Python 3.12.4
Other information
No response
The text was updated successfully, but these errors were encountered: