Skip to content

Commit 75ee3e9

Browse files
fix polling return type typevar (Azure#25570)
1 parent 8c49f9a commit 75ee3e9

File tree

1 file changed

+3
-2
lines changed
  • sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
_SUCCEEDED = frozenset(["succeeded", "partiallycompleted", "partiallysucceeded"])
2525

2626

27-
PollingReturnType = TypeVar("PollingReturnType", covariant=True)
27+
PollingReturnType = TypeVar("PollingReturnType")
28+
PollingReturnType_co = TypeVar("PollingReturnType_co", covariant=True)
2829

2930

3031
@runtime_checkable
31-
class TextAnalysisLROPoller(Protocol[PollingReturnType]):
32+
class TextAnalysisLROPoller(Protocol[PollingReturnType_co]):
3233
"""Implements a protocol which returned poller objects are consistent with.
3334
"""
3435

0 commit comments

Comments
 (0)