-
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
Cannot call a method that takes an empty struct from Python #2846
Comments
I have updated priority to match the related CDK issue |
Any ETA on a fix for this? |
Ah - the problem boils down to |
Empty dictionaries are false-y in Python, so the test that checked for structs via the existence of a property mapping table was incorrect, as it only checked truthiness of the mapping, instead of checking for it being non-`None`. Fixes #2846
Empty dictionaries are false-y in Python, so the test that checked for structs via the existence of a property mapping table was incorrect, as it only checked truthiness of the mapping, instead of checking for it being non-`None`. Fixes #2846 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
|
🐛 Bug Report
Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)Go
General Information
1.29.0
What is the problem?
We have the following interface set in CDK's RDS library:
Turns out, you can't call the
bindToCluster()
andbindToInstance()
methods at all from Python.Assuming we have this:
Calling
parameter_group.bind_to_cluster()
with no arguments fails with:Calling
parameter_group.bind_to_cluster()
with eitherrds.ParameterGroupClusterBindOptions()
, or{}
, fails with:The text was updated successfully, but these errors were encountered: