Skip to content
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

fix(python): mypy validation errors #2472

Merged
merged 13 commits into from
Jan 27, 2021
Merged

fix(python): mypy validation errors #2472

merged 13 commits into from
Jan 27, 2021

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Jan 25, 2021

Updated the type annotations of the jsii runtime for Python so that the
decorators carry appropriate type signatures. Additionally, enhanced
the code generation for Python so that mypy errors that are difficult or
impossible to address are ignored by the tool without requiring specific
user configuration.

Relates to #2464, #2476


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Updated the type annotations of the jsii runtime for Python so that the
decorators carry appropriate type signatures. Additionally, enhanced
the code generation for Python so that mypy errors that are difficult or
impossible to address are ignored by the tool without requiring specific
user configuration.

Fixes #2464
@RomainMuller RomainMuller added language/python Related to Python bindings effort/small Small work item – less than a day of effort contribution/core This is a PR that came from AWS. labels Jan 25, 2021
@RomainMuller RomainMuller requested a review from a team January 25, 2021 12:46
@RomainMuller RomainMuller self-assigned this Jan 25, 2021
It's been a couple of times `mypy` breaks the pipeline by releasing new
versions that are more strict or start checking things it used to
silently ignored.

In order to avoid this happening in the future (and putting us back in
control), this pins the `mypy` version to the exact release (the last
we successfully built with, in this case), and moves everything we
install though `pip install` into `requirements-dev.txt` files so that
@dependabot can help us stay up-to-date going forward.

Fixes #2464
@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jan 26, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2021

Merging (with squash)...

@mergify
Copy link
Contributor

mergify bot commented Jan 26, 2021

Merging (with squash)...

@MrArnoldPalmer
Copy link
Contributor

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 27, 2021

Command update: failure

Branch update failed
merge conflict between base and head
err-code: 65ECD

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
  • Commit ID: 7ba7b9a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 2b2e9a8 into main Jan 27, 2021
@mergify mergify bot deleted the rmuller/fix-mypy branch January 27, 2021 10:18
@mergify
Copy link
Contributor

mergify bot commented Jan 27, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort language/python Related to Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants