Skip to content

fix(typing): ensure return type is a str when default_value is set - #3840

Merged
heitorlessa merged 1 commit into
aws-powertools:developfrom
tonnico:develop
Feb 23, 2024
Merged

heitorlessa merged 1 commit into
aws-powertools:developfrom
tonnico:develop

Conversation

@tonnico

@tonnico tonnico commented Feb 23, 2024

Copy link
Copy Markdown
Contributor

Issue number: #3839

Summary

Changes

Overload get_header_value.

User experience

Ensure return type without casting.

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.

@tonnico
tonnico requested a review from a team February 23, 2024 10:54
@pull-request-size pull-request-size Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 23, 2024
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@heitorlessa

Copy link
Copy Markdown
Contributor

thank you @wurstnase for once again address a typing tech debt I wish we had resolved a while ago but never priotized 🫶

Merging after CI checks

@github-actions github-actions Bot added the bug Something isn't working label Feb 23, 2024
@heitorlessa
heitorlessa merged commit 75b1639 into aws-powertools:develop Feb 23, 2024
@tonnico

tonnico commented Feb 23, 2024

Copy link
Copy Markdown
Contributor Author

Your welcome 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Static typing: missing @overload to ensure return type is a str when default_value is set

2 participants