@autorest/python 6.2.10 → 6.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,6 +83,12 @@ class LROOperationBase(OperationBase[LROResponseType]):
|
|
|
83
83
|
response = responses_with_bodies[0]
|
|
84
84
|
return response
|
|
85
85
|
|
|
86
|
+
def response_type_annotation(self, **kwargs) -> str:
|
|
87
|
+
lro_response = self.lro_response or next(iter(self.responses), None)
|
|
88
|
+
if lro_response:
|
|
89
|
+
return lro_response.type_annotation(**kwargs)
|
|
90
|
+
return "None"
|
|
91
|
+
|
|
86
92
|
def cls_type_annotation(self, *, async_mode: bool) -> str:
|
|
87
93
|
"""We don't want the poller to show up in ClsType, so we call super() on resposne type annotation"""
|
|
88
94
|
return f"ClsType[{Response.type_annotation(self.responses[0], async_mode=async_mode)}]"
|