Skip to content

Commit ffd903f

Browse files
pyright qa (#35222)
1 parent 4346c37 commit ffd903f

File tree

1 file changed

+10
-2
lines changed
  • sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_operations

1 file changed

+10
-2
lines changed

sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_operations/_patch.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ def get_answers( # pylint: disable=arguments-differ
216216
# pylint ignore b/c with overloads we need to doc ALL the params in the impl for them to show up in docs
217217
# pylint: disable=docstring-keyword-should-match-keyword-only,docstring-missing-param,docstring-should-be-keyword
218218
@distributed_trace
219-
def get_answers(self, *args: AnswersOptions, **kwargs: Any) -> AnswersResult:
219+
def get_answers( # pyright: ignore[reportIncompatibleMethodOverride]
220+
self,
221+
*args: AnswersOptions,
222+
**kwargs: Any
223+
) -> AnswersResult:
220224
"""Answers the specified question using your knowledge base.
221225
222226
:param options: Positional only. POST body of the request. Provide either `options`, OR
@@ -302,7 +306,11 @@ def get_answers_from_text( # pylint: disable=arguments-differ
302306
"""
303307

304308
@distributed_trace
305-
def get_answers_from_text(self, *args: AnswersFromTextOptions, **kwargs: Any) -> AnswersFromTextResult:
309+
def get_answers_from_text( # pyright: ignore[reportIncompatibleMethodOverride]
310+
self,
311+
*args: AnswersFromTextOptions,
312+
**kwargs: Any
313+
) -> AnswersFromTextResult:
306314
"""Answers the specified question using the provided text in the body.
307315
308316
:param options: Positional only. POST body of the request. Provide either `options`, OR

0 commit comments

Comments
 (0)