Skip to content

Commit 5ade091

Browse files
committed
fixed pylint
1 parent 7a2ac11 commit 5ade091

File tree

1 file changed

+7
-5
lines changed
  • sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics

1 file changed

+7
-5
lines changed

sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ def __init__(self, **kwargs):
151151
self.is_error = False
152152

153153
def __repr__(self):
154-
return "DetectLanguageResult(id={}, primary_language={}, warnings={}, statistics={}, is_error={})" \
155-
.format(self.id, repr(self.primary_language), repr(self.warnings), repr(self.statistics), self.is_error)[:1024]
154+
return "DetectLanguageResult(id={}, primary_language={}, warnings={}, statistics={}, "\
155+
"is_error={})".format(self.id, repr(self.primary_language), repr(self.warnings),
156+
repr(self.statistics), self.is_error)[:1024]
156157

157158

158159
class CategorizedEntity(DictMixin):
@@ -374,9 +375,10 @@ def __init__(self, **kwargs):
374375
self.is_error = False
375376

376377
def __repr__(self):
377-
return "AnalyzeSentimentResult(id={}, sentiment={}, warnings={}, statistics={}, confidence_scores={}, sentences={}, " \
378-
"is_error={})".format(self.id, self.sentiment, repr(self.warnings), repr(self.statistics), repr(self.confidence_scores),
379-
repr(self.sentences), self.is_error)[:1024]
378+
return "AnalyzeSentimentResult(id={}, sentiment={}, warnings={}, statistics={}, confidence_scores={}, "\
379+
"sentences={}, is_error={})".format(
380+
self.id, self.sentiment, repr(self.warnings), repr(self.statistics),
381+
repr(self.confidence_scores), repr(self.sentences), self.is_error)[:1024]
380382

381383

382384
class TextDocumentStatistics(DictMixin):

0 commit comments

Comments
 (0)