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

refactor(logger): add type annotation for append_keys method #3988

Merged
merged 1 commit into from Mar 20, 2024

Conversation

rafrafek
Copy link
Contributor

@rafrafek rafrafek commented Mar 20, 2024

Issue number: #3989

Summary

Add type annotation for additional_keys parameter in append_keys function in the logger.py file.

Type : object as suggested by @leandrodamascena in the comment #3869 (comment)

Changes

Type annotation added.

User experience

Type checker like Pyright stops complaining about missing type annotation.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Signed-off-by: Rafał <23004737+rafrafek@users.noreply.github.com>
@rafrafek rafrafek requested a review from a team as a code owner March 20, 2024 14:34
@boring-cyborg boring-cyborg bot added the logger label Mar 20, 2024
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Mar 20, 2024
Copy link

boring-cyborg bot commented Mar 20, 2024

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link

Copy link

sonarcloud bot commented Mar 20, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rafrafek rafrafek mentioned this pull request Mar 20, 2024
7 tasks
@leandrodamascena leandrodamascena changed the title Add type annotation for additional_keys refactor(logger): add type annotation for append_keys method Mar 20, 2024
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was really fast @rafrafek!

APPROVED!

@leandrodamascena leandrodamascena merged commit 2b916c7 into aws-powertools:develop Mar 20, 2024
23 checks passed
Copy link

boring-cyborg bot commented Mar 20, 2024

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement logger size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static typing: Getting type errors on logger append_keys usage
2 participants