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

chore(get_tagged_resources): Add return value type hint #3860

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

mlmerchant
Copy link
Contributor

@mlmerchant mlmerchant commented Apr 25, 2024

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.

Add type hint for get_tagged_resources returned value.
@mlmerchant mlmerchant requested review from a team April 25, 2024 20:01
@github-actions github-actions bot added the provider/aws Issues/PRs related with the AWS provider label Apr 25, 2024
Copy link

codecov bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.52%. Comparing base (ee46bf3) to head (99f4547).
Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@@ -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]:
Copy link
Member

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.

@jfagoagas jfagoagas changed the title Update aws_provider.py with missing type hint. chore(get_tagged_resources): Add return value type hint Apr 26, 2024
@jfagoagas jfagoagas self-assigned this Apr 26, 2024
@mlmerchant mlmerchant closed this Apr 26, 2024
@jfagoagas jfagoagas reopened this Apr 26, 2024
@jfagoagas jfagoagas self-requested a review April 26, 2024 13:22
@jfagoagas
Copy link
Member

Thanks for you contribution @mlmerchant 🚀

@jfagoagas jfagoagas merged commit 899b2f8 into prowler-cloud:master Apr 26, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/aws Issues/PRs related with the AWS provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants