-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(get_tagged_resources): Add return value type hint #3860
Conversation
Add type hint for get_tagged_resources returned value.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3860 +/- ##
=======================================
Coverage 85.51% 85.52%
=======================================
Files 741 741
Lines 22886 22890 +4
=======================================
+ Hits 19572 19576 +4
Misses 3314 3314 ☔ View full report in Codecov by Sentry. |
@@ -630,7 +630,7 @@ def get_regions_from_audit_resources(self, audit_resources: list) -> set: | |||
audited_regions.add(region) | |||
return audited_regions | |||
|
|||
def get_tagged_resources(self, input_resource_tags: list[str]): | |||
def get_tagged_resources(self, input_resource_tags: list[str]) -> list[dict]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why list[dict]
? This function returns a list of strings with ARNs.
Thanks for you contribution @mlmerchant 🚀 |
Context
Adding missing PEP 484 compliant type hints.
Description
Function get_tagged_resources was missing type hint for returned value.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.