Skip to content

Commit

Permalink
aws: update black and related lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikahanninen committed Sep 17, 2024
1 parent f903908 commit 4b4b093
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
47 changes: 29 additions & 18 deletions packages/aws/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/aws/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ amazon-textract-response-parser = "^0.1.33"
urllib3 = ">=1.25.4,<1.27"

[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
black = "^24.3.0"
flake8 = "^3.7.9"
pylint = "^2.4.4, <2.13"
pytest = "^7.2.0"
Expand Down
8 changes: 5 additions & 3 deletions packages/aws/src/RPA/Cloud/AWS/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,9 +1098,11 @@ def detect_sentiment(self, text: Optional[str] = None, lang="en") -> dict:
response = client.detect_sentiment(Text=text, LanguageCode=lang)
return {
"Sentiment": response["Sentiment"] if "Sentiment" in response else False,
"Score": response["SentimentScore"]
if "SentimentScore" in response
else False,
"Score": (
response["SentimentScore"]
if "SentimentScore" in response
else False
),
}

@aws_dependency_required
Expand Down

0 comments on commit 4b4b093

Please sign in to comment.