question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(aws-rds): Python typing issue with EngineVersion

See original GitHub issue

What is the problem?

There is a typing error with RDS EngineVersions in the Python version of the CDK.

Expected type 'AuroraMysqlEngineVersion', got '() -> AuroraMysqlEngineVersion' instead 

I copied this code directly from the example in the docs: https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_rds/README.html

Reproduction Steps

  1. Clone https://github.com/blimmer/cdk-bug-reports
  2. Check out the python-db-type-issue branch
  3. Open the code in a Python IDE (e.g., PyCharm)
  4. Open the python_cdk/python_cdk_stack.py file.

You’ll see the type error:

Screen Shot 2022-01-07 at 10 39 54 AM

What did you expect to happen?

I expected the example from the official documentation (https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_rds/README.html) to not have any errors.

What actually happened?

A type error was displayed:

Expected type 'AuroraMysqlEngineVersion', got '() -> AuroraMysqlEngineVersion' instead 

CDK CLI Version

1.138.1 (build 595dee1)

Framework Version

1.138.1

Node.js Version

16.x

OS

MacOS

Language

Python

Language Version

Python 3.9

Other information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
peterwoodworthcommented, Jan 7, 2022

Hey @blimmer, I’m taking a look at this

0reactions
github-actions[bot]commented, Jan 21, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting DB issues for Amazon RDS Custom
Learn how to troubleshoot issues with Amazon RDS Custom DB instances. ... Troubleshooting custom engine version creation for RDS Custom for Oracle ...
Read more >
Troubleshoot errors when scaling the instance class of an ...
I have an Amazon Aurora DB instance, and I want to scale the instance class. Why can't I change the instance class, and...
Read more >
Troubleshoot major version upgrade issues in RDS for ...
When Amazon RDS supports a new version of a database engine, you can upgrade your DB instances to the new version.
Read more >
Resolve an Amazon RDS instance that is in an incompatible ...
My Amazon Relational Database Service (Amazon RDS) instance is stuck in an incompatible-parameters state. I can't connect to the DB instance ...
Read more >
CreateCustomDBEngineVersion - AWS Documentation
Creates a custom DB engine version (CEV). ... If creation fails, RDS Custom issues RDS-EVENT-0196 with the message Creation ... Type: String.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found