diff --git a/autorest/codegen/models/parameter.py b/autorest/codegen/models/parameter.py index 495cdbcab95..c3d041c1344 100644 --- a/autorest/codegen/models/parameter.py +++ b/autorest/codegen/models/parameter.py @@ -223,20 +223,16 @@ def serialization_type(self) -> str: def docstring_type(self) -> str: return self.multiple_media_types_docstring_type or self.schema.docstring_type - @property - def sync_method_signature(self) -> str: + def method_signature(self, async_mode: bool) -> str: default_value, default_value_declaration, type_annot = self._default_value() if default_value is not None or not self.required: + if async_mode: + return f"{self.serialized_name}: {type_annot} = {default_value_declaration}," return f"{self.serialized_name}={default_value_declaration}, # type: {type_annot}" + if async_mode: + return f"{self.serialized_name}: {type_annot}," return f"{self.serialized_name}, # type: {type_annot}" - @property - def async_method_signature(self) -> str: - default_value, default_value_declaration, type_annot = self._default_value() - if default_value is not None or not self.required: - return f"{self.serialized_name}: {type_annot} = {default_value_declaration}" - return f"{self.serialized_name}: {type_annot}" - @property def full_serialized_name(self) -> str: origin_name = self.serialized_name diff --git a/autorest/codegen/models/parameter_list.py b/autorest/codegen/models/parameter_list.py index 2be7584cf64..c94c9f295a7 100644 --- a/autorest/codegen/models/parameter_list.py +++ b/autorest/codegen/models/parameter_list.py @@ -116,13 +116,8 @@ def method(self) -> List[Parameter]: signature_parameters = signature_parameters_no_default_value + signature_parameters_default_value return signature_parameters - @property - def sync_method_signature(self) -> List[str]: - return [parameter.sync_method_signature for parameter in self.method] - - @property - def async_method_signature(self) -> List[str]: - return [parameter.async_method_signature for parameter in self.method] + def method_signature(self, async_mode: bool) -> List[str]: + return [parameter.method_signature(async_mode) for parameter in self.method] @property def is_flattened(self) -> bool: diff --git a/autorest/codegen/templates/config.py.jinja2 b/autorest/codegen/templates/config.py.jinja2 index b8b45964104..84b58885286 100644 --- a/autorest/codegen/templates/config.py.jinja2 +++ b/autorest/codegen/templates/config.py.jinja2 @@ -3,17 +3,10 @@ {% macro method_signature() %} def __init__( self, - {% if async_mode %} - {% for param_signature in code_model.global_parameters.async_method_signature %} - {{ param_signature }}, - {% endfor %} - **kwargs: Any - {% else %} - {% for param_signature in code_model.global_parameters.sync_method_signature %} + {% for param_signature in code_model.global_parameters.method_signature(async_mode) %} {{ param_signature }} {% endfor %} - **kwargs # type: Any - {% endif %} + {{ "**kwargs: Any" if async_mode else "**kwargs # type: Any" }} ){{" -> None" if async_mode else "" }}:{% endmacro %} {# actual template starts here #} # coding=utf-8 diff --git a/autorest/codegen/templates/metadata.json.jinja2 b/autorest/codegen/templates/metadata.json.jinja2 index 43153511b88..0ac3a0238a2 100644 --- a/autorest/codegen/templates/metadata.json.jinja2 +++ b/autorest/codegen/templates/metadata.json.jinja2 @@ -19,7 +19,7 @@ "sync": { {% for gp in sync_global_parameters.method %} {{ gp.serialized_name | tojson }}: { - "signature": {{ gp.sync_method_signature | tojson }}, + "signature": {{ gp.method_signature(False) | tojson }}, "description": {{ gp.description | tojson }}, "docstring_type": {{ gp.docstring_type | tojson }}, "required": {{ gp.required | tojson }} @@ -29,7 +29,7 @@ "async": { {% for gp in async_global_parameters.method %} {{ gp.serialized_name | tojson }}: { - "signature": {{ (gp.async_method_signature + ",") | tojson }}, + "signature": {{ (gp.method_signature(True)) | tojson }}, "description": {{ gp.description | tojson }}, "docstring_type": {{ gp.docstring_type | tojson }}, "required": {{ gp.required | tojson }} diff --git a/autorest/codegen/templates/operation_tools.jinja2 b/autorest/codegen/templates/operation_tools.jinja2 index d9b2b01d22b..88a3d8a48d6 100644 --- a/autorest/codegen/templates/operation_tools.jinja2 +++ b/autorest/codegen/templates/operation_tools.jinja2 @@ -16,21 +16,13 @@ else ((return_type_wrapper | join("[") + "[") if return_type_wrapper else "") ~ {# get method signature #} {% macro method_signature(operation, operation_name, async_mode, coroutine, return_type_wrapper, return_type=None) %} {{ "async " if coroutine else "" }}def {{ operation_name }}( -{% if async_mode %} self, - {% for param_signature in operation.parameters.async_method_signature %} - {{ param_signature }}, - {% endfor %} - **kwargs -){{ async_return_type_annotation(operation, return_type_wrapper, return_type) }}: -{% else %} - self, - {% for param_signature in operation.parameters.sync_method_signature %} +{% for param_signature in operation.parameters.method_signature(async_mode) %} {{ param_signature }} - {% endfor %} - **kwargs # type: Any -): -{% endif %}{% endmacro %} +{% endfor %} + {{ "**kwargs: Any" if async_mode else "**kwargs # type: Any" }} +){{ async_return_type_annotation(operation, return_type_wrapper, return_type) if async_mode }}: +{% endmacro %} {# content type docstring #} {% macro content_type_docstring(operation) %} diff --git a/autorest/codegen/templates/service_client.py.jinja2 b/autorest/codegen/templates/service_client.py.jinja2 index 97c53a63dfb..609e8f71054 100644 --- a/autorest/codegen/templates/service_client.py.jinja2 +++ b/autorest/codegen/templates/service_client.py.jinja2 @@ -4,23 +4,13 @@ {% macro method_signature() %} def __init__( self, - {% if async_mode %} - {% for param_signature in code_model.global_parameters.async_method_signature %} - {{ param_signature }}, - {% endfor %} - {% if code_model.base_url %} - {{ code_model.base_url_method_signature(True) }} - {% endif %} - **kwargs: Any - {% else %} - {% for param_signature in code_model.global_parameters.sync_method_signature %} + {% for param_signature in code_model.global_parameters.method_signature(async_mode) %} {{ param_signature }} - {% endfor %} - {% if code_model.base_url %} - {{ code_model.base_url_method_signature(False) }} - {% endif %} - **kwargs # type: Any + {% endfor %} + {% if code_model.base_url %} + {{ code_model.base_url_method_signature(async_mode) }} {% endif %} + {{ "**kwargs: Any" if async_mode else "**kwargs # type: Any" }} ){{" -> None" if async_mode else "" }}:{% endmacro %} {% set config_signature = code_model.global_parameters.method|join(', ', attribute='serialized_name') ~ (", " if code_model.global_parameters.method else "") %} {% set has_mixin_operation_group = code_model.operation_groups|selectattr("is_empty_operation_group")|first %} diff --git a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py index 9092065ba58..5127a856100 100644 --- a/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/operations/_http_success_operations.py @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def head200( self, - **kwargs + **kwargs: Any ) -> None: """Return 200 status code if successful. @@ -74,7 +74,7 @@ async def head200( async def head204( self, - **kwargs + **kwargs: Any ) -> None: """Return 204 status code if successful. @@ -113,7 +113,7 @@ async def head204( async def head404( self, - **kwargs + **kwargs: Any ) -> None: """Return 404 status code if successful. diff --git a/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py index 9092065ba58..5127a856100 100644 --- a/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/basic/generated/azure/basic/sample/aio/operations/_http_success_operations.py @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def head200( self, - **kwargs + **kwargs: Any ) -> None: """Return 200 status code if successful. @@ -74,7 +74,7 @@ async def head200( async def head204( self, - **kwargs + **kwargs: Any ) -> None: """Return 204 status code if successful. @@ -113,7 +113,7 @@ async def head204( async def head404( self, - **kwargs + **kwargs: Any ) -> None: """Return 404 status code if successful. diff --git a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py index 9ca492f6c9a..0ae5da1c4e1 100644 --- a/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py +++ b/docs/samples/specification/directives/generated/azure/directives/sample/aio/operations/_polling_paging_example_operations.py @@ -25,7 +25,7 @@ class PollingPagingExampleOperationsMixin: async def _basic_polling_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -74,7 +74,7 @@ async def _basic_polling_initial( async def begin_basic_polling( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncCustomPoller["_models.Product"]: """A simple polling operation. @@ -130,7 +130,7 @@ def get_long_running_output(pipeline_response): def basic_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A simple paging operation. diff --git a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py index f68d65949b0..23a3754979e 100644 --- a/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py +++ b/docs/samples/specification/management/generated/azure/mgmt/sample/aio/operations/_http_success_operations.py @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def head200( self, - **kwargs + **kwargs: Any ) -> bool: """Return 200 status code if successful. @@ -76,7 +76,7 @@ async def head200( async def head204( self, - **kwargs + **kwargs: Any ) -> bool: """Return 204 status code if successful. @@ -116,7 +116,7 @@ async def head204( async def head404( self, - **kwargs + **kwargs: Any ) -> bool: """Return 404 status code if successful. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_operations_mixin.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_operations_mixin.py index ee26669b408..6c762f32a2a 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_operations_mixin.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_operations_mixin.py @@ -26,7 +26,7 @@ class MultiapiServiceClientOperationsMixin(object): async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -59,7 +59,7 @@ def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -95,7 +95,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. @@ -131,7 +131,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -161,7 +161,7 @@ async def test_one( def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_metadata.json b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_metadata.json index b4a92380cf8..234e4e9e048 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_metadata.json +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~azure.multiapi.sample.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~azure.multiapi.sample.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~azure.multiapi.sample.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.multiapi.sample.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~azure.multiapi.sample.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~azure.multiapi.sample.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~azure.multiapi.sample.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~azure.multiapi.sample.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py index 589b2562588..6fc644d04ac 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_multiapi_service_client_operations.py @@ -27,7 +27,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -79,7 +79,7 @@ async def test_one( async def _test_lro_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -128,7 +128,7 @@ async def _test_lro_initial( async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -186,7 +186,7 @@ async def _test_lro_and_paging_initial( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PagingResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] error_map = { @@ -237,7 +237,7 @@ async def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -355,7 +355,7 @@ async def internal_get_next(next_link=None): async def test_different_calls( self, greeting_in_english: str, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py index baf7dd1d838..c4b59bbbb8f 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v1/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_metadata.json b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_metadata.json index 84e62f6d186..e3f32474030 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_metadata.json +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~azure.multiapi.sample.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py index 27c171e3924..92c0be213f1 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_multiapi_service_client_operations.py @@ -24,7 +24,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo. @@ -80,7 +80,7 @@ async def test_different_calls( self, greeting_in_english: str, greeting_in_chinese: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py index b670b307d58..ac309aba25d 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelTwo"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestTwo should be in OperationGroupOneOperations. Takes in ModelTwo and ouputs ModelTwo. @@ -100,7 +100,7 @@ async def test_two( async def test_three( self, - **kwargs + **kwargs: Any ) -> None: """TestThree should be in OperationGroupOneOperations. Takes in ModelTwo. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py index ca52adfdffa..588d96c2f2a 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v2/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, parameter_one: bool, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_metadata.json b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_metadata.json index 50b45eb9d12..7e5754ac15b 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_metadata.json +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.multiapi.sample.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py index bcb8019178b..ddad8a8c7c6 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_multiapi_service_client_operations.py @@ -23,7 +23,7 @@ class MultiapiServiceClientOperationsMixin: def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. @@ -86,7 +86,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py index 1004b24e22b..5dccdfda219 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelThree"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelThree": """TestTwo should be in OperationGroupOneOperations. Takes in ModelThree and ouputs ModelThree. diff --git a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py index 8644c00c318..22ef21827fd 100644 --- a/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py +++ b/docs/samples/specification/multiapi/generated/azure/multiapi/sample/v3/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, input: Optional[Union[IO, "_models.SourcePath"]] = None, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. @@ -107,7 +107,7 @@ async def test_four( async def test_five( self, - **kwargs + **kwargs: Any ) -> None: """TestFive should be in OperationGroupTwoOperations. diff --git a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py index 538596c97f1..cf8abe6538b 100644 --- a/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureBodyDuration/bodyduration/aio/operations/_duration_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[datetime.timedelta]: + async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: """Get null duration value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.timedelta]: get_null.metadata = {"url": "/duration/null"} # type: ignore @distributed_trace_async - async def put_positive_duration(self, duration_body: datetime.timedelta, **kwargs) -> None: + async def put_positive_duration(self, duration_body: datetime.timedelta, **kwargs: Any) -> None: """Put a positive duration value. :param duration_body: duration body. @@ -136,7 +136,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg put_positive_duration.metadata = {"url": "/duration/positiveduration"} # type: ignore @distributed_trace_async - async def get_positive_duration(self, **kwargs) -> datetime.timedelta: + async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: """Get a positive duration value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -178,7 +178,7 @@ async def get_positive_duration(self, **kwargs) -> datetime.timedelta: get_positive_duration.metadata = {"url": "/duration/positiveduration"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> datetime.timedelta: + async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: """Get an invalid duration value. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py index 65b61149c49..23ab16e2ed8 100644 --- a/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureParameterGrouping/azureparametergrouping/aio/operations/_parameter_grouping_operations.py @@ -49,7 +49,9 @@ def __init__(self, client, config, serializer, deserializer) -> None: @distributed_trace_async async def post_required( - self, parameter_grouping_post_required_parameters: "_models.ParameterGroupingPostRequiredParameters", **kwargs + self, + parameter_grouping_post_required_parameters: "_models.ParameterGroupingPostRequiredParameters", + **kwargs: Any ) -> None: """Post a bunch of required parameters grouped. @@ -116,7 +118,7 @@ async def post_required( async def post_optional( self, parameter_grouping_post_optional_parameters: Optional["_models.ParameterGroupingPostOptionalParameters"] = None, - **kwargs + **kwargs: Any ) -> None: """Post a bunch of optional parameters grouped. @@ -173,7 +175,7 @@ async def post_multi_param_groups( parameter_grouping_post_multi_param_groups_second_param_group: Optional[ "_models.ParameterGroupingPostMultiParamGroupsSecondParamGroup" ] = None, - **kwargs + **kwargs: Any ) -> None: """Post parameters from multiple different parameter groups. @@ -236,7 +238,7 @@ async def post_multi_param_groups( @distributed_trace_async async def post_shared_parameter_group_object( - self, first_parameter_group: Optional["_models.FirstParameterGroup"] = None, **kwargs + self, first_parameter_group: Optional["_models.FirstParameterGroup"] = None, **kwargs: Any ) -> None: """Post parameters with a shared parameter group object. diff --git a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py index 4b6aff582da..9c6580827ab 100644 --- a/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureReport/azurereport/aio/operations/_auto_rest_report_service_for_azure_operations.py @@ -27,7 +27,7 @@ class AutoRestReportServiceForAzureOperationsMixin: @distributed_trace_async - async def get_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[str, int]: + async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Dict[str, int]: """Get test coverage report. :param qualifier: If specified, qualifies the generated report further (e.g. '2.7' vs '3.5' in diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py index 2ab7724d8a8..e2833056353 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_default_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_method_global_valid(self, **kwargs) -> None: + async def get_method_global_valid(self, **kwargs: Any) -> None: """GET method with api-version modeled in global settings. :keyword callable cls: A custom type or function that will be passed the direct response @@ -89,7 +89,7 @@ async def get_method_global_valid(self, **kwargs) -> None: get_method_global_valid.metadata = {"url": "/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview"} # type: ignore @distributed_trace_async - async def get_method_global_not_provided_valid(self, **kwargs) -> None: + async def get_method_global_not_provided_valid(self, **kwargs: Any) -> None: """GET method with api-version modeled in global settings. :keyword callable cls: A custom type or function that will be passed the direct response @@ -129,7 +129,7 @@ async def get_method_global_not_provided_valid(self, **kwargs) -> None: get_method_global_not_provided_valid.metadata = {"url": "/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview"} # type: ignore @distributed_trace_async - async def get_path_global_valid(self, **kwargs) -> None: + async def get_path_global_valid(self, **kwargs: Any) -> None: """GET method with api-version modeled in global settings. :keyword callable cls: A custom type or function that will be passed the direct response @@ -169,7 +169,7 @@ async def get_path_global_valid(self, **kwargs) -> None: get_path_global_valid.metadata = {"url": "/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview"} # type: ignore @distributed_trace_async - async def get_swagger_global_valid(self, **kwargs) -> None: + async def get_swagger_global_valid(self, **kwargs: Any) -> None: """GET method with api-version modeled in global settings. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py index 2b8ac940eb4..8f31f8315a7 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_api_version_local_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_method_local_valid(self, **kwargs) -> None: + async def get_method_local_valid(self, **kwargs: Any) -> None: """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :keyword callable cls: A custom type or function that will be passed the direct response @@ -89,7 +89,7 @@ async def get_method_local_valid(self, **kwargs) -> None: get_method_local_valid.metadata = {"url": "/azurespecials/apiVersion/method/string/none/query/local/2.0"} # type: ignore @distributed_trace_async - async def get_method_local_null(self, api_version: Optional[str] = None, **kwargs) -> None: + async def get_method_local_null(self, api_version: Optional[str] = None, **kwargs: Any) -> None: """Get method with api-version modeled in the method. pass in api-version = null to succeed. :param api_version: This should appear as a method parameter, use value null, this should @@ -132,7 +132,7 @@ async def get_method_local_null(self, api_version: Optional[str] = None, **kwarg get_method_local_null.metadata = {"url": "/azurespecials/apiVersion/method/string/none/query/local/null"} # type: ignore @distributed_trace_async - async def get_path_local_valid(self, **kwargs) -> None: + async def get_path_local_valid(self, **kwargs: Any) -> None: """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :keyword callable cls: A custom type or function that will be passed the direct response @@ -172,7 +172,7 @@ async def get_path_local_valid(self, **kwargs) -> None: get_path_local_valid.metadata = {"url": "/azurespecials/apiVersion/path/string/none/query/local/2.0"} # type: ignore @distributed_trace_async - async def get_swagger_local_valid(self, **kwargs) -> None: + async def get_swagger_local_valid(self, **kwargs: Any) -> None: """Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py index a31150a80ab..479a862fc57 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_header_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def custom_named_request_id(self, foo_client_request_id: str, **kwargs) -> None: + async def custom_named_request_id(self, foo_client_request_id: str, **kwargs: Any) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request. :param foo_client_request_id: The fooRequestId. @@ -98,7 +98,7 @@ async def custom_named_request_id(self, foo_client_request_id: str, **kwargs) -> async def custom_named_request_id_param_grouping( self, header_custom_named_request_id_param_grouping_parameters: "_models.HeaderCustomNamedRequestIdParamGroupingParameters", - **kwargs + **kwargs: Any ) -> None: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request, via a parameter group. @@ -150,7 +150,7 @@ async def custom_named_request_id_param_grouping( custom_named_request_id_param_grouping.metadata = {"url": "/azurespecials/customNamedRequestIdParamGrouping"} # type: ignore @distributed_trace_async - async def custom_named_request_id_head(self, foo_client_request_id: str, **kwargs) -> bool: + async def custom_named_request_id_head(self, foo_client_request_id: str, **kwargs: Any) -> bool: """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request. :param foo_client_request_id: The fooRequestId. diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py index cf4787bfab6..cfb418eb430 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_odata_operations.py @@ -50,7 +50,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: @distributed_trace_async async def get_with_filter( - self, filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, **kwargs + self, filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, **kwargs: Any ) -> None: """Specify filter parameter with value '$filter=id gt 5 and name eq 'foo'&$orderby=id&$top=10'. diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py index 883a08f20ba..9eb4efc2742 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_skip_url_encoding_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_method_path_valid(self, unencoded_path_param: str, **kwargs) -> None: + async def get_method_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None: """Get method with unencoded path parameter with value 'path1/path2/path3'. :param unencoded_path_param: Unencoded path parameter with value 'path1/path2/path3'. @@ -95,7 +95,7 @@ async def get_method_path_valid(self, unencoded_path_param: str, **kwargs) -> No get_method_path_valid.metadata = {"url": "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}"} # type: ignore @distributed_trace_async - async def get_path_valid(self, unencoded_path_param: str, **kwargs) -> None: + async def get_path_valid(self, unencoded_path_param: str, **kwargs: Any) -> None: """Get method with unencoded path parameter with value 'path1/path2/path3'. :param unencoded_path_param: Unencoded path parameter with value 'path1/path2/path3'. @@ -141,7 +141,7 @@ async def get_path_valid(self, unencoded_path_param: str, **kwargs) -> None: get_path_valid.metadata = {"url": "/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}"} # type: ignore @distributed_trace_async - async def get_swagger_path_valid(self, **kwargs) -> None: + async def get_swagger_path_valid(self, **kwargs: Any) -> None: """Get method with unencoded path parameter with value 'path1/path2/path3'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -186,7 +186,7 @@ async def get_swagger_path_valid(self, **kwargs) -> None: get_swagger_path_valid.metadata = {"url": "/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}"} # type: ignore @distributed_trace_async - async def get_method_query_valid(self, q1: str, **kwargs) -> None: + async def get_method_query_valid(self, q1: str, **kwargs: Any) -> None: """Get method with unencoded query parameter with value 'value1&q2=value2&q3=value3'. :param q1: Unencoded query parameter with value 'value1&q2=value2&q3=value3'. @@ -227,7 +227,7 @@ async def get_method_query_valid(self, q1: str, **kwargs) -> None: get_method_query_valid.metadata = {"url": "/azurespecials/skipUrlEncoding/method/query/valid"} # type: ignore @distributed_trace_async - async def get_method_query_null(self, q1: Optional[str] = None, **kwargs) -> None: + async def get_method_query_null(self, q1: Optional[str] = None, **kwargs: Any) -> None: """Get method with unencoded query parameter with value null. :param q1: Unencoded query parameter with value null. @@ -269,7 +269,7 @@ async def get_method_query_null(self, q1: Optional[str] = None, **kwargs) -> Non get_method_query_null.metadata = {"url": "/azurespecials/skipUrlEncoding/method/query/null"} # type: ignore @distributed_trace_async - async def get_path_query_valid(self, q1: str, **kwargs) -> None: + async def get_path_query_valid(self, q1: str, **kwargs: Any) -> None: """Get method with unencoded query parameter with value 'value1&q2=value2&q3=value3'. :param q1: Unencoded query parameter with value 'value1&q2=value2&q3=value3'. @@ -310,7 +310,7 @@ async def get_path_query_valid(self, q1: str, **kwargs) -> None: get_path_query_valid.metadata = {"url": "/azurespecials/skipUrlEncoding/path/query/valid"} # type: ignore @distributed_trace_async - async def get_swagger_query_valid(self, **kwargs) -> None: + async def get_swagger_query_valid(self, **kwargs: Any) -> None: """Get method with unencoded query parameter with value 'value1&q2=value2&q3=value3'. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py index 43cecb7f2a9..b7c3dcab16b 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_credentials_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def post_method_global_valid(self, **kwargs) -> None: + async def post_method_global_valid(self, **kwargs: Any) -> None: """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed. @@ -92,7 +92,7 @@ async def post_method_global_valid(self, **kwargs) -> None: post_method_global_valid.metadata = {"url": "/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_method_global_null(self, **kwargs) -> None: + async def post_method_global_null(self, **kwargs: Any) -> None: """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to null, and client-side validation should prevent you from making this call. @@ -135,7 +135,7 @@ async def post_method_global_null(self, **kwargs) -> None: post_method_global_null.metadata = {"url": "/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_method_global_not_provided_valid(self, **kwargs) -> None: + async def post_method_global_not_provided_valid(self, **kwargs: Any) -> None: """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed. @@ -180,7 +180,7 @@ async def post_method_global_not_provided_valid(self, **kwargs) -> None: post_method_global_not_provided_valid.metadata = {"url": "/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_path_global_valid(self, **kwargs) -> None: + async def post_path_global_valid(self, **kwargs: Any) -> None: """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed. @@ -223,7 +223,7 @@ async def post_path_global_valid(self, **kwargs) -> None: post_path_global_valid.metadata = {"url": "/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_swagger_global_valid(self, **kwargs) -> None: + async def post_swagger_global_valid(self, **kwargs: Any) -> None: """POST method with subscriptionId modeled in credentials. Set the credential subscriptionId to '1234-5678-9012-3456' to succeed. diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py index ec5d4c17e38..f357df9225d 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_subscription_in_method_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def post_method_local_valid(self, subscription_id: str, **kwargs) -> None: + async def post_method_local_valid(self, subscription_id: str, **kwargs: Any) -> None: """POST method with subscriptionId modeled in the method. pass in subscription id = '1234-5678-9012-3456' to succeed. @@ -95,7 +95,7 @@ async def post_method_local_valid(self, subscription_id: str, **kwargs) -> None: post_method_local_valid.metadata = {"url": "/azurespecials/subscriptionId/method/string/none/path/local/1234-5678-9012-3456/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_method_local_null(self, subscription_id: str, **kwargs) -> None: + async def post_method_local_null(self, subscription_id: str, **kwargs: Any) -> None: """POST method with subscriptionId modeled in the method. pass in subscription id = null, client-side validation should prevent you from making this call. @@ -141,7 +141,7 @@ async def post_method_local_null(self, subscription_id: str, **kwargs) -> None: post_method_local_null.metadata = {"url": "/azurespecials/subscriptionId/method/string/none/path/local/null/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_path_local_valid(self, subscription_id: str, **kwargs) -> None: + async def post_path_local_valid(self, subscription_id: str, **kwargs: Any) -> None: """POST method with subscriptionId modeled in the method. pass in subscription id = '1234-5678-9012-3456' to succeed. @@ -186,7 +186,7 @@ async def post_path_local_valid(self, subscription_id: str, **kwargs) -> None: post_path_local_valid.metadata = {"url": "/azurespecials/subscriptionId/path/string/none/path/local/1234-5678-9012-3456/{subscriptionId}"} # type: ignore @distributed_trace_async - async def post_swagger_local_valid(self, subscription_id: str, **kwargs) -> None: + async def post_swagger_local_valid(self, subscription_id: str, **kwargs: Any) -> None: """POST method with subscriptionId modeled in the method. pass in subscription id = '1234-5678-9012-3456' to succeed. diff --git a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py index ca9b920a367..fed0b6efe3c 100644 --- a/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py +++ b/test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations/_xms_client_request_id_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get(self, **kwargs) -> None: + async def get(self, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. @@ -85,7 +85,7 @@ async def get(self, **kwargs) -> None: get.metadata = {"url": "/azurespecials/overwrite/x-ms-client-request-id/method/"} # type: ignore @distributed_trace_async - async def param_get(self, x_ms_client_request_id: str, **kwargs) -> None: + async def param_get(self, x_ms_client_request_id: str, **kwargs: Any) -> None: """Get method that overwrites x-ms-client-request header with value 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. diff --git a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index abb7ece7162..8d9a7bf9f65 100644 --- a/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py +++ b/test/azure/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_empty(self, account_name: str, **kwargs) -> None: + async def get_empty(self, account_name: str, **kwargs: Any) -> None: """Get a 200 to test a valid base uri. :param account_name: Account Name. diff --git a/test/azure/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py b/test/azure/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py index dd05822f8ae..7846894163d 100644 --- a/test/azure/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py +++ b/test/azure/Expected/AcceptanceTests/CustomPollerPager/custompollerpager/aio/operations/_paging_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def get_no_item_name_pages( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResultValue"]: """A paging operation that must return result of the default 'value' node. @@ -106,7 +106,7 @@ async def get_next(next_link=None): def get_null_next_link_name_pages( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that must ignore any kind of nextLink, and stop after page 1. @@ -166,7 +166,7 @@ async def get_next(next_link=None): def get_single_pages( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that finishes on the first call without a nextlink. @@ -226,7 +226,7 @@ async def get_next(next_link=None): def first_response_empty( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResultValue"]: """A paging operation whose first response's items list is empty, but still returns a next link. Second (and final) call, will give you an items list of 1. @@ -289,7 +289,7 @@ def get_multiple_pages( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_options: Optional["_models.PagingGetMultiplePagesOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages. @@ -366,7 +366,7 @@ async def get_next(next_link=None): def get_with_query_params( self, required_query_parameter: int, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a next operation. It has a different query parameter from it's next operation nextOperationWithQueryParams. Returns a ProductResult. @@ -438,7 +438,7 @@ def get_odata_multiple_pages( self, client_request_id: Optional[str] = None, paging_get_odata_multiple_pages_options: Optional["_models.PagingGetOdataMultiplePagesOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that includes a nextLink in odata format that has 10 pages. @@ -516,7 +516,7 @@ def get_multiple_pages_with_offset( self, paging_get_multiple_pages_with_offset_options: "_models.PagingGetMultiplePagesWithOffsetOptions", client_request_id: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages. @@ -598,7 +598,7 @@ async def get_next(next_link=None): def get_multiple_pages_retry_first( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that fails on the first call with 500 and then retries and then get a response including a nextLink that has 10 pages. @@ -659,7 +659,7 @@ async def get_next(next_link=None): def get_multiple_pages_retry_second( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails first with 500. The client should retry and finish all 10 pages eventually. @@ -720,7 +720,7 @@ async def get_next(next_link=None): def get_single_pages_failure( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives a 400 on the first call. @@ -780,7 +780,7 @@ async def get_next(next_link=None): def get_multiple_pages_failure( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives a 400 on the second call. @@ -840,7 +840,7 @@ async def get_next(next_link=None): def get_multiple_pages_failure_uri( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives an invalid nextLink. @@ -902,7 +902,7 @@ def get_multiple_pages_fragment_next_link( self, api_version: str, tenant: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that doesn't return a full URL, just a fragment. @@ -980,7 +980,7 @@ async def get_next(next_link=None): def get_multiple_pages_fragment_with_grouping_next_link( self, custom_parameter_group: "_models.CustomParameterGroup", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that doesn't return a full URL, just a fragment with parameters grouped. @@ -1063,7 +1063,7 @@ async def _get_multiple_pages_lro_initial( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_lro_options: Optional["_models.PagingGetMultiplePagesLroOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ProductResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.ProductResult"] error_map = { @@ -1114,7 +1114,7 @@ async def begin_get_multiple_pages_lro( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_lro_options: Optional["_models.PagingGetMultiplePagesLroOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncCustomPoller[AsyncItemPaged["_models.ProductResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -1231,7 +1231,7 @@ async def internal_get_next(next_link=None): def get_paging_model_with_item_name_with_xms_client_name( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResultValueWithXMSClientName"]: """A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. diff --git a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py index e3a33aa8cfe..310e50de043 100644 --- a/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py +++ b/test/azure/Expected/AcceptanceTests/CustomUrlPaging/custombaseurlpaging/aio/operations/_paging_operations.py @@ -50,7 +50,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace - def get_pages_partial_url(self, account_name: str, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_pages_partial_url(self, account_name: str, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that combines custom url, paging and partial URL and expect to concat after host. @@ -118,7 +118,9 @@ async def get_next(next_link=None): get_pages_partial_url.metadata = {"url": "/paging/customurl/partialnextlink"} # type: ignore @distributed_trace - def get_pages_partial_url_operation(self, account_name: str, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_pages_partial_url_operation( + self, account_name: str, **kwargs: Any + ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that combines custom url, paging and partial URL with next operation. :param account_name: Account Name. diff --git a/test/azure/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py b/test/azure/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py index f6119d9a440..e0c14e69a48 100644 --- a/test/azure/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py +++ b/test/azure/Expected/AcceptanceTests/Head/head/aio/operations/_http_success_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head200(self, **kwargs) -> bool: + async def head200(self, **kwargs: Any) -> bool: """Return 200 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -80,7 +80,7 @@ async def head200(self, **kwargs) -> bool: head200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def head204(self, **kwargs) -> bool: + async def head204(self, **kwargs: Any) -> bool: """Return 204 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -117,7 +117,7 @@ async def head204(self, **kwargs) -> bool: head204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def head404(self, **kwargs) -> bool: + async def head404(self, **kwargs: Any) -> bool: """Return 404 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py index d8f3ca747b0..d62346f6af6 100644 --- a/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py +++ b/test/azure/Expected/AcceptanceTests/HeadExceptions/headexceptions/aio/operations/_head_exception_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head200(self, **kwargs) -> bool: + async def head200(self, **kwargs: Any) -> bool: """Return 200 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -80,7 +80,7 @@ async def head200(self, **kwargs) -> bool: head200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def head204(self, **kwargs) -> bool: + async def head204(self, **kwargs: Any) -> bool: """Return 204 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -117,7 +117,7 @@ async def head204(self, **kwargs) -> bool: head204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def head404(self, **kwargs) -> bool: + async def head404(self, **kwargs: Any) -> bool: """Return 404 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py index f6119d9a440..e0c14e69a48 100644 --- a/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py +++ b/test/azure/Expected/AcceptanceTests/HeadWithAzureKeyCredentialPolicy/headwithazurekeycredentialpolicy/aio/operations/_http_success_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head200(self, **kwargs) -> bool: + async def head200(self, **kwargs: Any) -> bool: """Return 200 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -80,7 +80,7 @@ async def head200(self, **kwargs) -> bool: head200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def head204(self, **kwargs) -> bool: + async def head204(self, **kwargs: Any) -> bool: """Return 204 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -117,7 +117,7 @@ async def head204(self, **kwargs) -> bool: head204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def head404(self, **kwargs) -> bool: + async def head404(self, **kwargs: Any) -> bool: """Return 404 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py index ed974fa5cf4..6b71ee784f1 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lr_os_custom_header_operations.py @@ -51,7 +51,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config async def _put_async_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -101,7 +101,7 @@ async def _put_async_retry_succeeded_initial( @distributed_trace_async async def begin_put_async_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running put request, service returns a 200 to the initial request, with an @@ -163,7 +163,7 @@ def get_long_running_output(pipeline_response): begin_put_async_retry_succeeded.metadata = {"url": "/lro/customheader/putasync/retry/succeeded"} # type: ignore async def _put201_creating_succeeded200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -211,7 +211,7 @@ async def _put201_creating_succeeded200_initial( @distributed_trace_async async def begin_put201_creating_succeeded200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running put request, service returns a 201 to the initial request, with an @@ -267,7 +267,7 @@ def get_long_running_output(pipeline_response): begin_put201_creating_succeeded200.metadata = {"url": "/lro/customheader/put/201/creating/succeeded/200"} # type: ignore - async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -310,7 +310,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = @distributed_trace_async async def begin_post202_retry200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running post request, service returns a 202 to the initial request, with @@ -360,7 +360,9 @@ def get_long_running_output(pipeline_response): begin_post202_retry200.metadata = {"url": "/lro/customheader/post/202/retry/200"} # type: ignore - async def _post_async_retry_succeeded_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post_async_retry_succeeded_initial( + self, product: Optional["_models.Product"] = None, **kwargs: Any + ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -406,7 +408,7 @@ async def _post_async_retry_succeeded_initial(self, product: Optional["_models.P @distributed_trace_async async def begin_post_async_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running post request, service returns a 202 to the initial request, with an diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py index 00d10e62943..dea230bc6c3 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lro_retrys_operations.py @@ -51,7 +51,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config async def _put201_creating_succeeded200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -99,7 +99,7 @@ async def _put201_creating_succeeded200_initial( @distributed_trace_async async def begin_put201_creating_succeeded200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 500, then a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll @@ -155,7 +155,7 @@ def get_long_running_output(pipeline_response): begin_put201_creating_succeeded200.metadata = {"url": "/lro/retryerror/put/201/creating/succeeded/200"} # type: ignore async def _put_async_relative_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -205,7 +205,7 @@ async def _put_async_relative_retry_succeeded_initial( @distributed_trace_async async def begin_put_async_relative_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 500, then a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the @@ -267,7 +267,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/putasync/retry/succeeded"} # type: ignore - async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs) -> "_models.Product": + async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -308,7 +308,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs) _delete_provisioning202_accepted200_succeeded_initial.metadata = {"url": "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete_provisioning202_accepted200_succeeded(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete_provisioning202_accepted200_succeeded( + self, **kwargs: Any + ) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 500, then a 202 to the initial request, with an entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -360,7 +362,7 @@ def get_long_running_output(pipeline_response): begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/retryerror/delete/provisioning/202/accepted/200/succeeded"} # type: ignore - async def _delete202_retry200_initial(self, **kwargs) -> None: + async def _delete202_retry200_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -394,7 +396,7 @@ async def _delete202_retry200_initial(self, **kwargs) -> None: _delete202_retry200_initial.metadata = {"url": "/lro/retryerror/delete/202/retry/200"} # type: ignore @distributed_trace_async - async def begin_delete202_retry200(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -440,7 +442,7 @@ def get_long_running_output(pipeline_response): begin_delete202_retry200.metadata = {"url": "/lro/retryerror/delete/202/retry/200"} # type: ignore - async def _delete_async_relative_retry_succeeded_initial(self, **kwargs) -> None: + async def _delete_async_relative_retry_succeeded_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -477,7 +479,7 @@ async def _delete_async_relative_retry_succeeded_initial(self, **kwargs) -> None _delete_async_relative_retry_succeeded_initial.metadata = {"url": "/lro/retryerror/deleteasync/retry/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete_async_relative_retry_succeeded(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_relative_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 500, then a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -523,7 +525,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_relative_retry_succeeded.metadata = {"url": "/lro/retryerror/deleteasync/retry/succeeded"} # type: ignore - async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -566,7 +568,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = @distributed_trace_async async def begin_post202_retry200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. @@ -616,7 +618,7 @@ def get_long_running_output(pipeline_response): begin_post202_retry200.metadata = {"url": "/lro/retryerror/post/202/retry/200"} # type: ignore async def _post_async_relative_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -663,7 +665,7 @@ async def _post_async_relative_retry_succeeded_initial( @distributed_trace_async async def begin_post_async_relative_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 500, then a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py index 88e7c7f5112..f1e8a4c7afb 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lros_operations.py @@ -51,7 +51,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config async def _put200_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -97,7 +97,7 @@ async def _put200_succeeded_initial( @distributed_trace_async async def begin_put200_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Succeeded’. @@ -150,7 +150,7 @@ def get_long_running_output(pipeline_response): begin_put200_succeeded.metadata = {"url": "/lro/put/200/succeeded"} # type: ignore async def _put201_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -194,7 +194,7 @@ async def _put201_succeeded_initial( @distributed_trace_async async def begin_put201_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Succeeded’. @@ -246,7 +246,7 @@ def get_long_running_output(pipeline_response): begin_put201_succeeded.metadata = {"url": "/lro/put/201/succeeded"} # type: ignore - async def _post202_list_initial(self, **kwargs) -> Optional[List["_models.Product"]]: + async def _post202_list_initial(self, **kwargs: Any) -> Optional[List["_models.Product"]]: cls = kwargs.pop("cls", None) # type: ClsType[Optional[List["_models.Product"]]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -289,7 +289,7 @@ async def _post202_list_initial(self, **kwargs) -> Optional[List["_models.Produc _post202_list_initial.metadata = {"url": "/lro/list"} # type: ignore @distributed_trace_async - async def begin_post202_list(self, **kwargs) -> AsyncLROPoller[List["_models.Product"]]: + async def begin_post202_list(self, **kwargs: Any) -> AsyncLROPoller[List["_models.Product"]]: """Long running put request, service returns a 202 with empty body to first request, returns a 200 with body [{ 'id': '100', 'name': 'foo' }]. @@ -339,7 +339,7 @@ def get_long_running_output(pipeline_response): begin_post202_list.metadata = {"url": "/lro/list"} # type: ignore async def _put200_succeeded_no_state_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -383,7 +383,7 @@ async def _put200_succeeded_no_state_initial( @distributed_trace_async async def begin_put200_succeeded_no_state( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that does not contain ProvisioningState=’Succeeded’. @@ -436,7 +436,7 @@ def get_long_running_output(pipeline_response): begin_put200_succeeded_no_state.metadata = {"url": "/lro/put/200/succeeded/nostate"} # type: ignore async def _put202_retry200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -480,7 +480,7 @@ async def _put202_retry200_initial( @distributed_trace_async async def begin_put202_retry200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 202 to the initial request, with a location header that points to a polling URL that returns a 200 and an entity that doesn't contains @@ -534,7 +534,7 @@ def get_long_running_output(pipeline_response): begin_put202_retry200.metadata = {"url": "/lro/put/202/retry/200"} # type: ignore async def _put201_creating_succeeded200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -582,7 +582,7 @@ async def _put201_creating_succeeded200_initial( @distributed_trace_async async def begin_put201_creating_succeeded200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a @@ -638,7 +638,7 @@ def get_long_running_output(pipeline_response): begin_put201_creating_succeeded200.metadata = {"url": "/lro/put/201/creating/succeeded/200"} # type: ignore async def _put200_updating_succeeded204_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -682,7 +682,7 @@ async def _put200_updating_succeeded204_initial( @distributed_trace_async async def begin_put200_updating_succeeded204( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a @@ -738,7 +738,7 @@ def get_long_running_output(pipeline_response): begin_put200_updating_succeeded204.metadata = {"url": "/lro/put/200/updating/succeeded/200"} # type: ignore async def _put201_creating_failed200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -786,7 +786,7 @@ async def _put201_creating_failed200_initial( @distributed_trace_async async def begin_put201_creating_failed200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Created’. Polls return this value until the last poll returns a @@ -840,7 +840,7 @@ def get_long_running_output(pipeline_response): begin_put201_creating_failed200.metadata = {"url": "/lro/put/201/created/failed/200"} # type: ignore async def _put200_acceptedcanceled200_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -884,7 +884,7 @@ async def _put200_acceptedcanceled200_initial( @distributed_trace_async async def begin_put200_acceptedcanceled200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a @@ -940,7 +940,7 @@ def get_long_running_output(pipeline_response): begin_put200_acceptedcanceled200.metadata = {"url": "/lro/put/200/accepted/canceled/200"} # type: ignore async def _put_no_header_in_retry_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -986,7 +986,7 @@ async def _put_no_header_in_retry_initial( @distributed_trace_async async def begin_put_no_header_in_retry( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 202 to the initial request with location header. Subsequent calls to operation status do not contain location header. @@ -1042,7 +1042,7 @@ def get_long_running_output(pipeline_response): begin_put_no_header_in_retry.metadata = {"url": "/lro/put/noheader/202/200"} # type: ignore async def _put_async_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1092,7 +1092,7 @@ async def _put_async_retry_succeeded_initial( @distributed_trace_async async def begin_put_async_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1153,7 +1153,7 @@ def get_long_running_output(pipeline_response): begin_put_async_retry_succeeded.metadata = {"url": "/lro/putasync/retry/succeeded"} # type: ignore async def _put_async_no_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1202,7 +1202,7 @@ async def _put_async_no_retry_succeeded_initial( @distributed_trace_async async def begin_put_async_no_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1264,7 +1264,7 @@ def get_long_running_output(pipeline_response): begin_put_async_no_retry_succeeded.metadata = {"url": "/lro/putasync/noretry/succeeded"} # type: ignore async def _put_async_retry_failed_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1314,7 +1314,7 @@ async def _put_async_retry_failed_initial( @distributed_trace_async async def begin_put_async_retry_failed( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1375,7 +1375,7 @@ def get_long_running_output(pipeline_response): begin_put_async_retry_failed.metadata = {"url": "/lro/putasync/retry/failed"} # type: ignore async def _put_async_no_retrycanceled_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1424,7 +1424,7 @@ async def _put_async_no_retrycanceled_initial( @distributed_trace_async async def begin_put_async_no_retrycanceled( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1486,7 +1486,7 @@ def get_long_running_output(pipeline_response): begin_put_async_no_retrycanceled.metadata = {"url": "/lro/putasync/noretry/canceled"} # type: ignore async def _put_async_no_header_in_retry_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1534,7 +1534,7 @@ async def _put_async_no_header_in_retry_initial( @distributed_trace_async async def begin_put_async_no_header_in_retry( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 202 to the initial request with Azure-AsyncOperation header. Subsequent calls to operation status do not contain @@ -1594,7 +1594,7 @@ def get_long_running_output(pipeline_response): begin_put_async_no_header_in_retry.metadata = {"url": "/lro/putasync/noheader/201/200"} # type: ignore - async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, **kwargs) -> "_models.Sku": + async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> "_models.Sku": cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -1637,7 +1637,7 @@ async def _put_non_resource_initial(self, sku: Optional["_models.Sku"] = None, * @distributed_trace_async async def begin_put_non_resource( - self, sku: Optional["_models.Sku"] = None, **kwargs + self, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Sku"]: """Long running put request with non resource. @@ -1688,7 +1688,9 @@ def get_long_running_output(pipeline_response): begin_put_non_resource.metadata = {"url": "/lro/putnonresource/202/200"} # type: ignore - async def _put_async_non_resource_initial(self, sku: Optional["_models.Sku"] = None, **kwargs) -> "_models.Sku": + async def _put_async_non_resource_initial( + self, sku: Optional["_models.Sku"] = None, **kwargs: Any + ) -> "_models.Sku": cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -1731,7 +1733,7 @@ async def _put_async_non_resource_initial(self, sku: Optional["_models.Sku"] = N @distributed_trace_async async def begin_put_async_non_resource( - self, sku: Optional["_models.Sku"] = None, **kwargs + self, sku: Optional["_models.Sku"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Sku"]: """Long running put request with non resource. @@ -1783,7 +1785,7 @@ def get_long_running_output(pipeline_response): begin_put_async_non_resource.metadata = {"url": "/lro/putnonresourceasync/202/200"} # type: ignore async def _put_sub_resource_initial( - self, provisioning_state: Optional[str] = None, **kwargs + self, provisioning_state: Optional[str] = None, **kwargs: Any ) -> "_models.SubProduct": cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1829,7 +1831,7 @@ async def _put_sub_resource_initial( @distributed_trace_async async def begin_put_sub_resource( - self, provisioning_state: Optional[str] = None, **kwargs + self, provisioning_state: Optional[str] = None, **kwargs: Any ) -> AsyncLROPoller["_models.SubProduct"]: """Long running put request with sub resource. @@ -1883,7 +1885,7 @@ def get_long_running_output(pipeline_response): begin_put_sub_resource.metadata = {"url": "/lro/putsubresource/202/200"} # type: ignore async def _put_async_sub_resource_initial( - self, provisioning_state: Optional[str] = None, **kwargs + self, provisioning_state: Optional[str] = None, **kwargs: Any ) -> "_models.SubProduct": cls = kwargs.pop("cls", None) # type: ClsType["_models.SubProduct"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1929,7 +1931,7 @@ async def _put_async_sub_resource_initial( @distributed_trace_async async def begin_put_async_sub_resource( - self, provisioning_state: Optional[str] = None, **kwargs + self, provisioning_state: Optional[str] = None, **kwargs: Any ) -> AsyncLROPoller["_models.SubProduct"]: """Long running put request with sub resource. @@ -1982,7 +1984,7 @@ def get_long_running_output(pipeline_response): begin_put_async_sub_resource.metadata = {"url": "/lro/putsubresourceasync/202/200"} # type: ignore - async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs) -> "_models.Product": + async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2023,7 +2025,9 @@ async def _delete_provisioning202_accepted200_succeeded_initial(self, **kwargs) _delete_provisioning202_accepted200_succeeded_initial.metadata = {"url": "/lro/delete/provisioning/202/accepted/200/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete_provisioning202_accepted200_succeeded(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete_provisioning202_accepted200_succeeded( + self, **kwargs: Any + ) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -2075,7 +2079,7 @@ def get_long_running_output(pipeline_response): begin_delete_provisioning202_accepted200_succeeded.metadata = {"url": "/lro/delete/provisioning/202/accepted/200/succeeded"} # type: ignore - async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs) -> "_models.Product": + async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2116,7 +2120,7 @@ async def _delete_provisioning202_deleting_failed200_initial(self, **kwargs) -> _delete_provisioning202_deleting_failed200_initial.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/failed"} # type: ignore @distributed_trace_async - async def begin_delete_provisioning202_deleting_failed200(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete_provisioning202_deleting_failed200(self, **kwargs: Any) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Failed’. @@ -2166,7 +2170,7 @@ def get_long_running_output(pipeline_response): begin_delete_provisioning202_deleting_failed200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/failed"} # type: ignore - async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs) -> "_models.Product": + async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2207,7 +2211,9 @@ async def _delete_provisioning202_deletingcanceled200_initial(self, **kwargs) -> _delete_provisioning202_deletingcanceled200_initial.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/canceled"} # type: ignore @distributed_trace_async - async def begin_delete_provisioning202_deletingcanceled200(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete_provisioning202_deletingcanceled200( + self, **kwargs: Any + ) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’. @@ -2257,7 +2263,7 @@ def get_long_running_output(pipeline_response): begin_delete_provisioning202_deletingcanceled200.metadata = {"url": "/lro/delete/provisioning/202/deleting/200/canceled"} # type: ignore - async def _delete204_succeeded_initial(self, **kwargs) -> None: + async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2287,7 +2293,7 @@ async def _delete204_succeeded_initial(self, **kwargs) -> None: _delete204_succeeded_initial.metadata = {"url": "/lro/delete/204/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete204_succeeded(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete204_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete succeeds and returns right away. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2332,7 +2338,7 @@ def get_long_running_output(pipeline_response): begin_delete204_succeeded.metadata = {"url": "/lro/delete/204/succeeded"} # type: ignore - async def _delete202_retry200_initial(self, **kwargs) -> Optional["_models.Product"]: + async def _delete202_retry200_initial(self, **kwargs: Any) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2373,7 +2379,7 @@ async def _delete202_retry200_initial(self, **kwargs) -> Optional["_models.Produ _delete202_retry200_initial.metadata = {"url": "/lro/delete/202/retry/200"} # type: ignore @distributed_trace_async - async def begin_delete202_retry200(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete202_retry200(self, **kwargs: Any) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 202 to the initial request. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -2422,7 +2428,7 @@ def get_long_running_output(pipeline_response): begin_delete202_retry200.metadata = {"url": "/lro/delete/202/retry/200"} # type: ignore - async def _delete202_no_retry204_initial(self, **kwargs) -> Optional["_models.Product"]: + async def _delete202_no_retry204_initial(self, **kwargs: Any) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2463,7 +2469,7 @@ async def _delete202_no_retry204_initial(self, **kwargs) -> Optional["_models.Pr _delete202_no_retry204_initial.metadata = {"url": "/lro/delete/202/noretry/204"} # type: ignore @distributed_trace_async - async def begin_delete202_no_retry204(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_delete202_no_retry204(self, **kwargs: Any) -> AsyncLROPoller["_models.Product"]: """Long running delete request, service returns a 202 to the initial request. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -2512,7 +2518,7 @@ def get_long_running_output(pipeline_response): begin_delete202_no_retry204.metadata = {"url": "/lro/delete/202/noretry/204"} # type: ignore - async def _delete_no_header_in_retry_initial(self, **kwargs) -> None: + async def _delete_no_header_in_retry_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2546,7 +2552,7 @@ async def _delete_no_header_in_retry_initial(self, **kwargs) -> None: _delete_no_header_in_retry_initial.metadata = {"url": "/lro/delete/noheader"} # type: ignore @distributed_trace_async - async def begin_delete_no_header_in_retry(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a location header in the initial request. Subsequent calls to operation status do not contain location header. @@ -2592,7 +2598,7 @@ def get_long_running_output(pipeline_response): begin_delete_no_header_in_retry.metadata = {"url": "/lro/delete/noheader"} # type: ignore - async def _delete_async_no_header_in_retry_initial(self, **kwargs) -> None: + async def _delete_async_no_header_in_retry_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2626,7 +2632,7 @@ async def _delete_async_no_header_in_retry_initial(self, **kwargs) -> None: _delete_async_no_header_in_retry_initial.metadata = {"url": "/lro/deleteasync/noheader/202/204"} # type: ignore @distributed_trace_async - async def begin_delete_async_no_header_in_retry(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_no_header_in_retry(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns an Azure-AsyncOperation header in the initial request. Subsequent calls to operation status do not contain Azure-AsyncOperation header. @@ -2672,7 +2678,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_no_header_in_retry.metadata = {"url": "/lro/deleteasync/noheader/202/204"} # type: ignore - async def _delete_async_retry_succeeded_initial(self, **kwargs) -> None: + async def _delete_async_retry_succeeded_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2709,7 +2715,7 @@ async def _delete_async_retry_succeeded_initial(self, **kwargs) -> None: _delete_async_retry_succeeded_initial.metadata = {"url": "/lro/deleteasync/retry/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete_async_retry_succeeded(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -2755,7 +2761,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_retry_succeeded.metadata = {"url": "/lro/deleteasync/retry/succeeded"} # type: ignore - async def _delete_async_no_retry_succeeded_initial(self, **kwargs) -> None: + async def _delete_async_no_retry_succeeded_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2792,7 +2798,7 @@ async def _delete_async_no_retry_succeeded_initial(self, **kwargs) -> None: _delete_async_no_retry_succeeded_initial.metadata = {"url": "/lro/deleteasync/noretry/succeeded"} # type: ignore @distributed_trace_async - async def begin_delete_async_no_retry_succeeded(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_no_retry_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -2838,7 +2844,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_no_retry_succeeded.metadata = {"url": "/lro/deleteasync/noretry/succeeded"} # type: ignore - async def _delete_async_retry_failed_initial(self, **kwargs) -> None: + async def _delete_async_retry_failed_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2875,7 +2881,7 @@ async def _delete_async_retry_failed_initial(self, **kwargs) -> None: _delete_async_retry_failed_initial.metadata = {"url": "/lro/deleteasync/retry/failed"} # type: ignore @distributed_trace_async - async def begin_delete_async_retry_failed(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_retry_failed(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -2921,7 +2927,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_retry_failed.metadata = {"url": "/lro/deleteasync/retry/failed"} # type: ignore - async def _delete_async_retrycanceled_initial(self, **kwargs) -> None: + async def _delete_async_retrycanceled_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2958,7 +2964,7 @@ async def _delete_async_retrycanceled_initial(self, **kwargs) -> None: _delete_async_retrycanceled_initial.metadata = {"url": "/lro/deleteasync/retry/canceled"} # type: ignore @distributed_trace_async - async def begin_delete_async_retrycanceled(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_retrycanceled(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -3004,7 +3010,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_retrycanceled.metadata = {"url": "/lro/deleteasync/retry/canceled"} # type: ignore - async def _post200_with_payload_initial(self, **kwargs) -> "_models.Sku": + async def _post200_with_payload_initial(self, **kwargs: Any) -> "_models.Sku": cls = kwargs.pop("cls", None) # type: ClsType["_models.Sku"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3042,7 +3048,7 @@ async def _post200_with_payload_initial(self, **kwargs) -> "_models.Sku": _post200_with_payload_initial.metadata = {"url": "/lro/post/payload/200"} # type: ignore @distributed_trace_async - async def begin_post200_with_payload(self, **kwargs) -> AsyncLROPoller["_models.Sku"]: + async def begin_post200_with_payload(self, **kwargs: Any) -> AsyncLROPoller["_models.Sku"]: """Long running post request, service returns a 202 to the initial request, with 'Location' header. Poll returns a 200 with a response body after success. @@ -3091,7 +3097,7 @@ def get_long_running_output(pipeline_response): begin_post200_with_payload.metadata = {"url": "/lro/post/payload/200"} # type: ignore - async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post202_retry200_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3134,7 +3140,7 @@ async def _post202_retry200_initial(self, product: Optional["_models.Product"] = @distributed_trace_async async def begin_post202_retry200( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. @@ -3184,7 +3190,7 @@ def get_long_running_output(pipeline_response): begin_post202_retry200.metadata = {"url": "/lro/post/202/retry/200"} # type: ignore async def _post202_no_retry204_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -3231,7 +3237,7 @@ async def _post202_no_retry204_initial( @distributed_trace_async async def begin_post202_no_retry204( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request, with 'Location' header, 204 with noresponse body after success. @@ -3287,7 +3293,7 @@ def get_long_running_output(pipeline_response): begin_post202_no_retry204.metadata = {"url": "/lro/post/202/noretry/204"} # type: ignore - async def _post_double_headers_final_location_get_initial(self, **kwargs) -> "_models.Product": + async def _post_double_headers_final_location_get_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3321,7 +3327,7 @@ async def _post_double_headers_final_location_get_initial(self, **kwargs) -> "_m _post_double_headers_final_location_get_initial.metadata = {"url": "/lro/LROPostDoubleHeadersFinalLocationGet"} # type: ignore @distributed_trace_async - async def begin_post_double_headers_final_location_get(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_post_double_headers_final_location_get(self, **kwargs: Any) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final object. @@ -3371,7 +3377,7 @@ def get_long_running_output(pipeline_response): begin_post_double_headers_final_location_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalLocationGet"} # type: ignore - async def _post_double_headers_final_azure_header_get_initial(self, **kwargs) -> "_models.Product": + async def _post_double_headers_final_azure_header_get_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3405,7 +3411,9 @@ async def _post_double_headers_final_azure_header_get_initial(self, **kwargs) -> _post_double_headers_final_azure_header_get_initial.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGet"} # type: ignore @distributed_trace_async - async def begin_post_double_headers_final_azure_header_get(self, **kwargs) -> AsyncLROPoller["_models.Product"]: + async def begin_post_double_headers_final_azure_header_get( + self, **kwargs: Any + ) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object. @@ -3457,7 +3465,7 @@ def get_long_running_output(pipeline_response): begin_post_double_headers_final_azure_header_get.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGet"} # type: ignore - async def _post_double_headers_final_azure_header_get_default_initial(self, **kwargs) -> "_models.Product": + async def _post_double_headers_final_azure_header_get_default_initial(self, **kwargs: Any) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3492,7 +3500,7 @@ async def _post_double_headers_final_azure_header_get_default_initial(self, **kw @distributed_trace_async async def begin_post_double_headers_final_azure_header_get_default( - self, **kwargs + self, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the @@ -3546,7 +3554,7 @@ def get_long_running_output(pipeline_response): begin_post_double_headers_final_azure_header_get_default.metadata = {"url": "/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault"} # type: ignore async def _post_async_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -3600,7 +3608,7 @@ async def _post_async_retry_succeeded_initial( @distributed_trace_async async def begin_post_async_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -3656,7 +3664,7 @@ def get_long_running_output(pipeline_response): begin_post_async_retry_succeeded.metadata = {"url": "/lro/postasync/retry/succeeded"} # type: ignore async def _post_async_no_retry_succeeded_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -3710,7 +3718,7 @@ async def _post_async_no_retry_succeeded_initial( @distributed_trace_async async def begin_post_async_no_retry_succeeded( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -3765,7 +3773,9 @@ def get_long_running_output(pipeline_response): begin_post_async_no_retry_succeeded.metadata = {"url": "/lro/postasync/noretry/succeeded"} # type: ignore - async def _post_async_retry_failed_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post_async_retry_failed_initial( + self, product: Optional["_models.Product"] = None, **kwargs: Any + ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3811,7 +3821,7 @@ async def _post_async_retry_failed_initial(self, product: Optional["_models.Prod @distributed_trace_async async def begin_post_async_retry_failed( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -3861,7 +3871,9 @@ def get_long_running_output(pipeline_response): begin_post_async_retry_failed.metadata = {"url": "/lro/postasync/retry/failed"} # type: ignore - async def _post_async_retrycanceled_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post_async_retrycanceled_initial( + self, product: Optional["_models.Product"] = None, **kwargs: Any + ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -3907,7 +3919,7 @@ async def _post_async_retrycanceled_initial(self, product: Optional["_models.Pro @distributed_trace_async async def begin_post_async_retrycanceled( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation diff --git a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py index f2e84223fcb..e2a73ea2a2c 100644 --- a/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py +++ b/test/azure/Expected/AcceptanceTests/Lro/lro/aio/operations/_lrosads_operations.py @@ -51,7 +51,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config async def _put_non_retry400_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -99,7 +99,7 @@ async def _put_non_retry400_initial( @distributed_trace_async async def begin_put_non_retry400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 400 to the initial request. @@ -151,7 +151,7 @@ def get_long_running_output(pipeline_response): begin_put_non_retry400.metadata = {"url": "/lro/nonretryerror/put/400"} # type: ignore async def _put_non_retry201_creating400_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -199,7 +199,7 @@ async def _put_non_retry201_creating400_initial( @distributed_trace_async async def begin_put_non_retry201_creating400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and 201 response code. @@ -254,7 +254,7 @@ def get_long_running_output(pipeline_response): begin_put_non_retry201_creating400.metadata = {"url": "/lro/nonretryerror/put/201/creating/400"} # type: ignore async def _put_non_retry201_creating400_invalid_json_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -302,7 +302,7 @@ async def _put_non_retry201_creating400_invalid_json_initial( @distributed_trace_async async def begin_put_non_retry201_creating400_invalid_json( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a Product with 'ProvisioningState' = 'Creating' and 201 response code. @@ -357,7 +357,7 @@ def get_long_running_output(pipeline_response): begin_put_non_retry201_creating400_invalid_json.metadata = {"url": "/lro/nonretryerror/put/201/creating/400/invalidjson"} # type: ignore async def _put_async_relative_retry400_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -407,7 +407,7 @@ async def _put_async_relative_retry400_initial( @distributed_trace_async async def begin_put_async_relative_retry400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 with ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -468,7 +468,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/putasync/retry/400"} # type: ignore - async def _delete_non_retry400_initial(self, **kwargs) -> None: + async def _delete_non_retry400_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -502,7 +502,7 @@ async def _delete_non_retry400_initial(self, **kwargs) -> None: _delete_non_retry400_initial.metadata = {"url": "/lro/nonretryerror/delete/400"} # type: ignore @distributed_trace_async - async def begin_delete_non_retry400(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_non_retry400(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 400 with an error body. :keyword callable cls: A custom type or function that will be passed the direct response @@ -547,7 +547,7 @@ def get_long_running_output(pipeline_response): begin_delete_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/400"} # type: ignore - async def _delete202_non_retry400_initial(self, **kwargs) -> None: + async def _delete202_non_retry400_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -581,7 +581,7 @@ async def _delete202_non_retry400_initial(self, **kwargs) -> None: _delete202_non_retry400_initial.metadata = {"url": "/lro/nonretryerror/delete/202/retry/400"} # type: ignore @distributed_trace_async - async def begin_delete202_non_retry400(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete202_non_retry400(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 with a location header. :keyword callable cls: A custom type or function that will be passed the direct response @@ -626,7 +626,7 @@ def get_long_running_output(pipeline_response): begin_delete202_non_retry400.metadata = {"url": "/lro/nonretryerror/delete/202/retry/400"} # type: ignore - async def _delete_async_relative_retry400_initial(self, **kwargs) -> None: + async def _delete_async_relative_retry400_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -663,7 +663,7 @@ async def _delete_async_relative_retry400_initial(self, **kwargs) -> None: _delete_async_relative_retry400_initial.metadata = {"url": "/lro/nonretryerror/deleteasync/retry/400"} # type: ignore @distributed_trace_async - async def begin_delete_async_relative_retry400(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_relative_retry400(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -709,7 +709,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/deleteasync/retry/400"} # type: ignore - async def _post_non_retry400_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post_non_retry400_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -752,7 +752,7 @@ async def _post_non_retry400_initial(self, product: Optional["_models.Product"] @distributed_trace_async async def begin_post_non_retry400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 400 with no error body. @@ -800,7 +800,7 @@ def get_long_running_output(pipeline_response): begin_post_non_retry400.metadata = {"url": "/lro/nonretryerror/post/400"} # type: ignore - async def _post202_non_retry400_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post202_non_retry400_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -843,7 +843,7 @@ async def _post202_non_retry400_initial(self, product: Optional["_models.Product @distributed_trace_async async def begin_post202_non_retry400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 with a location header. @@ -892,7 +892,7 @@ def get_long_running_output(pipeline_response): begin_post202_non_retry400.metadata = {"url": "/lro/nonretryerror/post/202/retry/400"} # type: ignore async def _post_async_relative_retry400_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -939,7 +939,7 @@ async def _post_async_relative_retry400_initial( @distributed_trace_async async def begin_post_async_relative_retry400( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -991,7 +991,7 @@ def get_long_running_output(pipeline_response): begin_post_async_relative_retry400.metadata = {"url": "/lro/nonretryerror/postasync/retry/400"} # type: ignore async def _put_error201_no_provisioning_state_payload_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1039,7 +1039,7 @@ async def _put_error201_no_provisioning_state_payload_initial( @distributed_trace_async async def begin_put_error201_no_provisioning_state_payload( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 201 to the initial request with no payload. @@ -1093,7 +1093,7 @@ def get_long_running_output(pipeline_response): begin_put_error201_no_provisioning_state_payload.metadata = {"url": "/lro/error/put/201/noprovisioningstatepayload"} # type: ignore async def _put_async_relative_retry_no_status_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1143,7 +1143,7 @@ async def _put_async_relative_retry_no_status_initial( @distributed_trace_async async def begin_put_async_relative_retry_no_status( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1206,7 +1206,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry_no_status.metadata = {"url": "/lro/error/putasync/retry/nostatus"} # type: ignore async def _put_async_relative_retry_no_status_payload_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1256,7 +1256,7 @@ async def _put_async_relative_retry_no_status_payload_initial( @distributed_trace_async async def begin_put_async_relative_retry_no_status_payload( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1318,7 +1318,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry_no_status_payload.metadata = {"url": "/lro/error/putasync/retry/nostatuspayload"} # type: ignore - async def _delete204_succeeded_initial(self, **kwargs) -> None: + async def _delete204_succeeded_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -1348,7 +1348,7 @@ async def _delete204_succeeded_initial(self, **kwargs) -> None: _delete204_succeeded_initial.metadata = {"url": "/lro/error/delete/204/nolocation"} # type: ignore @distributed_trace_async - async def begin_delete204_succeeded(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete204_succeeded(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 204 to the initial request, indicating success. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1393,7 +1393,7 @@ def get_long_running_output(pipeline_response): begin_delete204_succeeded.metadata = {"url": "/lro/error/delete/204/nolocation"} # type: ignore - async def _delete_async_relative_retry_no_status_initial(self, **kwargs) -> None: + async def _delete_async_relative_retry_no_status_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -1430,7 +1430,7 @@ async def _delete_async_relative_retry_no_status_initial(self, **kwargs) -> None _delete_async_relative_retry_no_status_initial.metadata = {"url": "/lro/error/deleteasync/retry/nostatus"} # type: ignore @distributed_trace_async - async def begin_delete_async_relative_retry_no_status(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_relative_retry_no_status(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -1476,7 +1476,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_relative_retry_no_status.metadata = {"url": "/lro/error/deleteasync/retry/nostatus"} # type: ignore - async def _post202_no_location_initial(self, product: Optional["_models.Product"] = None, **kwargs) -> None: + async def _post202_no_location_initial(self, product: Optional["_models.Product"] = None, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -1519,7 +1519,7 @@ async def _post202_no_location_initial(self, product: Optional["_models.Product" @distributed_trace_async async def begin_post202_no_location( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, without a location header. @@ -1569,7 +1569,7 @@ def get_long_running_output(pipeline_response): begin_post202_no_location.metadata = {"url": "/lro/error/post/202/nolocation"} # type: ignore async def _post_async_relative_retry_no_payload_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1616,7 +1616,7 @@ async def _post_async_relative_retry_no_payload_initial( @distributed_trace_async async def begin_post_async_relative_retry_no_payload( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1669,7 +1669,7 @@ def get_long_running_output(pipeline_response): begin_post_async_relative_retry_no_payload.metadata = {"url": "/lro/error/postasync/retry/nopayload"} # type: ignore async def _put200_invalid_json_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.Product"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1715,7 +1715,7 @@ async def _put200_invalid_json_initial( @distributed_trace_async async def begin_put200_invalid_json( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that is not a valid json. @@ -1768,7 +1768,7 @@ def get_long_running_output(pipeline_response): begin_put200_invalid_json.metadata = {"url": "/lro/error/put/200/invalidjson"} # type: ignore async def _put_async_relative_retry_invalid_header_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1818,7 +1818,7 @@ async def _put_async_relative_retry_invalid_header_initial( @distributed_trace_async async def begin_put_async_relative_retry_invalid_header( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation @@ -1881,7 +1881,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/putasync/retry/invalidheader"} # type: ignore async def _put_async_relative_retry_invalid_json_polling_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": cls = kwargs.pop("cls", None) # type: ClsType["_models.Product"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1931,7 +1931,7 @@ async def _put_async_relative_retry_invalid_json_polling_initial( @distributed_trace_async async def begin_put_async_relative_retry_invalid_json_polling( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation @@ -1993,7 +1993,7 @@ def get_long_running_output(pipeline_response): begin_put_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/putasync/retry/invalidjsonpolling"} # type: ignore - async def _delete202_retry_invalid_header_initial(self, **kwargs) -> None: + async def _delete202_retry_invalid_header_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2027,7 +2027,7 @@ async def _delete202_retry_invalid_header_initial(self, **kwargs) -> None: _delete202_retry_invalid_header_initial.metadata = {"url": "/lro/error/delete/202/retry/invalidheader"} # type: ignore @distributed_trace_async - async def begin_delete202_retry_invalid_header(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete202_retry_invalid_header(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request receing a reponse with an invalid 'Location' and 'Retry-After' headers. @@ -2073,7 +2073,7 @@ def get_long_running_output(pipeline_response): begin_delete202_retry_invalid_header.metadata = {"url": "/lro/error/delete/202/retry/invalidheader"} # type: ignore - async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs) -> None: + async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2110,7 +2110,7 @@ async def _delete_async_relative_retry_invalid_header_initial(self, **kwargs) -> _delete_async_relative_retry_invalid_header_initial.metadata = {"url": "/lro/error/deleteasync/retry/invalidheader"} # type: ignore @distributed_trace_async - async def begin_delete_async_relative_retry_invalid_header(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_relative_retry_invalid_header(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. The endpoint indicated in the Azure-AsyncOperation header is invalid. @@ -2156,7 +2156,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/deleteasync/retry/invalidheader"} # type: ignore - async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwargs) -> None: + async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwargs: Any) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -2193,7 +2193,7 @@ async def _delete_async_relative_retry_invalid_json_polling_initial(self, **kwar _delete_async_relative_retry_invalid_json_polling_initial.metadata = {"url": "/lro/error/deleteasync/retry/invalidjsonpolling"} # type: ignore @distributed_trace_async - async def begin_delete_async_relative_retry_invalid_json_polling(self, **kwargs) -> AsyncLROPoller[None]: + async def begin_delete_async_relative_retry_invalid_json_polling(self, **kwargs: Any) -> AsyncLROPoller[None]: """Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. @@ -2242,7 +2242,7 @@ def get_long_running_output(pipeline_response): begin_delete_async_relative_retry_invalid_json_polling.metadata = {"url": "/lro/error/deleteasync/retry/invalidjsonpolling"} # type: ignore async def _post202_retry_invalid_header_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -2286,7 +2286,7 @@ async def _post202_retry_invalid_header_initial( @distributed_trace_async async def begin_post202_retry_invalid_header( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with invalid 'Location' and 'Retry-After' headers. @@ -2338,7 +2338,7 @@ def get_long_running_output(pipeline_response): begin_post202_retry_invalid_header.metadata = {"url": "/lro/error/post/202/retry/invalidheader"} # type: ignore async def _post_async_relative_retry_invalid_header_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -2385,7 +2385,7 @@ async def _post_async_relative_retry_invalid_header_initial( @distributed_trace_async async def begin_post_async_relative_retry_invalid_header( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. The endpoint indicated in the Azure-AsyncOperation @@ -2438,7 +2438,7 @@ def get_long_running_output(pipeline_response): begin_post_async_relative_retry_invalid_header.metadata = {"url": "/lro/error/postasync/retry/invalidheader"} # type: ignore async def _post_async_relative_retry_invalid_json_polling_initial( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> None: cls = kwargs.pop("cls", None) # type: ClsType[None] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -2485,7 +2485,7 @@ async def _post_async_relative_retry_invalid_json_polling_initial( @distributed_trace_async async def begin_post_async_relative_retry_invalid_json_polling( - self, product: Optional["_models.Product"] = None, **kwargs + self, product: Optional["_models.Product"] = None, **kwargs: Any ) -> AsyncLROPoller[None]: """Long running post request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation diff --git a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py index c550c6753ba..a503e02fd17 100644 --- a/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py +++ b/test/azure/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/operations/_lro_with_paramaterized_endpoints_operations.py @@ -28,7 +28,7 @@ class LROWithParamaterizedEndpointsOperationsMixin: - async def _poll_with_parameterized_endpoints_initial(self, account_name: str, **kwargs) -> Optional[str]: + async def _poll_with_parameterized_endpoints_initial(self, account_name: str, **kwargs: Any) -> Optional[str]: cls = kwargs.pop("cls", None) # type: ClsType[Optional[str]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} error_map.update(kwargs.pop("error_map", {})) @@ -74,7 +74,7 @@ async def _poll_with_parameterized_endpoints_initial(self, account_name: str, ** _poll_with_parameterized_endpoints_initial.metadata = {"url": "/lroParameterizedEndpoints"} # type: ignore @distributed_trace_async - async def begin_poll_with_parameterized_endpoints(self, account_name: str, **kwargs) -> AsyncLROPoller[str]: + async def begin_poll_with_parameterized_endpoints(self, account_name: str, **kwargs: Any) -> AsyncLROPoller[str]: """Poll with method and client level parameters in endpoint. :param account_name: Account Name. Pass in 'local' to pass test. diff --git a/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py b/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py index f8cafde6bc9..99d8690b623 100644 --- a/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py +++ b/test/azure/Expected/AcceptanceTests/Paging/paging/aio/operations/_paging_operations.py @@ -52,7 +52,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace - def get_no_item_name_pages(self, **kwargs) -> AsyncIterable["_models.ProductResultValue"]: + def get_no_item_name_pages(self, **kwargs: Any) -> AsyncIterable["_models.ProductResultValue"]: """A paging operation that must return result of the default 'value' node. :keyword callable cls: A custom type or function that will be passed the direct response @@ -107,7 +107,7 @@ async def get_next(next_link=None): get_no_item_name_pages.metadata = {"url": "/paging/noitemname"} # type: ignore @distributed_trace - def get_null_next_link_name_pages(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_null_next_link_name_pages(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that must ignore any kind of nextLink, and stop after page 1. :keyword callable cls: A custom type or function that will be passed the direct response @@ -162,7 +162,7 @@ async def get_next(next_link=None): get_null_next_link_name_pages.metadata = {"url": "/paging/nullnextlink"} # type: ignore @distributed_trace - def get_single_pages(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_single_pages(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that finishes on the first call without a nextlink. :keyword callable cls: A custom type or function that will be passed the direct response @@ -217,7 +217,7 @@ async def get_next(next_link=None): get_single_pages.metadata = {"url": "/paging/single"} # type: ignore @distributed_trace - def first_response_empty(self, **kwargs) -> AsyncIterable["_models.ProductResultValue"]: + def first_response_empty(self, **kwargs: Any) -> AsyncIterable["_models.ProductResultValue"]: """A paging operation whose first response's items list is empty, but still returns a next link. Second (and final) call, will give you an items list of 1. @@ -277,7 +277,7 @@ def get_multiple_pages( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_options: Optional["_models.PagingGetMultiplePagesOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages. @@ -351,7 +351,9 @@ async def get_next(next_link=None): get_multiple_pages.metadata = {"url": "/paging/multiple"} # type: ignore @distributed_trace - def get_with_query_params(self, required_query_parameter: int, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_with_query_params( + self, required_query_parameter: int, **kwargs: Any + ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a next operation. It has a different query parameter from it's next operation nextOperationWithQueryParams. Returns a ProductResult. @@ -422,7 +424,7 @@ def get_odata_multiple_pages( self, client_request_id: Optional[str] = None, paging_get_odata_multiple_pages_options: Optional["_models.PagingGetOdataMultiplePagesOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that includes a nextLink in odata format that has 10 pages. @@ -500,7 +502,7 @@ def get_multiple_pages_with_offset( self, paging_get_multiple_pages_with_offset_options: "_models.PagingGetMultiplePagesWithOffsetOptions", client_request_id: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages. @@ -580,7 +582,7 @@ async def get_next(next_link=None): get_multiple_pages_with_offset.metadata = {"url": "/paging/multiple/withpath/{offset}"} # type: ignore @distributed_trace - def get_multiple_pages_retry_first(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_multiple_pages_retry_first(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that fails on the first call with 500 and then retries and then get a response including a nextLink that has 10 pages. @@ -636,7 +638,7 @@ async def get_next(next_link=None): get_multiple_pages_retry_first.metadata = {"url": "/paging/multiple/retryfirst"} # type: ignore @distributed_trace - def get_multiple_pages_retry_second(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_multiple_pages_retry_second(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that includes a nextLink that has 10 pages, of which the 2nd call fails first with 500. The client should retry and finish all 10 pages eventually. @@ -692,7 +694,7 @@ async def get_next(next_link=None): get_multiple_pages_retry_second.metadata = {"url": "/paging/multiple/retrysecond"} # type: ignore @distributed_trace - def get_single_pages_failure(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_single_pages_failure(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives a 400 on the first call. :keyword callable cls: A custom type or function that will be passed the direct response @@ -747,7 +749,7 @@ async def get_next(next_link=None): get_single_pages_failure.metadata = {"url": "/paging/single/failure"} # type: ignore @distributed_trace - def get_multiple_pages_failure(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_multiple_pages_failure(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives a 400 on the second call. :keyword callable cls: A custom type or function that will be passed the direct response @@ -802,7 +804,7 @@ async def get_next(next_link=None): get_multiple_pages_failure.metadata = {"url": "/paging/multiple/failure"} # type: ignore @distributed_trace - def get_multiple_pages_failure_uri(self, **kwargs) -> AsyncIterable["_models.ProductResult"]: + def get_multiple_pages_failure_uri(self, **kwargs: Any) -> AsyncIterable["_models.ProductResult"]: """A paging operation that receives an invalid nextLink. :keyword callable cls: A custom type or function that will be passed the direct response @@ -858,7 +860,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_fragment_next_link( - self, api_version: str, tenant: str, **kwargs + self, api_version: str, tenant: str, **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that doesn't return a full URL, just a fragment. @@ -932,7 +934,7 @@ async def get_next(next_link=None): @distributed_trace def get_multiple_pages_fragment_with_grouping_next_link( - self, custom_parameter_group: "_models.CustomParameterGroup", **kwargs + self, custom_parameter_group: "_models.CustomParameterGroup", **kwargs: Any ) -> AsyncIterable["_models.OdataProductResult"]: """A paging operation that doesn't return a full URL, just a fragment with parameters grouped. @@ -1012,7 +1014,7 @@ async def _get_multiple_pages_lro_initial( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_lro_options: Optional["_models.PagingGetMultiplePagesLroOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ProductResult": cls = kwargs.pop("cls", None) # type: ClsType["_models.ProductResult"] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -1065,7 +1067,7 @@ async def begin_get_multiple_pages_lro( self, client_request_id: Optional[str] = None, paging_get_multiple_pages_lro_options: Optional["_models.PagingGetMultiplePagesLroOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.ProductResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -1183,7 +1185,7 @@ async def internal_get_next(next_link=None): @distributed_trace def get_paging_model_with_item_name_with_xms_client_name( - self, **kwargs + self, **kwargs: Any ) -> AsyncIterable["_models.ProductResultValueWithXMSClientName"]: """A paging operation that returns a paging model whose item name is is overriden by x-ms-client-name 'indexes'. diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py index d84130821c8..6d673573a9a 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_storage_accounts_operations.py @@ -54,7 +54,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: @distributed_trace_async async def check_name_availability( - self, account_name: "_models.StorageAccountCheckNameAvailabilityParameters", **kwargs + self, account_name: "_models.StorageAccountCheckNameAvailabilityParameters", **kwargs: Any ) -> "_models.CheckNameAvailabilityResult": """Checks that account name is valid and is not in use. @@ -115,7 +115,7 @@ async def _create_initial( resource_group_name: str, account_name: str, parameters: "_models.StorageAccountCreateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.StorageAccount"]: cls = kwargs.pop("cls", None) # type: ClsType[Optional["_models.StorageAccount"]] error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} @@ -170,7 +170,7 @@ async def begin_create( resource_group_name: str, account_name: str, parameters: "_models.StorageAccountCreateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.StorageAccount"]: """Asynchronously creates a new storage account with the specified parameters. Existing accounts cannot be updated with this API and should instead use the Update Storage Account API. If an @@ -243,7 +243,7 @@ def get_long_running_output(pipeline_response): begin_create.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"} # type: ignore @distributed_trace_async - async def delete(self, resource_group_name: str, account_name: str, **kwargs) -> None: + async def delete(self, resource_group_name: str, account_name: str, **kwargs: Any) -> None: """Deletes a storage account in Microsoft Azure. :param resource_group_name: The name of the resource group within the user’s subscription. @@ -292,7 +292,9 @@ async def delete(self, resource_group_name: str, account_name: str, **kwargs) -> delete.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"} # type: ignore @distributed_trace_async - async def get_properties(self, resource_group_name: str, account_name: str, **kwargs) -> "_models.StorageAccount": + async def get_properties( + self, resource_group_name: str, account_name: str, **kwargs: Any + ) -> "_models.StorageAccount": """Returns the properties for the specified storage account including but not limited to name, account type, location, and account status. The ListKeys operation should be used to retrieve storage keys. @@ -354,7 +356,7 @@ async def update( resource_group_name: str, account_name: str, parameters: "_models.StorageAccountUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.StorageAccount": """Updates the account type or tags for a storage account. It can also be used to add a custom domain (note that custom domains cannot be added via the Create operation). Only one custom @@ -424,7 +426,9 @@ async def update( update.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"} # type: ignore @distributed_trace_async - async def list_keys(self, resource_group_name: str, account_name: str, **kwargs) -> "_models.StorageAccountKeys": + async def list_keys( + self, resource_group_name: str, account_name: str, **kwargs: Any + ) -> "_models.StorageAccountKeys": """Lists the access keys for the specified storage account. :param resource_group_name: The name of the resource group within the user’s subscription. @@ -477,7 +481,7 @@ async def list_keys(self, resource_group_name: str, account_name: str, **kwargs) list_keys.metadata = {"url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys"} # type: ignore @distributed_trace - def list(self, **kwargs) -> AsyncIterable["_models.StorageAccountListResult"]: + def list(self, **kwargs: Any) -> AsyncIterable["_models.StorageAccountListResult"]: """Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. @@ -542,7 +546,7 @@ async def get_next(next_link=None): @distributed_trace def list_by_resource_group( - self, resource_group_name: str, **kwargs + self, resource_group_name: str, **kwargs: Any ) -> AsyncIterable["_models.StorageAccountListResult"]: """Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. @@ -615,7 +619,7 @@ async def regenerate_key( resource_group_name: str, account_name: str, key_name: Optional[Union[str, "_models.KeyName"]] = None, - **kwargs + **kwargs: Any ) -> "_models.StorageAccountKeys": """Regenerates the access keys for the specified storage account. diff --git a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py index 3448441d39b..b67941728a1 100644 --- a/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py +++ b/test/azure/Expected/AcceptanceTests/StorageManagementClient/storage/aio/operations/_usage_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def list(self, **kwargs) -> "_models.UsageListResult": + async def list(self, **kwargs: Any) -> "_models.UsageListResult": """Gets the current usage count and the limit for the resources under the subscription. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py index 12cc13e7bd7..c47f2a3369d 100644 --- a/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py +++ b/test/azure/Expected/AcceptanceTests/SubscriptionIdApiVersion/subscriptionidapiversion/aio/operations/_group_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_sample_resource_group(self, resource_group_name: str, **kwargs) -> "_models.SampleResourceGroup": + async def get_sample_resource_group(self, resource_group_name: str, **kwargs: Any) -> "_models.SampleResourceGroup": """Provides a resouce group with name 'testgroup101' and location 'West US'. :param resource_group_name: Resource Group name 'testgroup101'. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/aio/_operations_mixin.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/aio/_operations_mixin.py index 689536fdc5f..48def2041bc 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/aio/_operations_mixin.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/aio/_operations_mixin.py @@ -26,7 +26,7 @@ class MultiapiServiceClientOperationsMixin(object): async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -59,7 +59,7 @@ def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -95,7 +95,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. @@ -131,7 +131,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -161,7 +161,7 @@ async def test_one( def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py index 5cf632fa8e0..ebec8f90301 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v0/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json index 4107a8047af..50cc2604950 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~multiapi.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~multiapi.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~multiapi.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~multiapi.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapi.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~multiapi.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapi.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~multiapi.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py index c22441dd742..880e9069a90 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_multiapi_service_client_operations.py @@ -27,7 +27,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -79,7 +79,7 @@ async def test_one( async def _test_lro_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -128,7 +128,7 @@ async def _test_lro_initial( async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -186,7 +186,7 @@ async def _test_lro_and_paging_initial( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PagingResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] error_map = { @@ -237,7 +237,7 @@ async def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -355,7 +355,7 @@ async def internal_get_next(next_link=None): async def test_different_calls( self, greeting_in_english: str, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py index 55ecfdfe45f..38fe254146e 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v1/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json index 127ddcd3a50..80ff0820a63 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~multiapi.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py index 43609b7d276..106a7d1ea0f 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_multiapi_service_client_operations.py @@ -24,7 +24,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo. @@ -80,7 +80,7 @@ async def test_different_calls( self, greeting_in_english: str, greeting_in_chinese: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py index a743a29e063..f1d832d6f77 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelTwo"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestTwo should be in OperationGroupOneOperations. Takes in ModelTwo and ouputs ModelTwo. @@ -100,7 +100,7 @@ async def test_two( async def test_three( self, - **kwargs + **kwargs: Any ) -> None: """TestThree should be in OperationGroupOneOperations. Takes in ModelTwo. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py index 385af9f76dd..6cb55c7a26d 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v2/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, parameter_one: bool, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json index b25d4ead3b4..96727a50157 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~multiapi.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py index f6f9a66c5ca..58164d37ce1 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_multiapi_service_client_operations.py @@ -23,7 +23,7 @@ class MultiapiServiceClientOperationsMixin: def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. @@ -86,7 +86,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py index 8ed67639b30..65aeba63f10 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelThree"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelThree": """TestTwo should be in OperationGroupOneOperations. Takes in ModelThree and ouputs ModelThree. diff --git a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py index ce1fe26004e..424e0aa1a72 100644 --- a/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/Multiapi/multiapi/v3/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, input: Optional[Union[IO, "_models.SourcePath"]] = None, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. @@ -107,7 +107,7 @@ async def test_four( async def test_five( self, - **kwargs + **kwargs: Any ) -> None: """TestFive should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/aio/_operations_mixin.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/aio/_operations_mixin.py index 03041678256..37035258756 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/aio/_operations_mixin.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/aio/_operations_mixin.py @@ -26,7 +26,7 @@ class MultiapiServiceClientOperationsMixin(object): async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -59,7 +59,7 @@ def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -95,7 +95,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. @@ -131,7 +131,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -161,7 +161,7 @@ async def test_one( def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json index a95a15cf8c8..ba636a372ca 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~multiapicredentialdefaultpolicy.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~multiapicredentialdefaultpolicy.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~multiapicredentialdefaultpolicy.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~multiapicredentialdefaultpolicy.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapicredentialdefaultpolicy.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~multiapicredentialdefaultpolicy.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapicredentialdefaultpolicy.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~multiapicredentialdefaultpolicy.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py index 70ca622909b..c95eba98a79 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_multiapi_service_client_operations.py @@ -27,7 +27,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -79,7 +79,7 @@ async def test_one( async def _test_lro_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -128,7 +128,7 @@ async def _test_lro_initial( async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -186,7 +186,7 @@ async def _test_lro_and_paging_initial( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PagingResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] error_map = { @@ -237,7 +237,7 @@ async def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -355,7 +355,7 @@ async def internal_get_next(next_link=None): async def test_different_calls( self, greeting_in_english: str, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py index a65870fa20e..4370288b903 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v1/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json index 47212ce3174..bdd46b0f3f6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~multiapicredentialdefaultpolicy.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py index 906ed6654ad..bb61811609d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_multiapi_service_client_operations.py @@ -24,7 +24,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo. @@ -80,7 +80,7 @@ async def test_different_calls( self, greeting_in_english: str, greeting_in_chinese: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py index 754d9e4e049..cb2991fc629 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelTwo"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestTwo should be in OperationGroupOneOperations. Takes in ModelTwo and ouputs ModelTwo. @@ -100,7 +100,7 @@ async def test_two( async def test_three( self, - **kwargs + **kwargs: Any ) -> None: """TestThree should be in OperationGroupOneOperations. Takes in ModelTwo. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py index 62edc308f76..386e78df1d4 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v2/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, parameter_one: bool, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json index 74d3d190874..ba1ad80fe1d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~multiapicredentialdefaultpolicy.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py index 8b6f375024e..5a058c6e5da 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_multiapi_service_client_operations.py @@ -23,7 +23,7 @@ class MultiapiServiceClientOperationsMixin: def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. @@ -86,7 +86,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py index 4252394a76d..d24d7731d20 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelThree"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelThree": """TestTwo should be in OperationGroupOneOperations. Takes in ModelThree and ouputs ModelThree. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py index 3bef28f8907..8d04ee2c54a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCredentialDefaultPolicy/multiapicredentialdefaultpolicy/v3/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, input: Optional[Union[IO, "_models.SourcePath"]] = None, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. @@ -107,7 +107,7 @@ async def test_four( async def test_five( self, - **kwargs + **kwargs: Any ) -> None: """TestFive should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_operations_mixin.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_operations_mixin.py index 6f656c89c33..b8566af3749 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_operations_mixin.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/aio/_operations_mixin.py @@ -22,7 +22,7 @@ class MultiapiCustomBaseUrlServiceClientOperationsMixin(object): async def test( self, id: int, - **kwargs + **kwargs: Any ) -> None: """Should be a mixin operation. Put in 2 for the required parameter and have the correct api version of 2.0.0 to pass. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json index 2f68f92be10..26995886465 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/_metadata.json @@ -98,7 +98,7 @@ }, "async": { "coroutine": true, - "signature": "async def test(\n self,\n id: int,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test(\n self,\n id: int,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Should be a mixin operation. Put in 1 for the required parameter and have the correct api\nversion of 1.0.0 to pass.\n\n:param id: An int parameter. Put in 1 to pass.\n:type id: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py index 5479a02db01..fd96234c28a 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v1/aio/operations/_multiapi_custom_base_url_service_client_operations.py @@ -22,7 +22,7 @@ class MultiapiCustomBaseUrlServiceClientOperationsMixin: async def test( self, id: int, - **kwargs + **kwargs: Any ) -> None: """Should be a mixin operation. Put in 1 for the required parameter and have the correct api version of 1.0.0 to pass. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json index a57f4fc5da0..2d748b87c20 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/_metadata.json @@ -98,7 +98,7 @@ }, "async": { "coroutine": true, - "signature": "async def test(\n self,\n id: int,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test(\n self,\n id: int,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Should be a mixin operation. Put in 2 for the required parameter and have the correct api\nversion of 2.0.0 to pass.\n\n:param id: An int parameter. Put in 2 to pass.\n:type id: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py index 45cbc3c5944..0197b22097b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiCustomBaseUrl/multiapicustombaseurl/v2/aio/operations/_multiapi_custom_base_url_service_client_operations.py @@ -22,7 +22,7 @@ class MultiapiCustomBaseUrlServiceClientOperationsMixin: async def test( self, id: int, - **kwargs + **kwargs: Any ) -> None: """Should be a mixin operation. Put in 2 for the required parameter and have the correct api version of 2.0.0 to pass. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/aio/_operations_mixin.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/aio/_operations_mixin.py index 9fe319783f3..1713634807d 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/aio/_operations_mixin.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/aio/_operations_mixin.py @@ -25,7 +25,7 @@ class MultiapiServiceClientOperationsMixin(object): async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -58,7 +58,7 @@ def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -94,7 +94,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. @@ -130,7 +130,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -160,7 +160,7 @@ async def test_one( def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json index 1b59f3df2d2..aee2c781407 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~multiapidataplane.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~multiapidataplane.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~multiapidataplane.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~multiapidataplane.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapidataplane.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~multiapidataplane.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapidataplane.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~multiapidataplane.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py index a3e1d8ebe15..53f2c4ba8c9 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_multiapi_service_client_operations.py @@ -26,7 +26,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -78,7 +78,7 @@ async def test_one( async def _test_lro_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -127,7 +127,7 @@ async def _test_lro_initial( async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -185,7 +185,7 @@ async def _test_lro_and_paging_initial( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PagingResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] error_map = { @@ -236,7 +236,7 @@ async def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -354,7 +354,7 @@ async def internal_get_next(next_link=None): async def test_different_calls( self, greeting_in_english: str, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py index 4ca03d4b3d5..1de35d17adf 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v1/aio/operations/_operation_group_one_operations.py @@ -41,7 +41,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json index 24cbd3e976b..c1a1cbe1a0b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~multiapidataplane.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py index ac4081a8a17..320a4a2b4ea 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_multiapi_service_client_operations.py @@ -23,7 +23,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo. @@ -79,7 +79,7 @@ async def test_different_calls( self, greeting_in_english: str, greeting_in_chinese: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py index c3b54562c4c..905c0c52bc7 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelTwo"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestTwo should be in OperationGroupOneOperations. Takes in ModelTwo and ouputs ModelTwo. @@ -99,7 +99,7 @@ async def test_two( async def test_three( self, - **kwargs + **kwargs: Any ) -> None: """TestThree should be in OperationGroupOneOperations. Takes in ModelTwo. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py index 8b583a8feea..0f3d88b1c47 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v2/aio/operations/_operation_group_two_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, parameter_one: bool, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json index fd1fb416b22..fdd851cbb9b 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~multiapidataplane.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py index 49574cd8d85..15f0cb364a1 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_multiapi_service_client_operations.py @@ -22,7 +22,7 @@ class MultiapiServiceClientOperationsMixin: def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. @@ -85,7 +85,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py index d198d3b7910..ece5941a7d7 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelThree"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelThree": """TestTwo should be in OperationGroupOneOperations. Takes in ModelThree and ouputs ModelThree. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py index e04d8f3513f..44c831cf7e3 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiDataPlane/multiapidataplane/v3/aio/operations/_operation_group_two_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, input: Optional[Union[IO, "_models.SourcePath"]] = None, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. @@ -106,7 +106,7 @@ async def test_four( async def test_five( self, - **kwargs + **kwargs: Any ) -> None: """TestFive should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json index 879af74ffca..c9adeee7e70 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~multiapinoasync.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~multiapinoasync.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~multiapinoasync.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~multiapinoasync.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapinoasync.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~multiapinoasync.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapinoasync.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~multiapinoasync.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json index f5afdd6dd09..4cd2df6e4c6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~multiapinoasync.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json index 666707b257c..888e55bd197 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiNoAsync/multiapinoasync/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~multiapinoasync.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_operations_mixin.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_operations_mixin.py index fb52a6ca4c7..bce32140912 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_operations_mixin.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_operations_mixin.py @@ -26,7 +26,7 @@ class MultiapiServiceClientOperationsMixin(object): async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -59,7 +59,7 @@ def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -95,7 +95,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. @@ -131,7 +131,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -161,7 +161,7 @@ async def test_one( def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncItemPaged["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json index 904fe9c0367..4dda6991cf6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/_metadata.json @@ -99,7 +99,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"TestOne should be in an FirstVersionOperationsMixin.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -111,7 +111,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.Product\"]:\n", + "signature": "async def _test_lro_initial(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.Product\"]:\n", "doc": "\"\"\"\n\n:param product: Product to put.\n:type product: ~multiapiwithsubmodule.submodule.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Product, or the result of cls(response)\n:rtype: ~multiapiwithsubmodule.submodule.v1.models.Product or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "product" @@ -123,7 +123,7 @@ }, "async": { "coroutine": true, - "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", + "signature": "async def begin_test_lro(\n self,\n product: Optional[\"_models.Product\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[\"_models.Product\"]:\n", "doc": "\"\"\"Put in whatever shape of Product you want, will return a Product with id equal to 100.\n\n:param product: Product to put.\n:type product: ~multiapiwithsubmodule.submodule.v1.models.Product\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either Product or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~multiapiwithsubmodule.submodule.v1.models.Product]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "product" @@ -135,7 +135,7 @@ }, "async": { "coroutine": true, - "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e \"_models.PagingResult\":\n", + "signature": "async def _test_lro_and_paging_initial(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e \"_models.PagingResult\":\n", "doc": "\"\"\"\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapiwithsubmodule.submodule.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PagingResult, or the result of cls(response)\n:rtype: ~multiapiwithsubmodule.submodule.v1.models.PagingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -147,7 +147,7 @@ }, "async": { "coroutine": false, - "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", + "signature": "def begin_test_lro_and_paging(\n self,\n client_request_id: Optional[str] = None,\n test_lro_and_paging_options: Optional[\"_models.TestLroAndPagingOptions\"] = None,\n **kwargs: Any\n) -\u003e AsyncLROPoller[AsyncItemPaged[\"_models.PagingResult\"]]:\n", "doc": "\"\"\"A long-running paging operation that includes a nextLink that has 10 pages.\n\n:param client_request_id:\n:type client_request_id: str\n:param test_lro_and_paging_options: Parameter group.\n:type test_lro_and_paging_options: ~multiapiwithsubmodule.submodule.v1.models.TestLroAndPagingOptions\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns an iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[~multiapiwithsubmodule.submodule.v1.models.PagingResult]]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "client_request_id, test_lro_and_paging_options" @@ -159,7 +159,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py index 6e536e6db6b..fc673e06fec 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_multiapi_service_client_operations.py @@ -27,7 +27,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """TestOne should be in an FirstVersionOperationsMixin. @@ -79,7 +79,7 @@ async def test_one( async def _test_lro_initial( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Product"]] error_map = { @@ -128,7 +128,7 @@ async def _test_lro_initial( async def begin_test_lro( self, product: Optional["_models.Product"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Product"]: """Put in whatever shape of Product you want, will return a Product with id equal to 100. @@ -186,7 +186,7 @@ async def _test_lro_and_paging_initial( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.PagingResult": cls = kwargs.pop('cls', None) # type: ClsType["_models.PagingResult"] error_map = { @@ -237,7 +237,7 @@ async def begin_test_lro_and_paging( self, client_request_id: Optional[str] = None, test_lro_and_paging_options: Optional["_models.TestLroAndPagingOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[AsyncItemPaged["_models.PagingResult"]]: """A long-running paging operation that includes a nextLink that has 10 pages. @@ -355,7 +355,7 @@ async def internal_get_next(next_link=None): async def test_different_calls( self, greeting_in_english: str, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py index bf077f27690..662bc0f1a31 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v1/aio/operations/_operation_group_one_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, - **kwargs + **kwargs: Any ) -> None: """TestTwo should be in OperationGroupOneOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json index c920c5e4be2..a8d862e7c11 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs\n) -\u003e \"_models.ModelTwo\":\n", + "signature": "async def test_one(\n self,\n id: int,\n message: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.ModelTwo\":\n", "doc": "\"\"\"TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo.\n\n:param id: An int parameter.\n:type id: int\n:param message: An optional string parameter.\n:type message: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: ModelTwo, or the result of cls(response)\n:rtype: ~multiapiwithsubmodule.submodule.v2.models.ModelTwo\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "id, message" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py index 8c435fb4ce4..7108e3e110c 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_multiapi_service_client_operations.py @@ -24,7 +24,7 @@ async def test_one( self, id: int, message: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestOne should be in an SecondVersionOperationsMixin. Returns ModelTwo. @@ -80,7 +80,7 @@ async def test_different_calls( self, greeting_in_english: str, greeting_in_chinese: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py index 8c247f07769..2bbd9698cd6 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelTwo"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelTwo": """TestTwo should be in OperationGroupOneOperations. Takes in ModelTwo and ouputs ModelTwo. @@ -100,7 +100,7 @@ async def test_two( async def test_three( self, - **kwargs + **kwargs: Any ) -> None: """TestThree should be in OperationGroupOneOperations. Takes in ModelTwo. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py index 4d32e33b0a6..35dfc0500af 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v2/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, parameter_one: bool, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json index 7e8c2a7c917..b8cd0e8b87e 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/_metadata.json @@ -100,7 +100,7 @@ }, "async": { "coroutine": false, - "signature": "def test_paging(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", + "signature": "def test_paging(\n self,\n **kwargs: Any\n) -\u003e AsyncItemPaged[\"_models.PagingResult\"]:\n", "doc": "\"\"\"Returns ModelThree with optionalProperty \u0027paged\u0027.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either PagingResult or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~multiapiwithsubmodule.submodule.v3.models.PagingResult]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "" @@ -112,7 +112,7 @@ }, "async": { "coroutine": true, - "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs\n) -\u003e None:\n", + "signature": "async def test_different_calls(\n self,\n greeting_in_english: str,\n greeting_in_chinese: Optional[str] = None,\n greeting_in_french: Optional[str] = None,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"Has added parameters across the API versions.\n\n:param greeting_in_english: pass in \u0027hello\u0027 to pass test.\n:type greeting_in_english: str\n:param greeting_in_chinese: pass in \u0027nihao\u0027 to pass test.\n:type greeting_in_chinese: str\n:param greeting_in_french: pass in \u0027bonjour\u0027 to pass test.\n:type greeting_in_french: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "greeting_in_english, greeting_in_chinese, greeting_in_french" diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py index 35fb9d52885..db557cf9d80 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_multiapi_service_client_operations.py @@ -23,7 +23,7 @@ class MultiapiServiceClientOperationsMixin: def test_paging( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PagingResult"]: """Returns ModelThree with optionalProperty 'paged'. @@ -86,7 +86,7 @@ async def test_different_calls( greeting_in_english: str, greeting_in_chinese: Optional[str] = None, greeting_in_french: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """Has added parameters across the API versions. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py index cf34ccc152f..70dca672534 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_one_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_two( self, parameter_one: Optional["_models.ModelThree"] = None, - **kwargs + **kwargs: Any ) -> "_models.ModelThree": """TestTwo should be in OperationGroupOneOperations. Takes in ModelThree and ouputs ModelThree. diff --git a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py index 1c883fff8b3..277a407ab02 100644 --- a/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py +++ b/test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/v3/aio/operations/_operation_group_two_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def test_four( self, input: Optional[Union[IO, "_models.SourcePath"]] = None, - **kwargs + **kwargs: Any ) -> None: """TestFour should be in OperationGroupTwoOperations. @@ -107,7 +107,7 @@ async def test_four( async def test_five( self, - **kwargs + **kwargs: Any ) -> None: """TestFive should be in OperationGroupTwoOperations. diff --git a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py index 6fab023f865..866f2e84b14 100644 --- a/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/AdditionalProperties/additionalproperties/aio/operations/_pets_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs) -> "_models.PetAPTrue": + async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs: Any) -> "_models.PetAPTrue": """Create a Pet which contains more properties than what is defined. :param create_parameters: @@ -97,7 +97,7 @@ async def create_ap_true(self, create_parameters: "_models.PetAPTrue", **kwargs) create_ap_true.metadata = {"url": "/additionalProperties/true"} # type: ignore @distributed_trace_async - async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwargs) -> "_models.CatAPTrue": + async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwargs: Any) -> "_models.CatAPTrue": """Create a CatAPTrue which contains more properties than what is defined. :param create_parameters: @@ -146,7 +146,7 @@ async def create_cat_ap_true(self, create_parameters: "_models.CatAPTrue", **kwa create_cat_ap_true.metadata = {"url": "/additionalProperties/true-subclass"} # type: ignore @distributed_trace_async - async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwargs) -> "_models.PetAPObject": + async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwargs: Any) -> "_models.PetAPObject": """Create a Pet which contains more properties than what is defined. :param create_parameters: @@ -195,7 +195,7 @@ async def create_ap_object(self, create_parameters: "_models.PetAPObject", **kwa create_ap_object.metadata = {"url": "/additionalProperties/type/object"} # type: ignore @distributed_trace_async - async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwargs) -> "_models.PetAPString": + async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwargs: Any) -> "_models.PetAPString": """Create a Pet which contains more properties than what is defined. :param create_parameters: @@ -245,7 +245,7 @@ async def create_ap_string(self, create_parameters: "_models.PetAPString", **kwa @distributed_trace_async async def create_ap_in_properties( - self, create_parameters: "_models.PetAPInProperties", **kwargs + self, create_parameters: "_models.PetAPInProperties", **kwargs: Any ) -> "_models.PetAPInProperties": """Create a Pet which contains more properties than what is defined. @@ -296,7 +296,7 @@ async def create_ap_in_properties( @distributed_trace_async async def create_ap_in_properties_with_ap_string( - self, create_parameters: "_models.PetAPInPropertiesWithAPString", **kwargs + self, create_parameters: "_models.PetAPInPropertiesWithAPString", **kwargs: Any ) -> "_models.PetAPInPropertiesWithAPString": """Create a Pet which contains more properties than what is defined. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py index 5dc2cdba8e2..a3c2f2391d2 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArray/bodyarray/aio/operations/_array_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> List[int]: + async def get_null(self, **kwargs: Any) -> List[int]: """Get null array value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> List[int]: get_null.metadata = {"url": "/array/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> List[int]: + async def get_invalid(self, **kwargs: Any) -> List[int]: """Get invalid array [1, 2, 3. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid(self, **kwargs) -> List[int]: get_invalid.metadata = {"url": "/array/invalid"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> List[int]: + async def get_empty(self, **kwargs: Any) -> List[int]: """Get empty array value []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_empty(self, **kwargs) -> List[int]: get_empty.metadata = {"url": "/array/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, array_body: List[str], **kwargs) -> None: + async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: """Set array value empty []. :param array_body: @@ -220,7 +220,7 @@ async def put_empty(self, array_body: List[str], **kwargs) -> None: put_empty.metadata = {"url": "/array/empty"} # type: ignore @distributed_trace_async - async def get_boolean_tfft(self, **kwargs) -> List[bool]: + async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, false, false, true]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,7 +262,7 @@ async def get_boolean_tfft(self, **kwargs) -> List[bool]: get_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None: + async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: """Set array value empty [true, false, false, true]. :param array_body: @@ -307,7 +307,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None: put_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_null(self, **kwargs) -> List[bool]: + async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, null, false]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -349,7 +349,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> List[bool]: get_boolean_invalid_null.metadata = {"url": "/array/prim/boolean/true.null.false"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_string(self, **kwargs) -> List[bool]: + async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, 'boolean', false]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -391,7 +391,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> List[bool]: get_boolean_invalid_string.metadata = {"url": "/array/prim/boolean/true.boolean.false"} # type: ignore @distributed_trace_async - async def get_integer_valid(self, **kwargs) -> List[int]: + async def get_integer_valid(self, **kwargs: Any) -> List[int]: """Get integer array value [1, -1, 3, 300]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -433,7 +433,7 @@ async def get_integer_valid(self, **kwargs) -> List[int]: get_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_integer_valid(self, array_body: List[int], **kwargs) -> None: + async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: """Set array value empty [1, -1, 3, 300]. :param array_body: @@ -478,7 +478,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs) -> None: put_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_int_invalid_null(self, **kwargs) -> List[int]: + async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: """Get integer array value [1, null, 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -520,7 +520,7 @@ async def get_int_invalid_null(self, **kwargs) -> List[int]: get_int_invalid_null.metadata = {"url": "/array/prim/integer/1.null.zero"} # type: ignore @distributed_trace_async - async def get_int_invalid_string(self, **kwargs) -> List[int]: + async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: """Get integer array value [1, 'integer', 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -562,7 +562,7 @@ async def get_int_invalid_string(self, **kwargs) -> List[int]: get_int_invalid_string.metadata = {"url": "/array/prim/integer/1.integer.0"} # type: ignore @distributed_trace_async - async def get_long_valid(self, **kwargs) -> List[int]: + async def get_long_valid(self, **kwargs: Any) -> List[int]: """Get integer array value [1, -1, 3, 300]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -604,7 +604,7 @@ async def get_long_valid(self, **kwargs) -> List[int]: get_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_long_valid(self, array_body: List[int], **kwargs) -> None: + async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: """Set array value empty [1, -1, 3, 300]. :param array_body: @@ -649,7 +649,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs) -> None: put_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_long_invalid_null(self, **kwargs) -> List[int]: + async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: """Get long array value [1, null, 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -691,7 +691,7 @@ async def get_long_invalid_null(self, **kwargs) -> List[int]: get_long_invalid_null.metadata = {"url": "/array/prim/long/1.null.zero"} # type: ignore @distributed_trace_async - async def get_long_invalid_string(self, **kwargs) -> List[int]: + async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: """Get long array value [1, 'integer', 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -733,7 +733,7 @@ async def get_long_invalid_string(self, **kwargs) -> List[int]: get_long_invalid_string.metadata = {"url": "/array/prim/long/1.integer.0"} # type: ignore @distributed_trace_async - async def get_float_valid(self, **kwargs) -> List[float]: + async def get_float_valid(self, **kwargs: Any) -> List[float]: """Get float array value [0, -0.01, 1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -775,7 +775,7 @@ async def get_float_valid(self, **kwargs) -> List[float]: get_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_float_valid(self, array_body: List[float], **kwargs) -> None: + async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: """Set array value [0, -0.01, 1.2e20]. :param array_body: @@ -820,7 +820,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs) -> None: put_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_null(self, **kwargs) -> List[float]: + async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: """Get float array value [0.0, null, -1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -862,7 +862,7 @@ async def get_float_invalid_null(self, **kwargs) -> List[float]: get_float_invalid_null.metadata = {"url": "/array/prim/float/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_string(self, **kwargs) -> List[float]: + async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: """Get boolean array value [1.0, 'number', 0.0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -904,7 +904,7 @@ async def get_float_invalid_string(self, **kwargs) -> List[float]: get_float_invalid_string.metadata = {"url": "/array/prim/float/1.number.0"} # type: ignore @distributed_trace_async - async def get_double_valid(self, **kwargs) -> List[float]: + async def get_double_valid(self, **kwargs: Any) -> List[float]: """Get float array value [0, -0.01, 1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -946,7 +946,7 @@ async def get_double_valid(self, **kwargs) -> List[float]: get_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_double_valid(self, array_body: List[float], **kwargs) -> None: + async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None: """Set array value [0, -0.01, 1.2e20]. :param array_body: @@ -991,7 +991,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs) -> None: put_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_null(self, **kwargs) -> List[float]: + async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: """Get float array value [0.0, null, -1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1033,7 +1033,7 @@ async def get_double_invalid_null(self, **kwargs) -> List[float]: get_double_invalid_null.metadata = {"url": "/array/prim/double/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_string(self, **kwargs) -> List[float]: + async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: """Get boolean array value [1.0, 'number', 0.0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1075,7 +1075,7 @@ async def get_double_invalid_string(self, **kwargs) -> List[float]: get_double_invalid_string.metadata = {"url": "/array/prim/double/1.number.0"} # type: ignore @distributed_trace_async - async def get_string_valid(self, **kwargs) -> List[str]: + async def get_string_valid(self, **kwargs: Any) -> List[str]: """Get string array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1117,7 +1117,7 @@ async def get_string_valid(self, **kwargs) -> List[str]: get_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_string_valid(self, array_body: List[str], **kwargs) -> None: + async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1162,7 +1162,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs) -> None: put_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]: + async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnum"]]: """Get enum array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1204,7 +1204,7 @@ async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]: get_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwargs) -> None: + async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1249,7 +1249,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], put_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum0"]]: + async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.Enum0"]]: """Get enum array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1291,7 +1291,7 @@ async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum get_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], **kwargs) -> None: + async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1336,7 +1336,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 put_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_string_with_null(self, **kwargs) -> List[str]: + async def get_string_with_null(self, **kwargs: Any) -> List[str]: """Get string array value ['foo', null, 'foo2']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1378,7 +1378,7 @@ async def get_string_with_null(self, **kwargs) -> List[str]: get_string_with_null.metadata = {"url": "/array/prim/string/foo.null.foo2"} # type: ignore @distributed_trace_async - async def get_string_with_invalid(self, **kwargs) -> List[str]: + async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: """Get string array value ['foo', 123, 'foo2']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1420,7 +1420,7 @@ async def get_string_with_invalid(self, **kwargs) -> List[str]: get_string_with_invalid.metadata = {"url": "/array/prim/string/foo.123.foo2"} # type: ignore @distributed_trace_async - async def get_uuid_valid(self, **kwargs) -> List[str]: + async def get_uuid_valid(self, **kwargs: Any) -> List[str]: """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. @@ -1463,7 +1463,7 @@ async def get_uuid_valid(self, **kwargs) -> List[str]: get_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore @distributed_trace_async - async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None: + async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. @@ -1509,7 +1509,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None: put_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore @distributed_trace_async - async def get_uuid_invalid_chars(self, **kwargs) -> List[str]: + async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1551,7 +1551,7 @@ async def get_uuid_invalid_chars(self, **kwargs) -> List[str]: get_uuid_invalid_chars.metadata = {"url": "/array/prim/uuid/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_valid(self, **kwargs) -> List[datetime.date]: + async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: """Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1593,7 +1593,7 @@ async def get_date_valid(self, **kwargs) -> List[datetime.date]: get_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore @distributed_trace_async - async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> None: + async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) -> None: """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: @@ -1638,7 +1638,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> Non put_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore @distributed_trace_async - async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]: + async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: """Get date array value ['2012-01-01', null, '1776-07-04']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1680,7 +1680,7 @@ async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]: get_date_invalid_null.metadata = {"url": "/array/prim/date/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]: + async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: """Get date array value ['2011-03-22', 'date']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1722,7 +1722,7 @@ async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]: get_date_invalid_chars.metadata = {"url": "/array/prim/date/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: """Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. @@ -1765,7 +1765,7 @@ async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]: get_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs) -> None: + async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs: Any) -> None: """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. @@ -1811,7 +1811,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg put_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: """Get date array value ['2000-12-01t00:00:01z', null]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1853,7 +1853,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]: get_date_time_invalid_null.metadata = {"url": "/array/prim/date-time/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: """Get date array value ['2000-12-01t00:00:01z', 'date-time']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1895,7 +1895,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime] get_date_time_invalid_chars.metadata = {"url": "/array/prim/date-time/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: """Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. @@ -1938,7 +1938,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime] get_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwargs) -> None: + async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwargs: Any) -> None: """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. @@ -1984,7 +1984,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], put_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]: + async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: """Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2026,7 +2026,7 @@ async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]: get_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore @distributed_trace_async - async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs) -> None: + async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs: Any) -> None: """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: @@ -2071,7 +2071,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg put_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore @distributed_trace_async - async def get_byte_valid(self, **kwargs) -> List[bytearray]: + async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: """Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. @@ -2114,7 +2114,7 @@ async def get_byte_valid(self, **kwargs) -> List[bytearray]: get_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore @distributed_trace_async - async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None: + async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> None: """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. @@ -2160,7 +2160,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None: put_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore @distributed_trace_async - async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]: + async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: """Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2202,7 +2202,7 @@ async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]: get_byte_invalid_null.metadata = {"url": "/array/prim/byte/invalidnull"} # type: ignore @distributed_trace_async - async def get_base64_url(self, **kwargs) -> List[bytes]: + async def get_base64_url(self, **kwargs: Any) -> List[bytes]: """Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. @@ -2245,7 +2245,7 @@ async def get_base64_url(self, **kwargs) -> List[bytes]: get_base64_url.metadata = {"url": "/array/prim/base64url/valid"} # type: ignore @distributed_trace_async - async def get_complex_null(self, **kwargs) -> List["_models.Product"]: + async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type null value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2287,7 +2287,7 @@ async def get_complex_null(self, **kwargs) -> List["_models.Product"]: get_complex_null.metadata = {"url": "/array/complex/null"} # type: ignore @distributed_trace_async - async def get_complex_empty(self, **kwargs) -> List["_models.Product"]: + async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: """Get empty array of complex type []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2329,7 +2329,7 @@ async def get_complex_empty(self, **kwargs) -> List["_models.Product"]: get_complex_empty.metadata = {"url": "/array/complex/empty"} # type: ignore @distributed_trace_async - async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]: + async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. @@ -2372,7 +2372,7 @@ async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]: get_complex_item_null.metadata = {"url": "/array/complex/itemnull"} # type: ignore @distributed_trace_async - async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]: + async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. @@ -2415,7 +2415,7 @@ async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]: get_complex_item_empty.metadata = {"url": "/array/complex/itemempty"} # type: ignore @distributed_trace_async - async def get_complex_valid(self, **kwargs) -> List["_models.Product"]: + async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. @@ -2458,7 +2458,7 @@ async def get_complex_valid(self, **kwargs) -> List["_models.Product"]: get_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore @distributed_trace_async - async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs) -> None: + async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: Any) -> None: """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. @@ -2504,7 +2504,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs) put_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore @distributed_trace_async - async def get_array_null(self, **kwargs) -> List[List[str]]: + async def get_array_null(self, **kwargs: Any) -> List[List[str]]: """Get a null array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2546,7 +2546,7 @@ async def get_array_null(self, **kwargs) -> List[List[str]]: get_array_null.metadata = {"url": "/array/array/null"} # type: ignore @distributed_trace_async - async def get_array_empty(self, **kwargs) -> List[List[str]]: + async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: """Get an empty array []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2588,7 +2588,7 @@ async def get_array_empty(self, **kwargs) -> List[List[str]]: get_array_empty.metadata = {"url": "/array/array/empty"} # type: ignore @distributed_trace_async - async def get_array_item_null(self, **kwargs) -> List[List[str]]: + async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2630,7 +2630,7 @@ async def get_array_item_null(self, **kwargs) -> List[List[str]]: get_array_item_null.metadata = {"url": "/array/array/itemnull"} # type: ignore @distributed_trace_async - async def get_array_item_empty(self, **kwargs) -> List[List[str]]: + async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2672,7 +2672,7 @@ async def get_array_item_empty(self, **kwargs) -> List[List[str]]: get_array_item_empty.metadata = {"url": "/array/array/itemempty"} # type: ignore @distributed_trace_async - async def get_array_valid(self, **kwargs) -> List[List[str]]: + async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2714,7 +2714,7 @@ async def get_array_valid(self, **kwargs) -> List[List[str]]: get_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore @distributed_trace_async - async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None: + async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> None: """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. :param array_body: @@ -2759,7 +2759,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None: put_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore @distributed_trace_async - async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries with value null. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2801,7 +2801,7 @@ async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_null.metadata = {"url": "/array/dictionary/null"} # type: ignore @distributed_trace_async - async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2843,7 +2843,7 @@ async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_empty.metadata = {"url": "/array/dictionary/empty"} # type: ignore @distributed_trace_async - async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2886,7 +2886,7 @@ async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_item_null.metadata = {"url": "/array/dictionary/itemnull"} # type: ignore @distributed_trace_async - async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2929,7 +2929,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_item_empty.metadata = {"url": "/array/dictionary/itemempty"} # type: ignore @distributed_trace_async - async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2972,7 +2972,7 @@ async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_valid.metadata = {"url": "/array/dictionary/valid"} # type: ignore @distributed_trace_async - async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs) -> None: + async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: Any) -> None: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py index b3700a421b7..099f9186dcb 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyArrayWithNamespaceFolders/vanilla/body/array/aio/operations/_array_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> List[int]: + async def get_null(self, **kwargs: Any) -> List[int]: """Get null array value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> List[int]: get_null.metadata = {"url": "/array/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> List[int]: + async def get_invalid(self, **kwargs: Any) -> List[int]: """Get invalid array [1, 2, 3. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid(self, **kwargs) -> List[int]: get_invalid.metadata = {"url": "/array/invalid"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> List[int]: + async def get_empty(self, **kwargs: Any) -> List[int]: """Get empty array value []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_empty(self, **kwargs) -> List[int]: get_empty.metadata = {"url": "/array/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, array_body: List[str], **kwargs) -> None: + async def put_empty(self, array_body: List[str], **kwargs: Any) -> None: """Set array value empty []. :param array_body: @@ -220,7 +220,7 @@ async def put_empty(self, array_body: List[str], **kwargs) -> None: put_empty.metadata = {"url": "/array/empty"} # type: ignore @distributed_trace_async - async def get_boolean_tfft(self, **kwargs) -> List[bool]: + async def get_boolean_tfft(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, false, false, true]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,7 +262,7 @@ async def get_boolean_tfft(self, **kwargs) -> List[bool]: get_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None: + async def put_boolean_tfft(self, array_body: List[bool], **kwargs: Any) -> None: """Set array value empty [true, false, false, true]. :param array_body: @@ -307,7 +307,7 @@ async def put_boolean_tfft(self, array_body: List[bool], **kwargs) -> None: put_boolean_tfft.metadata = {"url": "/array/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_null(self, **kwargs) -> List[bool]: + async def get_boolean_invalid_null(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, null, false]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -349,7 +349,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> List[bool]: get_boolean_invalid_null.metadata = {"url": "/array/prim/boolean/true.null.false"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_string(self, **kwargs) -> List[bool]: + async def get_boolean_invalid_string(self, **kwargs: Any) -> List[bool]: """Get boolean array value [true, 'boolean', false]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -391,7 +391,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> List[bool]: get_boolean_invalid_string.metadata = {"url": "/array/prim/boolean/true.boolean.false"} # type: ignore @distributed_trace_async - async def get_integer_valid(self, **kwargs) -> List[int]: + async def get_integer_valid(self, **kwargs: Any) -> List[int]: """Get integer array value [1, -1, 3, 300]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -433,7 +433,7 @@ async def get_integer_valid(self, **kwargs) -> List[int]: get_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_integer_valid(self, array_body: List[int], **kwargs) -> None: + async def put_integer_valid(self, array_body: List[int], **kwargs: Any) -> None: """Set array value empty [1, -1, 3, 300]. :param array_body: @@ -478,7 +478,7 @@ async def put_integer_valid(self, array_body: List[int], **kwargs) -> None: put_integer_valid.metadata = {"url": "/array/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_int_invalid_null(self, **kwargs) -> List[int]: + async def get_int_invalid_null(self, **kwargs: Any) -> List[int]: """Get integer array value [1, null, 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -520,7 +520,7 @@ async def get_int_invalid_null(self, **kwargs) -> List[int]: get_int_invalid_null.metadata = {"url": "/array/prim/integer/1.null.zero"} # type: ignore @distributed_trace_async - async def get_int_invalid_string(self, **kwargs) -> List[int]: + async def get_int_invalid_string(self, **kwargs: Any) -> List[int]: """Get integer array value [1, 'integer', 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -562,7 +562,7 @@ async def get_int_invalid_string(self, **kwargs) -> List[int]: get_int_invalid_string.metadata = {"url": "/array/prim/integer/1.integer.0"} # type: ignore @distributed_trace_async - async def get_long_valid(self, **kwargs) -> List[int]: + async def get_long_valid(self, **kwargs: Any) -> List[int]: """Get integer array value [1, -1, 3, 300]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -604,7 +604,7 @@ async def get_long_valid(self, **kwargs) -> List[int]: get_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_long_valid(self, array_body: List[int], **kwargs) -> None: + async def put_long_valid(self, array_body: List[int], **kwargs: Any) -> None: """Set array value empty [1, -1, 3, 300]. :param array_body: @@ -649,7 +649,7 @@ async def put_long_valid(self, array_body: List[int], **kwargs) -> None: put_long_valid.metadata = {"url": "/array/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_long_invalid_null(self, **kwargs) -> List[int]: + async def get_long_invalid_null(self, **kwargs: Any) -> List[int]: """Get long array value [1, null, 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -691,7 +691,7 @@ async def get_long_invalid_null(self, **kwargs) -> List[int]: get_long_invalid_null.metadata = {"url": "/array/prim/long/1.null.zero"} # type: ignore @distributed_trace_async - async def get_long_invalid_string(self, **kwargs) -> List[int]: + async def get_long_invalid_string(self, **kwargs: Any) -> List[int]: """Get long array value [1, 'integer', 0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -733,7 +733,7 @@ async def get_long_invalid_string(self, **kwargs) -> List[int]: get_long_invalid_string.metadata = {"url": "/array/prim/long/1.integer.0"} # type: ignore @distributed_trace_async - async def get_float_valid(self, **kwargs) -> List[float]: + async def get_float_valid(self, **kwargs: Any) -> List[float]: """Get float array value [0, -0.01, 1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -775,7 +775,7 @@ async def get_float_valid(self, **kwargs) -> List[float]: get_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_float_valid(self, array_body: List[float], **kwargs) -> None: + async def put_float_valid(self, array_body: List[float], **kwargs: Any) -> None: """Set array value [0, -0.01, 1.2e20]. :param array_body: @@ -820,7 +820,7 @@ async def put_float_valid(self, array_body: List[float], **kwargs) -> None: put_float_valid.metadata = {"url": "/array/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_null(self, **kwargs) -> List[float]: + async def get_float_invalid_null(self, **kwargs: Any) -> List[float]: """Get float array value [0.0, null, -1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -862,7 +862,7 @@ async def get_float_invalid_null(self, **kwargs) -> List[float]: get_float_invalid_null.metadata = {"url": "/array/prim/float/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_string(self, **kwargs) -> List[float]: + async def get_float_invalid_string(self, **kwargs: Any) -> List[float]: """Get boolean array value [1.0, 'number', 0.0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -904,7 +904,7 @@ async def get_float_invalid_string(self, **kwargs) -> List[float]: get_float_invalid_string.metadata = {"url": "/array/prim/float/1.number.0"} # type: ignore @distributed_trace_async - async def get_double_valid(self, **kwargs) -> List[float]: + async def get_double_valid(self, **kwargs: Any) -> List[float]: """Get float array value [0, -0.01, 1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -946,7 +946,7 @@ async def get_double_valid(self, **kwargs) -> List[float]: get_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_double_valid(self, array_body: List[float], **kwargs) -> None: + async def put_double_valid(self, array_body: List[float], **kwargs: Any) -> None: """Set array value [0, -0.01, 1.2e20]. :param array_body: @@ -991,7 +991,7 @@ async def put_double_valid(self, array_body: List[float], **kwargs) -> None: put_double_valid.metadata = {"url": "/array/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_null(self, **kwargs) -> List[float]: + async def get_double_invalid_null(self, **kwargs: Any) -> List[float]: """Get float array value [0.0, null, -1.2e20]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1033,7 +1033,7 @@ async def get_double_invalid_null(self, **kwargs) -> List[float]: get_double_invalid_null.metadata = {"url": "/array/prim/double/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_string(self, **kwargs) -> List[float]: + async def get_double_invalid_string(self, **kwargs: Any) -> List[float]: """Get boolean array value [1.0, 'number', 0.0]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1075,7 +1075,7 @@ async def get_double_invalid_string(self, **kwargs) -> List[float]: get_double_invalid_string.metadata = {"url": "/array/prim/double/1.number.0"} # type: ignore @distributed_trace_async - async def get_string_valid(self, **kwargs) -> List[str]: + async def get_string_valid(self, **kwargs: Any) -> List[str]: """Get string array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1117,7 +1117,7 @@ async def get_string_valid(self, **kwargs) -> List[str]: get_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_string_valid(self, array_body: List[str], **kwargs) -> None: + async def put_string_valid(self, array_body: List[str], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1162,7 +1162,7 @@ async def put_string_valid(self, array_body: List[str], **kwargs) -> None: put_string_valid.metadata = {"url": "/array/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]: + async def get_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.FooEnum"]]: """Get enum array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1204,7 +1204,7 @@ async def get_enum_valid(self, **kwargs) -> List[Union[str, "_models.FooEnum"]]: get_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwargs) -> None: + async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1249,7 +1249,7 @@ async def put_enum_valid(self, array_body: List[Union[str, "_models.FooEnum"]], put_enum_valid.metadata = {"url": "/array/prim/enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum0"]]: + async def get_string_enum_valid(self, **kwargs: Any) -> List[Union[str, "_models.Enum0"]]: """Get enum array value ['foo1', 'foo2', 'foo3']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1291,7 +1291,7 @@ async def get_string_enum_valid(self, **kwargs) -> List[Union[str, "_models.Enum get_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], **kwargs) -> None: + async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1"]], **kwargs: Any) -> None: """Set array value ['foo1', 'foo2', 'foo3']. :param array_body: @@ -1336,7 +1336,7 @@ async def put_string_enum_valid(self, array_body: List[Union[str, "_models.Enum1 put_string_enum_valid.metadata = {"url": "/array/prim/string-enum/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_string_with_null(self, **kwargs) -> List[str]: + async def get_string_with_null(self, **kwargs: Any) -> List[str]: """Get string array value ['foo', null, 'foo2']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1378,7 +1378,7 @@ async def get_string_with_null(self, **kwargs) -> List[str]: get_string_with_null.metadata = {"url": "/array/prim/string/foo.null.foo2"} # type: ignore @distributed_trace_async - async def get_string_with_invalid(self, **kwargs) -> List[str]: + async def get_string_with_invalid(self, **kwargs: Any) -> List[str]: """Get string array value ['foo', 123, 'foo2']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1420,7 +1420,7 @@ async def get_string_with_invalid(self, **kwargs) -> List[str]: get_string_with_invalid.metadata = {"url": "/array/prim/string/foo.123.foo2"} # type: ignore @distributed_trace_async - async def get_uuid_valid(self, **kwargs) -> List[str]: + async def get_uuid_valid(self, **kwargs: Any) -> List[str]: """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. @@ -1463,7 +1463,7 @@ async def get_uuid_valid(self, **kwargs) -> List[str]: get_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore @distributed_trace_async - async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None: + async def put_uuid_valid(self, array_body: List[str], **kwargs: Any) -> None: """Set array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'd1399005-30f7-40d6-8da6-dd7c89ad34db', 'f42f6aa1-a5bc-4ddf-907e-5f915de43205']. @@ -1509,7 +1509,7 @@ async def put_uuid_valid(self, array_body: List[str], **kwargs) -> None: put_uuid_valid.metadata = {"url": "/array/prim/uuid/valid"} # type: ignore @distributed_trace_async - async def get_uuid_invalid_chars(self, **kwargs) -> List[str]: + async def get_uuid_invalid_chars(self, **kwargs: Any) -> List[str]: """Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1551,7 +1551,7 @@ async def get_uuid_invalid_chars(self, **kwargs) -> List[str]: get_uuid_invalid_chars.metadata = {"url": "/array/prim/uuid/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_valid(self, **kwargs) -> List[datetime.date]: + async def get_date_valid(self, **kwargs: Any) -> List[datetime.date]: """Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1593,7 +1593,7 @@ async def get_date_valid(self, **kwargs) -> List[datetime.date]: get_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore @distributed_trace_async - async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> None: + async def put_date_valid(self, array_body: List[datetime.date], **kwargs: Any) -> None: """Set array value ['2000-12-01', '1980-01-02', '1492-10-12']. :param array_body: @@ -1638,7 +1638,7 @@ async def put_date_valid(self, array_body: List[datetime.date], **kwargs) -> Non put_date_valid.metadata = {"url": "/array/prim/date/valid"} # type: ignore @distributed_trace_async - async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]: + async def get_date_invalid_null(self, **kwargs: Any) -> List[datetime.date]: """Get date array value ['2012-01-01', null, '1776-07-04']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1680,7 +1680,7 @@ async def get_date_invalid_null(self, **kwargs) -> List[datetime.date]: get_date_invalid_null.metadata = {"url": "/array/prim/date/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]: + async def get_date_invalid_chars(self, **kwargs: Any) -> List[datetime.date]: """Get date array value ['2011-03-22', 'date']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1722,7 +1722,7 @@ async def get_date_invalid_chars(self, **kwargs) -> List[datetime.date]: get_date_invalid_chars.metadata = {"url": "/array/prim/date/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_valid(self, **kwargs: Any) -> List[datetime.datetime]: """Get date-time array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. @@ -1765,7 +1765,7 @@ async def get_date_time_valid(self, **kwargs) -> List[datetime.datetime]: get_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs) -> None: + async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwargs: Any) -> None: """Set array value ['2000-12-01t00:00:01z', '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00']. @@ -1811,7 +1811,7 @@ async def put_date_time_valid(self, array_body: List[datetime.datetime], **kwarg put_date_time_valid.metadata = {"url": "/array/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_invalid_null(self, **kwargs: Any) -> List[datetime.datetime]: """Get date array value ['2000-12-01t00:00:01z', null]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1853,7 +1853,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> List[datetime.datetime]: get_date_time_invalid_null.metadata = {"url": "/array/prim/date-time/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_invalid_chars(self, **kwargs: Any) -> List[datetime.datetime]: """Get date array value ['2000-12-01t00:00:01z', 'date-time']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1895,7 +1895,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> List[datetime.datetime] get_date_time_invalid_chars.metadata = {"url": "/array/prim/date-time/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime]: + async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> List[datetime.datetime]: """Get date-time array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. @@ -1938,7 +1938,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> List[datetime.datetime] get_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwargs) -> None: + async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], **kwargs: Any) -> None: """Set array value ['Fri, 01 Dec 2000 00:00:01 GMT', 'Wed, 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT']. @@ -1984,7 +1984,7 @@ async def put_date_time_rfc1123_valid(self, array_body: List[datetime.datetime], put_date_time_rfc1123_valid.metadata = {"url": "/array/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]: + async def get_duration_valid(self, **kwargs: Any) -> List[datetime.timedelta]: """Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2026,7 +2026,7 @@ async def get_duration_valid(self, **kwargs) -> List[datetime.timedelta]: get_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore @distributed_trace_async - async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs) -> None: + async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwargs: Any) -> None: """Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S']. :param array_body: @@ -2071,7 +2071,7 @@ async def put_duration_valid(self, array_body: List[datetime.timedelta], **kwarg put_duration_valid.metadata = {"url": "/array/prim/duration/valid"} # type: ignore @distributed_trace_async - async def get_byte_valid(self, **kwargs) -> List[bytearray]: + async def get_byte_valid(self, **kwargs: Any) -> List[bytearray]: """Get byte array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each item encoded in base64. @@ -2114,7 +2114,7 @@ async def get_byte_valid(self, **kwargs) -> List[bytearray]: get_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore @distributed_trace_async - async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None: + async def put_byte_valid(self, array_body: List[bytearray], **kwargs: Any) -> None: """Put the array value [hex(FF FF FF FA), hex(01 02 03), hex (25, 29, 43)] with each elementencoded in base 64. @@ -2160,7 +2160,7 @@ async def put_byte_valid(self, array_body: List[bytearray], **kwargs) -> None: put_byte_valid.metadata = {"url": "/array/prim/byte/valid"} # type: ignore @distributed_trace_async - async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]: + async def get_byte_invalid_null(self, **kwargs: Any) -> List[bytearray]: """Get byte array value [hex(AB, AC, AD), null] with the first item base64 encoded. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2202,7 +2202,7 @@ async def get_byte_invalid_null(self, **kwargs) -> List[bytearray]: get_byte_invalid_null.metadata = {"url": "/array/prim/byte/invalidnull"} # type: ignore @distributed_trace_async - async def get_base64_url(self, **kwargs) -> List[bytes]: + async def get_base64_url(self, **kwargs: Any) -> List[bytes]: """Get array value ['a string that gets encoded with base64url', 'test string' 'Lorem ipsum'] with the items base64url encoded. @@ -2245,7 +2245,7 @@ async def get_base64_url(self, **kwargs) -> List[bytes]: get_base64_url.metadata = {"url": "/array/prim/base64url/valid"} # type: ignore @distributed_trace_async - async def get_complex_null(self, **kwargs) -> List["_models.Product"]: + async def get_complex_null(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type null value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2287,7 +2287,7 @@ async def get_complex_null(self, **kwargs) -> List["_models.Product"]: get_complex_null.metadata = {"url": "/array/complex/null"} # type: ignore @distributed_trace_async - async def get_complex_empty(self, **kwargs) -> List["_models.Product"]: + async def get_complex_empty(self, **kwargs: Any) -> List["_models.Product"]: """Get empty array of complex type []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2329,7 +2329,7 @@ async def get_complex_empty(self, **kwargs) -> List["_models.Product"]: get_complex_empty.metadata = {"url": "/array/complex/empty"} # type: ignore @distributed_trace_async - async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]: + async def get_complex_item_null(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with null item [{'integer': 1 'string': '2'}, null, {'integer': 5, 'string': '6'}]. @@ -2372,7 +2372,7 @@ async def get_complex_item_null(self, **kwargs) -> List["_models.Product"]: get_complex_item_null.metadata = {"url": "/array/complex/itemnull"} # type: ignore @distributed_trace_async - async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]: + async def get_complex_item_empty(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with empty item [{'integer': 1 'string': '2'}, {}, {'integer': 5, 'string': '6'}]. @@ -2415,7 +2415,7 @@ async def get_complex_item_empty(self, **kwargs) -> List["_models.Product"]: get_complex_item_empty.metadata = {"url": "/array/complex/itemempty"} # type: ignore @distributed_trace_async - async def get_complex_valid(self, **kwargs) -> List["_models.Product"]: + async def get_complex_valid(self, **kwargs: Any) -> List["_models.Product"]: """Get array of complex type with [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. @@ -2458,7 +2458,7 @@ async def get_complex_valid(self, **kwargs) -> List["_models.Product"]: get_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore @distributed_trace_async - async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs) -> None: + async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs: Any) -> None: """Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. @@ -2504,7 +2504,7 @@ async def put_complex_valid(self, array_body: List["_models.Product"], **kwargs) put_complex_valid.metadata = {"url": "/array/complex/valid"} # type: ignore @distributed_trace_async - async def get_array_null(self, **kwargs) -> List[List[str]]: + async def get_array_null(self, **kwargs: Any) -> List[List[str]]: """Get a null array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2546,7 +2546,7 @@ async def get_array_null(self, **kwargs) -> List[List[str]]: get_array_null.metadata = {"url": "/array/array/null"} # type: ignore @distributed_trace_async - async def get_array_empty(self, **kwargs) -> List[List[str]]: + async def get_array_empty(self, **kwargs: Any) -> List[List[str]]: """Get an empty array []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2588,7 +2588,7 @@ async def get_array_empty(self, **kwargs) -> List[List[str]]: get_array_empty.metadata = {"url": "/array/array/empty"} # type: ignore @distributed_trace_async - async def get_array_item_null(self, **kwargs) -> List[List[str]]: + async def get_array_item_null(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2630,7 +2630,7 @@ async def get_array_item_null(self, **kwargs) -> List[List[str]]: get_array_item_null.metadata = {"url": "/array/array/itemnull"} # type: ignore @distributed_trace_async - async def get_array_item_empty(self, **kwargs) -> List[List[str]]: + async def get_array_item_empty(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2672,7 +2672,7 @@ async def get_array_item_empty(self, **kwargs) -> List[List[str]]: get_array_item_empty.metadata = {"url": "/array/array/itemempty"} # type: ignore @distributed_trace_async - async def get_array_valid(self, **kwargs) -> List[List[str]]: + async def get_array_valid(self, **kwargs: Any) -> List[List[str]]: """Get an array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2714,7 +2714,7 @@ async def get_array_valid(self, **kwargs) -> List[List[str]]: get_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore @distributed_trace_async - async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None: + async def put_array_valid(self, array_body: List[List[str]], **kwargs: Any) -> None: """Put An array of array of strings [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]. :param array_body: @@ -2759,7 +2759,7 @@ async def put_array_valid(self, array_body: List[List[str]], **kwargs) -> None: put_array_valid.metadata = {"url": "/array/array/valid"} # type: ignore @distributed_trace_async - async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_null(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries with value null. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2801,7 +2801,7 @@ async def get_dictionary_null(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_null.metadata = {"url": "/array/dictionary/null"} # type: ignore @distributed_trace_async - async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_empty(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value []. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2843,7 +2843,7 @@ async def get_dictionary_empty(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_empty.metadata = {"url": "/array/dictionary/empty"} # type: ignore @distributed_trace_async - async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_item_null(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, null, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2886,7 +2886,7 @@ async def get_dictionary_item_null(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_item_null.metadata = {"url": "/array/dictionary/itemnull"} # type: ignore @distributed_trace_async - async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_item_empty(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2929,7 +2929,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_item_empty.metadata = {"url": "/array/dictionary/itemempty"} # type: ignore @distributed_trace_async - async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]: + async def get_dictionary_valid(self, **kwargs: Any) -> List[Dict[str, str]]: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. @@ -2972,7 +2972,7 @@ async def get_dictionary_valid(self, **kwargs) -> List[Dict[str, str]]: get_dictionary_valid.metadata = {"url": "/array/dictionary/valid"} # type: ignore @distributed_trace_async - async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs) -> None: + async def put_dictionary_valid(self, array_body: List[Dict[str, str]], **kwargs: Any) -> None: """Get an array of Dictionaries of type with value [{'1': 'one', '2': 'two', '3': 'three'}, {'4': 'four', '5': 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}]. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py index 6571a778e14..aa8e7f8867f 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/aio/operations/_bool_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_true(self, **kwargs) -> bool: + async def get_true(self, **kwargs: Any) -> bool: """Get true Boolean value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_true(self, **kwargs) -> bool: get_true.metadata = {"url": "/bool/true"} # type: ignore @distributed_trace_async - async def put_true(self, **kwargs) -> None: + async def put_true(self, **kwargs: Any) -> None: """Set Boolean value true. :keyword callable cls: A custom type or function that will be passed the direct response @@ -134,7 +134,7 @@ async def put_true(self, **kwargs) -> None: put_true.metadata = {"url": "/bool/true"} # type: ignore @distributed_trace_async - async def get_false(self, **kwargs) -> bool: + async def get_false(self, **kwargs: Any) -> bool: """Get false Boolean value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -176,7 +176,7 @@ async def get_false(self, **kwargs) -> bool: get_false.metadata = {"url": "/bool/false"} # type: ignore @distributed_trace_async - async def put_false(self, **kwargs) -> None: + async def put_false(self, **kwargs: Any) -> None: """Set Boolean value false. :keyword callable cls: A custom type or function that will be passed the direct response @@ -220,7 +220,7 @@ async def put_false(self, **kwargs) -> None: put_false.metadata = {"url": "/bool/false"} # type: ignore @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[bool]: + async def get_null(self, **kwargs: Any) -> Optional[bool]: """Get null Boolean value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,7 +262,7 @@ async def get_null(self, **kwargs) -> Optional[bool]: get_null.metadata = {"url": "/bool/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> bool: + async def get_invalid(self, **kwargs: Any) -> bool: """Get invalid Boolean value. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py index 509c3b03a7f..9bb0c932e15 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByte/bodybyte/aio/operations/_byte_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> bytearray: + async def get_null(self, **kwargs: Any) -> bytearray: """Get null byte value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_null(self, **kwargs) -> bytearray: get_null.metadata = {"url": "/byte/null"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> bytearray: + async def get_empty(self, **kwargs: Any) -> bytearray: """Get empty byte value ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -132,7 +132,7 @@ async def get_empty(self, **kwargs) -> bytearray: get_empty.metadata = {"url": "/byte/empty"} # type: ignore @distributed_trace_async - async def get_non_ascii(self, **kwargs) -> bytearray: + async def get_non_ascii(self, **kwargs: Any) -> bytearray: """Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). :keyword callable cls: A custom type or function that will be passed the direct response @@ -174,7 +174,7 @@ async def get_non_ascii(self, **kwargs) -> bytearray: get_non_ascii.metadata = {"url": "/byte/nonAscii"} # type: ignore @distributed_trace_async - async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None: + async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: """Put non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). :param byte_body: Base64-encoded non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). @@ -219,7 +219,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None: put_non_ascii.metadata = {"url": "/byte/nonAscii"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> bytearray: + async def get_invalid(self, **kwargs: Any) -> bytearray: """Get invalid byte value ':::SWAGGER::::'. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py index 2431d296bbb..aafc42dcbcb 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyByteWithPackageName/bodybytewithpackagename/aio/operations/_byte_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> bytearray: + async def get_null(self, **kwargs: Any) -> bytearray: """Get null byte value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_null(self, **kwargs) -> bytearray: get_null.metadata = {"url": "/byte/null"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> bytearray: + async def get_empty(self, **kwargs: Any) -> bytearray: """Get empty byte value ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -132,7 +132,7 @@ async def get_empty(self, **kwargs) -> bytearray: get_empty.metadata = {"url": "/byte/empty"} # type: ignore @distributed_trace_async - async def get_non_ascii(self, **kwargs) -> bytearray: + async def get_non_ascii(self, **kwargs: Any) -> bytearray: """Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). :keyword callable cls: A custom type or function that will be passed the direct response @@ -174,7 +174,7 @@ async def get_non_ascii(self, **kwargs) -> bytearray: get_non_ascii.metadata = {"url": "/byte/nonAscii"} # type: ignore @distributed_trace_async - async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None: + async def put_non_ascii(self, byte_body: bytearray, **kwargs: Any) -> None: """Put non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). :param byte_body: Base64-encoded non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6). @@ -219,7 +219,7 @@ async def put_non_ascii(self, byte_body: bytearray, **kwargs) -> None: put_non_ascii.metadata = {"url": "/byte/nonAscii"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> bytearray: + async def get_invalid(self, **kwargs: Any) -> bytearray: """Get invalid byte value ':::SWAGGER::::'. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py index 82780d268cb..5fc383a12c5 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_array_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.ArrayWrapper": + async def get_valid(self, **kwargs: Any) -> "_models.ArrayWrapper": """Get complex types with array property. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.ArrayWrapper": get_valid.metadata = {"url": "/complex/array/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, array: Optional[List[str]] = None, **kwargs) -> None: + async def put_valid(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: """Put complex types with array property. :param array: @@ -137,7 +137,7 @@ async def put_valid(self, array: Optional[List[str]] = None, **kwargs) -> None: put_valid.metadata = {"url": "/complex/array/valid"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> "_models.ArrayWrapper": + async def get_empty(self, **kwargs: Any) -> "_models.ArrayWrapper": """Get complex types with array property which is empty. :keyword callable cls: A custom type or function that will be passed the direct response @@ -179,7 +179,7 @@ async def get_empty(self, **kwargs) -> "_models.ArrayWrapper": get_empty.metadata = {"url": "/complex/array/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, array: Optional[List[str]] = None, **kwargs) -> None: + async def put_empty(self, array: Optional[List[str]] = None, **kwargs: Any) -> None: """Put complex types with array property which is empty. :param array: @@ -226,7 +226,7 @@ async def put_empty(self, array: Optional[List[str]] = None, **kwargs) -> None: put_empty.metadata = {"url": "/complex/array/empty"} # type: ignore @distributed_trace_async - async def get_not_provided(self, **kwargs) -> "_models.ArrayWrapper": + async def get_not_provided(self, **kwargs: Any) -> "_models.ArrayWrapper": """Get complex types with array property while server doesn't provide a response payload. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py index b5b0f565193..61e623b1965 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_basic_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.Basic": + async def get_valid(self, **kwargs: Any) -> "_models.Basic": """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.Basic": get_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, complex_body: "_models.Basic", **kwargs) -> None: + async def put_valid(self, complex_body: "_models.Basic", **kwargs: Any) -> None: """Please put {id: 2, name: 'abc', color: 'Magenta'}. :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'}. @@ -137,7 +137,7 @@ async def put_valid(self, complex_body: "_models.Basic", **kwargs) -> None: put_valid.metadata = {"url": "/complex/basic/valid"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> "_models.Basic": + async def get_invalid(self, **kwargs: Any) -> "_models.Basic": """Get a basic complex type that is invalid for the local strong type. :keyword callable cls: A custom type or function that will be passed the direct response @@ -179,7 +179,7 @@ async def get_invalid(self, **kwargs) -> "_models.Basic": get_invalid.metadata = {"url": "/complex/basic/invalid"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> "_models.Basic": + async def get_empty(self, **kwargs: Any) -> "_models.Basic": """Get a basic complex type that is empty. :keyword callable cls: A custom type or function that will be passed the direct response @@ -221,7 +221,7 @@ async def get_empty(self, **kwargs) -> "_models.Basic": get_empty.metadata = {"url": "/complex/basic/empty"} # type: ignore @distributed_trace_async - async def get_null(self, **kwargs) -> "_models.Basic": + async def get_null(self, **kwargs: Any) -> "_models.Basic": """Get a basic complex type whose properties are null. :keyword callable cls: A custom type or function that will be passed the direct response @@ -263,7 +263,7 @@ async def get_null(self, **kwargs) -> "_models.Basic": get_null.metadata = {"url": "/complex/basic/null"} # type: ignore @distributed_trace_async - async def get_not_provided(self, **kwargs) -> "_models.Basic": + async def get_not_provided(self, **kwargs: Any) -> "_models.Basic": """Get a basic complex type while the server doesn't provide a response payload. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py index d769ec04cf7..e66d91ac5ec 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_dictionary_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.DictionaryWrapper": + async def get_valid(self, **kwargs: Any) -> "_models.DictionaryWrapper": """Get complex types with dictionary property. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.DictionaryWrapper": get_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kwargs) -> None: + async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """Put complex types with dictionary property. :param default_program: Dictionary of :code:``. @@ -137,7 +137,7 @@ async def put_valid(self, default_program: Optional[Dict[str, str]] = None, **kw put_valid.metadata = {"url": "/complex/dictionary/typed/valid"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> "_models.DictionaryWrapper": + async def get_empty(self, **kwargs: Any) -> "_models.DictionaryWrapper": """Get complex types with dictionary property which is empty. :keyword callable cls: A custom type or function that will be passed the direct response @@ -179,7 +179,7 @@ async def get_empty(self, **kwargs) -> "_models.DictionaryWrapper": get_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kwargs) -> None: + async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """Put complex types with dictionary property which is empty. :param default_program: Dictionary of :code:``. @@ -226,7 +226,7 @@ async def put_empty(self, default_program: Optional[Dict[str, str]] = None, **kw put_empty.metadata = {"url": "/complex/dictionary/typed/empty"} # type: ignore @distributed_trace_async - async def get_null(self, **kwargs) -> "_models.DictionaryWrapper": + async def get_null(self, **kwargs: Any) -> "_models.DictionaryWrapper": """Get complex types with dictionary property which is null. :keyword callable cls: A custom type or function that will be passed the direct response @@ -268,7 +268,7 @@ async def get_null(self, **kwargs) -> "_models.DictionaryWrapper": get_null.metadata = {"url": "/complex/dictionary/typed/null"} # type: ignore @distributed_trace_async - async def get_not_provided(self, **kwargs) -> "_models.DictionaryWrapper": + async def get_not_provided(self, **kwargs: Any) -> "_models.DictionaryWrapper": """Get complex types with dictionary property while server doesn't provide a response payload. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py index 4d71b9a73f1..2df7cbfe830 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_flattencomplex_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.MyBaseType": + async def get_valid(self, **kwargs: Any) -> "_models.MyBaseType": """get_valid. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py index b95617bd6f0..a3d5ca67f92 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_inheritance_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.Siamese": + async def get_valid(self, **kwargs: Any) -> "_models.Siamese": """Get complex types that extend others. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.Siamese": get_valid.metadata = {"url": "/complex/inheritance/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, complex_body: "_models.Siamese", **kwargs) -> None: + async def put_valid(self, complex_body: "_models.Siamese", **kwargs: Any) -> None: """Put complex types that extend others. :param complex_body: Please put a siamese with id=2, name="Siameee", color=green, diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py index 0c83c2573a0..c13d5af5c26 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphicrecursive_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.Fish": + async def get_valid(self, **kwargs: Any) -> "_models.Fish": """Get complex types that are polymorphic and have recursive references. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.Fish": get_valid.metadata = {"url": "/complex/polymorphicrecursive/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, complex_body: "_models.Fish", **kwargs) -> None: + async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: """Put complex types that are polymorphic and have recursive references. :param complex_body: Please put a salmon that looks like this: diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py index f9afe8e9551..9efac99ebe0 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_polymorphism_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.Fish": + async def get_valid(self, **kwargs: Any) -> "_models.Fish": """Get complex types that are polymorphic. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.Fish": get_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, complex_body: "_models.Fish", **kwargs) -> None: + async def put_valid(self, complex_body: "_models.Fish", **kwargs: Any) -> None: """Put complex types that are polymorphic. :param complex_body: Please put a salmon that looks like this: @@ -167,7 +167,7 @@ async def put_valid(self, complex_body: "_models.Fish", **kwargs) -> None: put_valid.metadata = {"url": "/complex/polymorphism/valid"} # type: ignore @distributed_trace_async - async def get_dot_syntax(self, **kwargs) -> "_models.DotFish": + async def get_dot_syntax(self, **kwargs: Any) -> "_models.DotFish": """Get complex types that are polymorphic, JSON key contains a dot. :keyword callable cls: A custom type or function that will be passed the direct response @@ -209,7 +209,7 @@ async def get_dot_syntax(self, **kwargs) -> "_models.DotFish": get_dot_syntax.metadata = {"url": "/complex/polymorphism/dotsyntax"} # type: ignore @distributed_trace_async - async def get_composed_with_discriminator(self, **kwargs) -> "_models.DotFishMarket": + async def get_composed_with_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": """Get complex object composing a polymorphic scalar property and array property with polymorphic element type, with discriminator specified. Deserialization must NOT fail and use the discriminator type specified on the wire. @@ -253,7 +253,7 @@ async def get_composed_with_discriminator(self, **kwargs) -> "_models.DotFishMar get_composed_with_discriminator.metadata = {"url": "/complex/polymorphism/composedWithDiscriminator"} # type: ignore @distributed_trace_async - async def get_composed_without_discriminator(self, **kwargs) -> "_models.DotFishMarket": + async def get_composed_without_discriminator(self, **kwargs: Any) -> "_models.DotFishMarket": """Get complex object composing a polymorphic scalar property and array property with polymorphic element type, without discriminator specified on wire. Deserialization must NOT fail and use the explicit type of the property. @@ -297,7 +297,7 @@ async def get_composed_without_discriminator(self, **kwargs) -> "_models.DotFish get_composed_without_discriminator.metadata = {"url": "/complex/polymorphism/composedWithoutDiscriminator"} # type: ignore @distributed_trace_async - async def get_complicated(self, **kwargs) -> "_models.Salmon": + async def get_complicated(self, **kwargs: Any) -> "_models.Salmon": """Get complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. @@ -340,7 +340,7 @@ async def get_complicated(self, **kwargs) -> "_models.Salmon": get_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore @distributed_trace_async - async def put_complicated(self, complex_body: "_models.Salmon", **kwargs) -> None: + async def put_complicated(self, complex_body: "_models.Salmon", **kwargs: Any) -> None: """Put complex types that are polymorphic, but not at the root of the hierarchy; also have additional properties. @@ -386,7 +386,7 @@ async def put_complicated(self, complex_body: "_models.Salmon", **kwargs) -> Non put_complicated.metadata = {"url": "/complex/polymorphism/complicated"} # type: ignore @distributed_trace_async - async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwargs) -> "_models.Salmon": + async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwargs: Any) -> "_models.Salmon": """Put complex types that are polymorphic, omitting the discriminator. :param complex_body: @@ -435,7 +435,7 @@ async def put_missing_discriminator(self, complex_body: "_models.Salmon", **kwar put_missing_discriminator.metadata = {"url": "/complex/polymorphism/missingdiscriminator"} # type: ignore @distributed_trace_async - async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwargs) -> None: + async def put_valid_missing_required(self, complex_body: "_models.Fish", **kwargs: Any) -> None: """Put complex types that are polymorphic, attempting to omit required 'birthday' field - the request should not be allowed from the client. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py index 82ccdf69f51..1c23c7d2488 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_primitive_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_int(self, **kwargs) -> "_models.IntWrapper": + async def get_int(self, **kwargs: Any) -> "_models.IntWrapper": """Get complex types with integer properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_int(self, **kwargs) -> "_models.IntWrapper": get_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore @distributed_trace_async - async def put_int(self, complex_body: "_models.IntWrapper", **kwargs) -> None: + async def put_int(self, complex_body: "_models.IntWrapper", **kwargs: Any) -> None: """Put complex types with integer properties. :param complex_body: Please put -1 and 2. @@ -136,7 +136,7 @@ async def put_int(self, complex_body: "_models.IntWrapper", **kwargs) -> None: put_int.metadata = {"url": "/complex/primitive/integer"} # type: ignore @distributed_trace_async - async def get_long(self, **kwargs) -> "_models.LongWrapper": + async def get_long(self, **kwargs: Any) -> "_models.LongWrapper": """Get complex types with long properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -178,7 +178,7 @@ async def get_long(self, **kwargs) -> "_models.LongWrapper": get_long.metadata = {"url": "/complex/primitive/long"} # type: ignore @distributed_trace_async - async def put_long(self, complex_body: "_models.LongWrapper", **kwargs) -> None: + async def put_long(self, complex_body: "_models.LongWrapper", **kwargs: Any) -> None: """Put complex types with long properties. :param complex_body: Please put 1099511627775 and -999511627788. @@ -223,7 +223,7 @@ async def put_long(self, complex_body: "_models.LongWrapper", **kwargs) -> None: put_long.metadata = {"url": "/complex/primitive/long"} # type: ignore @distributed_trace_async - async def get_float(self, **kwargs) -> "_models.FloatWrapper": + async def get_float(self, **kwargs: Any) -> "_models.FloatWrapper": """Get complex types with float properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -265,7 +265,7 @@ async def get_float(self, **kwargs) -> "_models.FloatWrapper": get_float.metadata = {"url": "/complex/primitive/float"} # type: ignore @distributed_trace_async - async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs) -> None: + async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs: Any) -> None: """Put complex types with float properties. :param complex_body: Please put 1.05 and -0.003. @@ -310,7 +310,7 @@ async def put_float(self, complex_body: "_models.FloatWrapper", **kwargs) -> Non put_float.metadata = {"url": "/complex/primitive/float"} # type: ignore @distributed_trace_async - async def get_double(self, **kwargs) -> "_models.DoubleWrapper": + async def get_double(self, **kwargs: Any) -> "_models.DoubleWrapper": """Get complex types with double properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -352,7 +352,7 @@ async def get_double(self, **kwargs) -> "_models.DoubleWrapper": get_double.metadata = {"url": "/complex/primitive/double"} # type: ignore @distributed_trace_async - async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs) -> None: + async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs: Any) -> None: """Put complex types with double properties. :param complex_body: Please put 3e-100 and @@ -398,7 +398,7 @@ async def put_double(self, complex_body: "_models.DoubleWrapper", **kwargs) -> N put_double.metadata = {"url": "/complex/primitive/double"} # type: ignore @distributed_trace_async - async def get_bool(self, **kwargs) -> "_models.BooleanWrapper": + async def get_bool(self, **kwargs: Any) -> "_models.BooleanWrapper": """Get complex types with bool properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -440,7 +440,7 @@ async def get_bool(self, **kwargs) -> "_models.BooleanWrapper": get_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore @distributed_trace_async - async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs) -> None: + async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs: Any) -> None: """Put complex types with bool properties. :param complex_body: Please put true and false. @@ -485,7 +485,7 @@ async def put_bool(self, complex_body: "_models.BooleanWrapper", **kwargs) -> No put_bool.metadata = {"url": "/complex/primitive/bool"} # type: ignore @distributed_trace_async - async def get_string(self, **kwargs) -> "_models.StringWrapper": + async def get_string(self, **kwargs: Any) -> "_models.StringWrapper": """Get complex types with string properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -527,7 +527,7 @@ async def get_string(self, **kwargs) -> "_models.StringWrapper": get_string.metadata = {"url": "/complex/primitive/string"} # type: ignore @distributed_trace_async - async def put_string(self, complex_body: "_models.StringWrapper", **kwargs) -> None: + async def put_string(self, complex_body: "_models.StringWrapper", **kwargs: Any) -> None: """Put complex types with string properties. :param complex_body: Please put 'goodrequest', '', and null. @@ -572,7 +572,7 @@ async def put_string(self, complex_body: "_models.StringWrapper", **kwargs) -> N put_string.metadata = {"url": "/complex/primitive/string"} # type: ignore @distributed_trace_async - async def get_date(self, **kwargs) -> "_models.DateWrapper": + async def get_date(self, **kwargs: Any) -> "_models.DateWrapper": """Get complex types with date properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -614,7 +614,7 @@ async def get_date(self, **kwargs) -> "_models.DateWrapper": get_date.metadata = {"url": "/complex/primitive/date"} # type: ignore @distributed_trace_async - async def put_date(self, complex_body: "_models.DateWrapper", **kwargs) -> None: + async def put_date(self, complex_body: "_models.DateWrapper", **kwargs: Any) -> None: """Put complex types with date properties. :param complex_body: Please put '0001-01-01' and '2016-02-29'. @@ -659,7 +659,7 @@ async def put_date(self, complex_body: "_models.DateWrapper", **kwargs) -> None: put_date.metadata = {"url": "/complex/primitive/date"} # type: ignore @distributed_trace_async - async def get_date_time(self, **kwargs) -> "_models.DatetimeWrapper": + async def get_date_time(self, **kwargs: Any) -> "_models.DatetimeWrapper": """Get complex types with datetime properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -701,7 +701,7 @@ async def get_date_time(self, **kwargs) -> "_models.DatetimeWrapper": get_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore @distributed_trace_async - async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs) -> None: + async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs: Any) -> None: """Put complex types with datetime properties. :param complex_body: Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00'. @@ -746,7 +746,7 @@ async def put_date_time(self, complex_body: "_models.DatetimeWrapper", **kwargs) put_date_time.metadata = {"url": "/complex/primitive/datetime"} # type: ignore @distributed_trace_async - async def get_date_time_rfc1123(self, **kwargs) -> "_models.Datetimerfc1123Wrapper": + async def get_date_time_rfc1123(self, **kwargs: Any) -> "_models.Datetimerfc1123Wrapper": """Get complex types with datetimeRfc1123 properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -788,7 +788,7 @@ async def get_date_time_rfc1123(self, **kwargs) -> "_models.Datetimerfc1123Wrapp get_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore @distributed_trace_async - async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrapper", **kwargs) -> None: + async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrapper", **kwargs: Any) -> None: """Put complex types with datetimeRfc1123 properties. :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and 'Mon, 18 May 2015 11:38:00 @@ -834,7 +834,7 @@ async def put_date_time_rfc1123(self, complex_body: "_models.Datetimerfc1123Wrap put_date_time_rfc1123.metadata = {"url": "/complex/primitive/datetimerfc1123"} # type: ignore @distributed_trace_async - async def get_duration(self, **kwargs) -> "_models.DurationWrapper": + async def get_duration(self, **kwargs: Any) -> "_models.DurationWrapper": """Get complex types with duration properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -876,7 +876,7 @@ async def get_duration(self, **kwargs) -> "_models.DurationWrapper": get_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore @distributed_trace_async - async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwargs) -> None: + async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwargs: Any) -> None: """Put complex types with duration properties. :param field: @@ -923,7 +923,7 @@ async def put_duration(self, field: Optional[datetime.timedelta] = None, **kwarg put_duration.metadata = {"url": "/complex/primitive/duration"} # type: ignore @distributed_trace_async - async def get_byte(self, **kwargs) -> "_models.ByteWrapper": + async def get_byte(self, **kwargs: Any) -> "_models.ByteWrapper": """Get complex types with byte properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -965,7 +965,7 @@ async def get_byte(self, **kwargs) -> "_models.ByteWrapper": get_byte.metadata = {"url": "/complex/primitive/byte"} # type: ignore @distributed_trace_async - async def put_byte(self, field: Optional[bytearray] = None, **kwargs) -> None: + async def put_byte(self, field: Optional[bytearray] = None, **kwargs: Any) -> None: """Put complex types with byte properties. :param field: diff --git a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py index 0b3b2e5a19e..2d8162686b5 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/aio/operations/_readonlyproperty_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_valid(self, **kwargs) -> "_models.ReadonlyObj": + async def get_valid(self, **kwargs: Any) -> "_models.ReadonlyObj": """Get complex types that have readonly properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_valid(self, **kwargs) -> "_models.ReadonlyObj": get_valid.metadata = {"url": "/complex/readonlyproperty/valid"} # type: ignore @distributed_trace_async - async def put_valid(self, size: Optional[int] = None, **kwargs) -> None: + async def put_valid(self, size: Optional[int] = None, **kwargs: Any) -> None: """Put complex types that have readonly properties. :param size: diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py index b5a1268dfa9..c5f42f857d4 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDate/bodydate/aio/operations/_date_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[datetime.date]: + async def get_null(self, **kwargs: Any) -> Optional[datetime.date]: """Get null date value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.date]: get_null.metadata = {"url": "/date/null"} # type: ignore @distributed_trace_async - async def get_invalid_date(self, **kwargs) -> datetime.date: + async def get_invalid_date(self, **kwargs: Any) -> datetime.date: """Get invalid date value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid_date(self, **kwargs) -> datetime.date: get_invalid_date.metadata = {"url": "/date/invaliddate"} # type: ignore @distributed_trace_async - async def get_overflow_date(self, **kwargs) -> datetime.date: + async def get_overflow_date(self, **kwargs: Any) -> datetime.date: """Get overflow date value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_overflow_date(self, **kwargs) -> datetime.date: get_overflow_date.metadata = {"url": "/date/overflowdate"} # type: ignore @distributed_trace_async - async def get_underflow_date(self, **kwargs) -> datetime.date: + async def get_underflow_date(self, **kwargs: Any) -> datetime.date: """Get underflow date value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -217,7 +217,7 @@ async def get_underflow_date(self, **kwargs) -> datetime.date: get_underflow_date.metadata = {"url": "/date/underflowdate"} # type: ignore @distributed_trace_async - async def put_max_date(self, date_body: datetime.date, **kwargs) -> None: + async def put_max_date(self, date_body: datetime.date, **kwargs: Any) -> None: """Put max date value 9999-12-31. :param date_body: date body. @@ -262,7 +262,7 @@ async def put_max_date(self, date_body: datetime.date, **kwargs) -> None: put_max_date.metadata = {"url": "/date/max"} # type: ignore @distributed_trace_async - async def get_max_date(self, **kwargs) -> datetime.date: + async def get_max_date(self, **kwargs: Any) -> datetime.date: """Get max date value 9999-12-31. :keyword callable cls: A custom type or function that will be passed the direct response @@ -304,7 +304,7 @@ async def get_max_date(self, **kwargs) -> datetime.date: get_max_date.metadata = {"url": "/date/max"} # type: ignore @distributed_trace_async - async def put_min_date(self, date_body: datetime.date, **kwargs) -> None: + async def put_min_date(self, date_body: datetime.date, **kwargs: Any) -> None: """Put min date value 0000-01-01. :param date_body: date body. @@ -349,7 +349,7 @@ async def put_min_date(self, date_body: datetime.date, **kwargs) -> None: put_min_date.metadata = {"url": "/date/min"} # type: ignore @distributed_trace_async - async def get_min_date(self, **kwargs) -> datetime.date: + async def get_min_date(self, **kwargs: Any) -> datetime.date: """Get min date value 0000-01-01. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py index 97b1dc6ade5..4c869e1754c 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTime/bodydatetime/aio/operations/_datetime_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[datetime.datetime]: + async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: """Get null datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.datetime]: get_null.metadata = {"url": "/datetime/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> datetime.datetime: + async def get_invalid(self, **kwargs: Any) -> datetime.datetime: """Get invalid datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid(self, **kwargs) -> datetime.datetime: get_invalid.metadata = {"url": "/datetime/invalid"} # type: ignore @distributed_trace_async - async def get_overflow(self, **kwargs) -> datetime.datetime: + async def get_overflow(self, **kwargs: Any) -> datetime.datetime: """Get overflow datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_overflow(self, **kwargs) -> datetime.datetime: get_overflow.metadata = {"url": "/datetime/overflow"} # type: ignore @distributed_trace_async - async def get_underflow(self, **kwargs) -> datetime.datetime: + async def get_underflow(self, **kwargs: Any) -> datetime.datetime: """Get underflow datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -217,7 +217,7 @@ async def get_underflow(self, **kwargs) -> datetime.datetime: get_underflow.metadata = {"url": "/datetime/underflow"} # type: ignore @distributed_trace_async - async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put max datetime value 9999-12-31T23:59:59.999Z. :param datetime_body: datetime body. @@ -262,7 +262,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs put_utc_max_date_time.metadata = {"url": "/datetime/max/utc"} # type: ignore @distributed_trace_async - async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in @@ -310,7 +310,7 @@ async def put_utc_max_date_time7_digits(self, datetime_body: datetime.datetime, put_utc_max_date_time7_digits.metadata = {"url": "/datetime/max/utc7ms"} # type: ignore @distributed_trace_async - async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value 9999-12-31t23:59:59.999z. :keyword callable cls: A custom type or function that will be passed the direct response @@ -352,7 +352,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: get_utc_lowercase_max_date_time.metadata = {"url": "/datetime/max/utc/lowercase"} # type: ignore @distributed_trace_async - async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value 9999-12-31T23:59:59.999Z. :keyword callable cls: A custom type or function that will be passed the direct response @@ -394,7 +394,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: get_utc_uppercase_max_date_time.metadata = {"url": "/datetime/max/utc/uppercase"} # type: ignore @distributed_trace_async - async def get_utc_uppercase_max_date_time7_digits(self, **kwargs) -> datetime.datetime: + async def get_utc_uppercase_max_date_time7_digits(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value 9999-12-31T23:59:59.9999999Z. This is against the recommendation that asks for 3 digits, but allow to test what happens in @@ -439,7 +439,7 @@ async def get_utc_uppercase_max_date_time7_digits(self, **kwargs) -> datetime.da get_utc_uppercase_max_date_time7_digits.metadata = {"url": "/datetime/max/utc7ms/uppercase"} # type: ignore @distributed_trace_async - async def put_local_positive_offset_max_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_local_positive_offset_max_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put max datetime value with positive numoffset 9999-12-31t23:59:59.999+14:00. :param datetime_body: datetime body. @@ -484,7 +484,7 @@ async def put_local_positive_offset_max_date_time(self, datetime_body: datetime. put_local_positive_offset_max_date_time.metadata = {"url": "/datetime/max/localpositiveoffset"} # type: ignore @distributed_trace_async - async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value with positive num offset 9999-12-31t23:59:59.999+14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -526,7 +526,7 @@ async def get_local_positive_offset_lowercase_max_date_time(self, **kwargs) -> d get_local_positive_offset_lowercase_max_date_time.metadata = {"url": "/datetime/max/localpositiveoffset/lowercase"} # type: ignore @distributed_trace_async - async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value with positive num offset 9999-12-31T23:59:59.999+14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -568,7 +568,7 @@ async def get_local_positive_offset_uppercase_max_date_time(self, **kwargs) -> d get_local_positive_offset_uppercase_max_date_time.metadata = {"url": "/datetime/max/localpositiveoffset/uppercase"} # type: ignore @distributed_trace_async - async def put_local_negative_offset_max_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_local_negative_offset_max_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put max datetime value with positive numoffset 9999-12-31t23:59:59.999-14:00. :param datetime_body: datetime body. @@ -613,7 +613,7 @@ async def put_local_negative_offset_max_date_time(self, datetime_body: datetime. put_local_negative_offset_max_date_time.metadata = {"url": "/datetime/max/localnegativeoffset"} # type: ignore @distributed_trace_async - async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value with positive num offset 9999-12-31T23:59:59.999-14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -655,7 +655,7 @@ async def get_local_negative_offset_uppercase_max_date_time(self, **kwargs) -> d get_local_negative_offset_uppercase_max_date_time.metadata = {"url": "/datetime/max/localnegativeoffset/uppercase"} # type: ignore @distributed_trace_async - async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value with positive num offset 9999-12-31t23:59:59.999-14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -697,7 +697,7 @@ async def get_local_negative_offset_lowercase_max_date_time(self, **kwargs) -> d get_local_negative_offset_lowercase_max_date_time.metadata = {"url": "/datetime/max/localnegativeoffset/lowercase"} # type: ignore @distributed_trace_async - async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put min datetime value 0001-01-01T00:00:00Z. :param datetime_body: datetime body. @@ -742,7 +742,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs put_utc_min_date_time.metadata = {"url": "/datetime/min/utc"} # type: ignore @distributed_trace_async - async def get_utc_min_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: """Get min datetime value 0001-01-01T00:00:00Z. :keyword callable cls: A custom type or function that will be passed the direct response @@ -784,7 +784,7 @@ async def get_utc_min_date_time(self, **kwargs) -> datetime.datetime: get_utc_min_date_time.metadata = {"url": "/datetime/min/utc"} # type: ignore @distributed_trace_async - async def put_local_positive_offset_min_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_local_positive_offset_min_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put min datetime value 0001-01-01T00:00:00+14:00. :param datetime_body: datetime body. @@ -829,7 +829,7 @@ async def put_local_positive_offset_min_date_time(self, datetime_body: datetime. put_local_positive_offset_min_date_time.metadata = {"url": "/datetime/min/localpositiveoffset"} # type: ignore @distributed_trace_async - async def get_local_positive_offset_min_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_positive_offset_min_date_time(self, **kwargs: Any) -> datetime.datetime: """Get min datetime value 0001-01-01T00:00:00+14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -871,7 +871,7 @@ async def get_local_positive_offset_min_date_time(self, **kwargs) -> datetime.da get_local_positive_offset_min_date_time.metadata = {"url": "/datetime/min/localpositiveoffset"} # type: ignore @distributed_trace_async - async def put_local_negative_offset_min_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_local_negative_offset_min_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put min datetime value 0001-01-01T00:00:00-14:00. :param datetime_body: datetime body. @@ -916,7 +916,7 @@ async def put_local_negative_offset_min_date_time(self, datetime_body: datetime. put_local_negative_offset_min_date_time.metadata = {"url": "/datetime/min/localnegativeoffset"} # type: ignore @distributed_trace_async - async def get_local_negative_offset_min_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_negative_offset_min_date_time(self, **kwargs: Any) -> datetime.datetime: """Get min datetime value 0001-01-01T00:00:00-14:00. :keyword callable cls: A custom type or function that will be passed the direct response @@ -958,7 +958,7 @@ async def get_local_negative_offset_min_date_time(self, **kwargs) -> datetime.da get_local_negative_offset_min_date_time.metadata = {"url": "/datetime/min/localnegativeoffset"} # type: ignore @distributed_trace_async - async def get_local_no_offset_min_date_time(self, **kwargs) -> datetime.datetime: + async def get_local_no_offset_min_date_time(self, **kwargs: Any) -> datetime.datetime: """Get min datetime value 0001-01-01T00:00:00. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py index 5fa34d8b8b0..be025ade51e 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDateTimeRfc1123/bodydatetimerfc1123/aio/operations/_datetimerfc1123_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[datetime.datetime]: + async def get_null(self, **kwargs: Any) -> Optional[datetime.datetime]: """Get null datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.datetime]: get_null.metadata = {"url": "/datetimerfc1123/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> datetime.datetime: + async def get_invalid(self, **kwargs: Any) -> datetime.datetime: """Get invalid datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid(self, **kwargs) -> datetime.datetime: get_invalid.metadata = {"url": "/datetimerfc1123/invalid"} # type: ignore @distributed_trace_async - async def get_overflow(self, **kwargs) -> datetime.datetime: + async def get_overflow(self, **kwargs: Any) -> datetime.datetime: """Get overflow datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_overflow(self, **kwargs) -> datetime.datetime: get_overflow.metadata = {"url": "/datetimerfc1123/overflow"} # type: ignore @distributed_trace_async - async def get_underflow(self, **kwargs) -> datetime.datetime: + async def get_underflow(self, **kwargs: Any) -> datetime.datetime: """Get underflow datetime value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -217,7 +217,7 @@ async def get_underflow(self, **kwargs) -> datetime.datetime: get_underflow.metadata = {"url": "/datetimerfc1123/underflow"} # type: ignore @distributed_trace_async - async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT. :param datetime_body: datetime body. @@ -262,7 +262,7 @@ async def put_utc_max_date_time(self, datetime_body: datetime.datetime, **kwargs put_utc_max_date_time.metadata = {"url": "/datetimerfc1123/max"} # type: ignore @distributed_trace_async - async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_lowercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value fri, 31 dec 9999 23:59:59 gmt. :keyword callable cls: A custom type or function that will be passed the direct response @@ -304,7 +304,7 @@ async def get_utc_lowercase_max_date_time(self, **kwargs) -> datetime.datetime: get_utc_lowercase_max_date_time.metadata = {"url": "/datetimerfc1123/max/lowercase"} # type: ignore @distributed_trace_async - async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_uppercase_max_date_time(self, **kwargs: Any) -> datetime.datetime: """Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT. :keyword callable cls: A custom type or function that will be passed the direct response @@ -346,7 +346,7 @@ async def get_utc_uppercase_max_date_time(self, **kwargs) -> datetime.datetime: get_utc_uppercase_max_date_time.metadata = {"url": "/datetimerfc1123/max/uppercase"} # type: ignore @distributed_trace_async - async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs) -> None: + async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs: Any) -> None: """Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT. :param datetime_body: datetime body. @@ -391,7 +391,7 @@ async def put_utc_min_date_time(self, datetime_body: datetime.datetime, **kwargs put_utc_min_date_time.metadata = {"url": "/datetimerfc1123/min"} # type: ignore @distributed_trace_async - async def get_utc_min_date_time(self, **kwargs) -> datetime.datetime: + async def get_utc_min_date_time(self, **kwargs: Any) -> datetime.datetime: """Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py index 0c12a75f976..b1c292772bd 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/aio/operations/_dictionary_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Dict[str, int]: + async def get_null(self, **kwargs: Any) -> Dict[str, int]: """Get null dictionary value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Dict[str, int]: get_null.metadata = {"url": "/dictionary/null"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> Dict[str, int]: + async def get_empty(self, **kwargs: Any) -> Dict[str, int]: """Get empty dictionary value {}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_empty(self, **kwargs) -> Dict[str, int]: get_empty.metadata = {"url": "/dictionary/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, array_body: Dict[str, str], **kwargs) -> None: + async def put_empty(self, array_body: Dict[str, str], **kwargs: Any) -> None: """Set dictionary value empty {}. :param array_body: @@ -178,7 +178,7 @@ async def put_empty(self, array_body: Dict[str, str], **kwargs) -> None: put_empty.metadata = {"url": "/dictionary/empty"} # type: ignore @distributed_trace_async - async def get_null_value(self, **kwargs) -> Dict[str, str]: + async def get_null_value(self, **kwargs: Any) -> Dict[str, str]: """Get Dictionary with null value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -220,7 +220,7 @@ async def get_null_value(self, **kwargs) -> Dict[str, str]: get_null_value.metadata = {"url": "/dictionary/nullvalue"} # type: ignore @distributed_trace_async - async def get_null_key(self, **kwargs) -> Dict[str, str]: + async def get_null_key(self, **kwargs: Any) -> Dict[str, str]: """Get Dictionary with null key. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,7 +262,7 @@ async def get_null_key(self, **kwargs) -> Dict[str, str]: get_null_key.metadata = {"url": "/dictionary/nullkey"} # type: ignore @distributed_trace_async - async def get_empty_string_key(self, **kwargs) -> Dict[str, str]: + async def get_empty_string_key(self, **kwargs: Any) -> Dict[str, str]: """Get Dictionary with key as empty string. :keyword callable cls: A custom type or function that will be passed the direct response @@ -304,7 +304,7 @@ async def get_empty_string_key(self, **kwargs) -> Dict[str, str]: get_empty_string_key.metadata = {"url": "/dictionary/keyemptystring"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> Dict[str, str]: + async def get_invalid(self, **kwargs: Any) -> Dict[str, str]: """Get invalid Dictionary value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -346,7 +346,7 @@ async def get_invalid(self, **kwargs) -> Dict[str, str]: get_invalid.metadata = {"url": "/dictionary/invalid"} # type: ignore @distributed_trace_async - async def get_boolean_tfft(self, **kwargs) -> Dict[str, bool]: + async def get_boolean_tfft(self, **kwargs: Any) -> Dict[str, bool]: """Get boolean dictionary value {"0": true, "1": false, "2": false, "3": true }. :keyword callable cls: A custom type or function that will be passed the direct response @@ -388,7 +388,7 @@ async def get_boolean_tfft(self, **kwargs) -> Dict[str, bool]: get_boolean_tfft.metadata = {"url": "/dictionary/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs) -> None: + async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs: Any) -> None: """Set dictionary value empty {"0": true, "1": false, "2": false, "3": true }. :param array_body: @@ -433,7 +433,7 @@ async def put_boolean_tfft(self, array_body: Dict[str, bool], **kwargs) -> None: put_boolean_tfft.metadata = {"url": "/dictionary/prim/boolean/tfft"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_null(self, **kwargs) -> Dict[str, bool]: + async def get_boolean_invalid_null(self, **kwargs: Any) -> Dict[str, bool]: """Get boolean dictionary value {"0": true, "1": null, "2": false }. :keyword callable cls: A custom type or function that will be passed the direct response @@ -475,7 +475,7 @@ async def get_boolean_invalid_null(self, **kwargs) -> Dict[str, bool]: get_boolean_invalid_null.metadata = {"url": "/dictionary/prim/boolean/true.null.false"} # type: ignore @distributed_trace_async - async def get_boolean_invalid_string(self, **kwargs) -> Dict[str, bool]: + async def get_boolean_invalid_string(self, **kwargs: Any) -> Dict[str, bool]: """Get boolean dictionary value '{"0": true, "1": "boolean", "2": false}'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -517,7 +517,7 @@ async def get_boolean_invalid_string(self, **kwargs) -> Dict[str, bool]: get_boolean_invalid_string.metadata = {"url": "/dictionary/prim/boolean/true.boolean.false"} # type: ignore @distributed_trace_async - async def get_integer_valid(self, **kwargs) -> Dict[str, int]: + async def get_integer_valid(self, **kwargs: Any) -> Dict[str, int]: """Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -559,7 +559,7 @@ async def get_integer_valid(self, **kwargs) -> Dict[str, int]: get_integer_valid.metadata = {"url": "/dictionary/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_integer_valid(self, array_body: Dict[str, int], **kwargs) -> None: + async def put_integer_valid(self, array_body: Dict[str, int], **kwargs: Any) -> None: """Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300}. :param array_body: @@ -604,7 +604,7 @@ async def put_integer_valid(self, array_body: Dict[str, int], **kwargs) -> None: put_integer_valid.metadata = {"url": "/dictionary/prim/integer/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_int_invalid_null(self, **kwargs) -> Dict[str, int]: + async def get_int_invalid_null(self, **kwargs: Any) -> Dict[str, int]: """Get integer dictionary value {"0": 1, "1": null, "2": 0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -646,7 +646,7 @@ async def get_int_invalid_null(self, **kwargs) -> Dict[str, int]: get_int_invalid_null.metadata = {"url": "/dictionary/prim/integer/1.null.zero"} # type: ignore @distributed_trace_async - async def get_int_invalid_string(self, **kwargs) -> Dict[str, int]: + async def get_int_invalid_string(self, **kwargs: Any) -> Dict[str, int]: """Get integer dictionary value {"0": 1, "1": "integer", "2": 0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -688,7 +688,7 @@ async def get_int_invalid_string(self, **kwargs) -> Dict[str, int]: get_int_invalid_string.metadata = {"url": "/dictionary/prim/integer/1.integer.0"} # type: ignore @distributed_trace_async - async def get_long_valid(self, **kwargs) -> Dict[str, int]: + async def get_long_valid(self, **kwargs: Any) -> Dict[str, int]: """Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -730,7 +730,7 @@ async def get_long_valid(self, **kwargs) -> Dict[str, int]: get_long_valid.metadata = {"url": "/dictionary/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def put_long_valid(self, array_body: Dict[str, int], **kwargs) -> None: + async def put_long_valid(self, array_body: Dict[str, int], **kwargs: Any) -> None: """Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300}. :param array_body: @@ -775,7 +775,7 @@ async def put_long_valid(self, array_body: Dict[str, int], **kwargs) -> None: put_long_valid.metadata = {"url": "/dictionary/prim/long/1.-1.3.300"} # type: ignore @distributed_trace_async - async def get_long_invalid_null(self, **kwargs) -> Dict[str, int]: + async def get_long_invalid_null(self, **kwargs: Any) -> Dict[str, int]: """Get long dictionary value {"0": 1, "1": null, "2": 0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -817,7 +817,7 @@ async def get_long_invalid_null(self, **kwargs) -> Dict[str, int]: get_long_invalid_null.metadata = {"url": "/dictionary/prim/long/1.null.zero"} # type: ignore @distributed_trace_async - async def get_long_invalid_string(self, **kwargs) -> Dict[str, int]: + async def get_long_invalid_string(self, **kwargs: Any) -> Dict[str, int]: """Get long dictionary value {"0": 1, "1": "integer", "2": 0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -859,7 +859,7 @@ async def get_long_invalid_string(self, **kwargs) -> Dict[str, int]: get_long_invalid_string.metadata = {"url": "/dictionary/prim/long/1.integer.0"} # type: ignore @distributed_trace_async - async def get_float_valid(self, **kwargs) -> Dict[str, float]: + async def get_float_valid(self, **kwargs: Any) -> Dict[str, float]: """Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -901,7 +901,7 @@ async def get_float_valid(self, **kwargs) -> Dict[str, float]: get_float_valid.metadata = {"url": "/dictionary/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_float_valid(self, array_body: Dict[str, float], **kwargs) -> None: + async def put_float_valid(self, array_body: Dict[str, float], **kwargs: Any) -> None: """Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20}. :param array_body: @@ -946,7 +946,7 @@ async def put_float_valid(self, array_body: Dict[str, float], **kwargs) -> None: put_float_valid.metadata = {"url": "/dictionary/prim/float/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_null(self, **kwargs) -> Dict[str, float]: + async def get_float_invalid_null(self, **kwargs: Any) -> Dict[str, float]: """Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -988,7 +988,7 @@ async def get_float_invalid_null(self, **kwargs) -> Dict[str, float]: get_float_invalid_null.metadata = {"url": "/dictionary/prim/float/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_float_invalid_string(self, **kwargs) -> Dict[str, float]: + async def get_float_invalid_string(self, **kwargs: Any) -> Dict[str, float]: """Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1030,7 +1030,7 @@ async def get_float_invalid_string(self, **kwargs) -> Dict[str, float]: get_float_invalid_string.metadata = {"url": "/dictionary/prim/float/1.number.0"} # type: ignore @distributed_trace_async - async def get_double_valid(self, **kwargs) -> Dict[str, float]: + async def get_double_valid(self, **kwargs: Any) -> Dict[str, float]: """Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1072,7 +1072,7 @@ async def get_double_valid(self, **kwargs) -> Dict[str, float]: get_double_valid.metadata = {"url": "/dictionary/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def put_double_valid(self, array_body: Dict[str, float], **kwargs) -> None: + async def put_double_valid(self, array_body: Dict[str, float], **kwargs: Any) -> None: """Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20}. :param array_body: @@ -1117,7 +1117,7 @@ async def put_double_valid(self, array_body: Dict[str, float], **kwargs) -> None put_double_valid.metadata = {"url": "/dictionary/prim/double/0--0.01-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_null(self, **kwargs) -> Dict[str, float]: + async def get_double_invalid_null(self, **kwargs: Any) -> Dict[str, float]: """Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1159,7 +1159,7 @@ async def get_double_invalid_null(self, **kwargs) -> Dict[str, float]: get_double_invalid_null.metadata = {"url": "/dictionary/prim/double/0.0-null-1.2e20"} # type: ignore @distributed_trace_async - async def get_double_invalid_string(self, **kwargs) -> Dict[str, float]: + async def get_double_invalid_string(self, **kwargs: Any) -> Dict[str, float]: """Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1201,7 +1201,7 @@ async def get_double_invalid_string(self, **kwargs) -> Dict[str, float]: get_double_invalid_string.metadata = {"url": "/dictionary/prim/double/1.number.0"} # type: ignore @distributed_trace_async - async def get_string_valid(self, **kwargs) -> Dict[str, str]: + async def get_string_valid(self, **kwargs: Any) -> Dict[str, str]: """Get string dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1243,7 +1243,7 @@ async def get_string_valid(self, **kwargs) -> Dict[str, str]: get_string_valid.metadata = {"url": "/dictionary/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def put_string_valid(self, array_body: Dict[str, str], **kwargs) -> None: + async def put_string_valid(self, array_body: Dict[str, str], **kwargs: Any) -> None: """Set dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"}. :param array_body: @@ -1288,7 +1288,7 @@ async def put_string_valid(self, array_body: Dict[str, str], **kwargs) -> None: put_string_valid.metadata = {"url": "/dictionary/prim/string/foo1.foo2.foo3"} # type: ignore @distributed_trace_async - async def get_string_with_null(self, **kwargs) -> Dict[str, str]: + async def get_string_with_null(self, **kwargs: Any) -> Dict[str, str]: """Get string dictionary value {"0": "foo", "1": null, "2": "foo2"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1330,7 +1330,7 @@ async def get_string_with_null(self, **kwargs) -> Dict[str, str]: get_string_with_null.metadata = {"url": "/dictionary/prim/string/foo.null.foo2"} # type: ignore @distributed_trace_async - async def get_string_with_invalid(self, **kwargs) -> Dict[str, str]: + async def get_string_with_invalid(self, **kwargs: Any) -> Dict[str, str]: """Get string dictionary value {"0": "foo", "1": 123, "2": "foo2"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1372,7 +1372,7 @@ async def get_string_with_invalid(self, **kwargs) -> Dict[str, str]: get_string_with_invalid.metadata = {"url": "/dictionary/prim/string/foo.123.foo2"} # type: ignore @distributed_trace_async - async def get_date_valid(self, **kwargs) -> Dict[str, datetime.date]: + async def get_date_valid(self, **kwargs: Any) -> Dict[str, datetime.date]: """Get integer dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1414,7 +1414,7 @@ async def get_date_valid(self, **kwargs) -> Dict[str, datetime.date]: get_date_valid.metadata = {"url": "/dictionary/prim/date/valid"} # type: ignore @distributed_trace_async - async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs) -> None: + async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs: Any) -> None: """Set dictionary value {"0": "2000-12-01", "1": "1980-01-02", "2": "1492-10-12"}. :param array_body: @@ -1459,7 +1459,7 @@ async def put_date_valid(self, array_body: Dict[str, datetime.date], **kwargs) - put_date_valid.metadata = {"url": "/dictionary/prim/date/valid"} # type: ignore @distributed_trace_async - async def get_date_invalid_null(self, **kwargs) -> Dict[str, datetime.date]: + async def get_date_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.date]: """Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1501,7 +1501,7 @@ async def get_date_invalid_null(self, **kwargs) -> Dict[str, datetime.date]: get_date_invalid_null.metadata = {"url": "/dictionary/prim/date/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_invalid_chars(self, **kwargs) -> Dict[str, datetime.date]: + async def get_date_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.date]: """Get date dictionary value {"0": "2011-03-22", "1": "date"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1543,7 +1543,7 @@ async def get_date_invalid_chars(self, **kwargs) -> Dict[str, datetime.date]: get_date_invalid_chars.metadata = {"url": "/dictionary/prim/date/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_valid(self, **kwargs) -> Dict[str, datetime.datetime]: + async def get_date_time_valid(self, **kwargs: Any) -> Dict[str, datetime.datetime]: """Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"}. @@ -1586,7 +1586,7 @@ async def get_date_time_valid(self, **kwargs) -> Dict[str, datetime.datetime]: get_date_time_valid.metadata = {"url": "/dictionary/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], **kwargs) -> None: + async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], **kwargs: Any) -> None: """Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"}. @@ -1632,7 +1632,7 @@ async def put_date_time_valid(self, array_body: Dict[str, datetime.datetime], ** put_date_time_valid.metadata = {"url": "/dictionary/prim/date-time/valid"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_null(self, **kwargs) -> Dict[str, datetime.datetime]: + async def get_date_time_invalid_null(self, **kwargs: Any) -> Dict[str, datetime.datetime]: """Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": null}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1674,7 +1674,7 @@ async def get_date_time_invalid_null(self, **kwargs) -> Dict[str, datetime.datet get_date_time_invalid_null.metadata = {"url": "/dictionary/prim/date-time/invalidnull"} # type: ignore @distributed_trace_async - async def get_date_time_invalid_chars(self, **kwargs) -> Dict[str, datetime.datetime]: + async def get_date_time_invalid_chars(self, **kwargs: Any) -> Dict[str, datetime.datetime]: """Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": "date-time"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1716,7 +1716,7 @@ async def get_date_time_invalid_chars(self, **kwargs) -> Dict[str, datetime.date get_date_time_invalid_chars.metadata = {"url": "/dictionary/prim/date-time/invalidchars"} # type: ignore @distributed_trace_async - async def get_date_time_rfc1123_valid(self, **kwargs) -> Dict[str, datetime.datetime]: + async def get_date_time_rfc1123_valid(self, **kwargs: Any) -> Dict[str, datetime.datetime]: """Get date-time-rfc1123 dictionary value {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. @@ -1759,7 +1759,7 @@ async def get_date_time_rfc1123_valid(self, **kwargs) -> Dict[str, datetime.date get_date_time_rfc1123_valid.metadata = {"url": "/dictionary/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datetime], **kwargs) -> None: + async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datetime], **kwargs: Any) -> None: """Set dictionary value empty {"0": "Fri, 01 Dec 2000 00:00:01 GMT", "1": "Wed, 02 Jan 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"}. @@ -1805,7 +1805,7 @@ async def put_date_time_rfc1123_valid(self, array_body: Dict[str, datetime.datet put_date_time_rfc1123_valid.metadata = {"url": "/dictionary/prim/date-time-rfc1123/valid"} # type: ignore @distributed_trace_async - async def get_duration_valid(self, **kwargs) -> Dict[str, datetime.timedelta]: + async def get_duration_valid(self, **kwargs: Any) -> Dict[str, datetime.timedelta]: """Get duration dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1847,7 +1847,7 @@ async def get_duration_valid(self, **kwargs) -> Dict[str, datetime.timedelta]: get_duration_valid.metadata = {"url": "/dictionary/prim/duration/valid"} # type: ignore @distributed_trace_async - async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], **kwargs) -> None: + async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], **kwargs: Any) -> None: """Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"}. :param array_body: @@ -1892,7 +1892,7 @@ async def put_duration_valid(self, array_body: Dict[str, datetime.timedelta], ** put_duration_valid.metadata = {"url": "/dictionary/prim/duration/valid"} # type: ignore @distributed_trace_async - async def get_byte_valid(self, **kwargs) -> Dict[str, bytearray]: + async def get_byte_valid(self, **kwargs: Any) -> Dict[str, bytearray]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} with each item encoded in base64. @@ -1935,7 +1935,7 @@ async def get_byte_valid(self, **kwargs) -> Dict[str, bytearray]: get_byte_valid.metadata = {"url": "/dictionary/prim/byte/valid"} # type: ignore @distributed_trace_async - async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs) -> None: + async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs: Any) -> None: """Put the dictionary value {"0": hex(FF FF FF FA), "1": hex(01 02 03), "2": hex (25, 29, 43)} with each elementencoded in base 64. @@ -1981,7 +1981,7 @@ async def put_byte_valid(self, array_body: Dict[str, bytearray], **kwargs) -> No put_byte_valid.metadata = {"url": "/dictionary/prim/byte/valid"} # type: ignore @distributed_trace_async - async def get_byte_invalid_null(self, **kwargs) -> Dict[str, bytearray]: + async def get_byte_invalid_null(self, **kwargs: Any) -> Dict[str, bytearray]: """Get byte dictionary value {"0": hex(FF FF FF FA), "1": null} with the first item base64 encoded. @@ -2024,7 +2024,7 @@ async def get_byte_invalid_null(self, **kwargs) -> Dict[str, bytearray]: get_byte_invalid_null.metadata = {"url": "/dictionary/prim/byte/invalidnull"} # type: ignore @distributed_trace_async - async def get_base64_url(self, **kwargs) -> Dict[str, bytes]: + async def get_base64_url(self, **kwargs: Any) -> Dict[str, bytes]: """Get base64url dictionary value {"0": "a string that gets encoded with base64url", "1": "test string", "2": "Lorem ipsum"}. @@ -2067,7 +2067,7 @@ async def get_base64_url(self, **kwargs) -> Dict[str, bytes]: get_base64_url.metadata = {"url": "/dictionary/prim/base64url/valid"} # type: ignore @distributed_trace_async - async def get_complex_null(self, **kwargs) -> Optional[Dict[str, "_models.Widget"]]: + async def get_complex_null(self, **kwargs: Any) -> Optional[Dict[str, "_models.Widget"]]: """Get dictionary of complex type null value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2109,7 +2109,7 @@ async def get_complex_null(self, **kwargs) -> Optional[Dict[str, "_models.Widget get_complex_null.metadata = {"url": "/dictionary/complex/null"} # type: ignore @distributed_trace_async - async def get_complex_empty(self, **kwargs) -> Dict[str, "_models.Widget"]: + async def get_complex_empty(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: """Get empty dictionary of complex type {}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2151,7 +2151,7 @@ async def get_complex_empty(self, **kwargs) -> Dict[str, "_models.Widget"]: get_complex_empty.metadata = {"url": "/dictionary/complex/empty"} # type: ignore @distributed_trace_async - async def get_complex_item_null(self, **kwargs) -> Dict[str, "_models.Widget"]: + async def get_complex_item_null(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: """Get dictionary of complex type with null item {"0": {"integer": 1, "string": "2"}, "1": null, "2": {"integer": 5, "string": "6"}}. @@ -2194,7 +2194,7 @@ async def get_complex_item_null(self, **kwargs) -> Dict[str, "_models.Widget"]: get_complex_item_null.metadata = {"url": "/dictionary/complex/itemnull"} # type: ignore @distributed_trace_async - async def get_complex_item_empty(self, **kwargs) -> Dict[str, "_models.Widget"]: + async def get_complex_item_empty(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: """Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}}. @@ -2237,7 +2237,7 @@ async def get_complex_item_empty(self, **kwargs) -> Dict[str, "_models.Widget"]: get_complex_item_empty.metadata = {"url": "/dictionary/complex/itemempty"} # type: ignore @distributed_trace_async - async def get_complex_valid(self, **kwargs) -> Dict[str, "_models.Widget"]: + async def get_complex_valid(self, **kwargs: Any) -> Dict[str, "_models.Widget"]: """Get dictionary of complex type with {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. @@ -2280,7 +2280,7 @@ async def get_complex_valid(self, **kwargs) -> Dict[str, "_models.Widget"]: get_complex_valid.metadata = {"url": "/dictionary/complex/valid"} # type: ignore @distributed_trace_async - async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwargs) -> None: + async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwargs: Any) -> None: """Put an dictionary of complex type with values {"0": {"integer": 1, "string": "2"}, "1": {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}}. @@ -2326,7 +2326,7 @@ async def put_complex_valid(self, array_body: Dict[str, "_models.Widget"], **kwa put_complex_valid.metadata = {"url": "/dictionary/complex/valid"} # type: ignore @distributed_trace_async - async def get_array_null(self, **kwargs) -> Optional[Dict[str, List[str]]]: + async def get_array_null(self, **kwargs: Any) -> Optional[Dict[str, List[str]]]: """Get a null array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2368,7 +2368,7 @@ async def get_array_null(self, **kwargs) -> Optional[Dict[str, List[str]]]: get_array_null.metadata = {"url": "/dictionary/array/null"} # type: ignore @distributed_trace_async - async def get_array_empty(self, **kwargs) -> Dict[str, List[str]]: + async def get_array_empty(self, **kwargs: Any) -> Dict[str, List[str]]: """Get an empty dictionary {}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2410,7 +2410,7 @@ async def get_array_empty(self, **kwargs) -> Dict[str, List[str]]: get_array_empty.metadata = {"url": "/dictionary/array/empty"} # type: ignore @distributed_trace_async - async def get_array_item_null(self, **kwargs) -> Dict[str, List[str]]: + async def get_array_item_null(self, **kwargs: Any) -> Dict[str, List[str]]: """Get an dictionary of array of strings {"0": ["1", "2", "3"], "1": null, "2": ["7", "8", "9"]}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2452,7 +2452,7 @@ async def get_array_item_null(self, **kwargs) -> Dict[str, List[str]]: get_array_item_null.metadata = {"url": "/dictionary/array/itemnull"} # type: ignore @distributed_trace_async - async def get_array_item_empty(self, **kwargs) -> Dict[str, List[str]]: + async def get_array_item_empty(self, **kwargs: Any) -> Dict[str, List[str]]: """Get an array of array of strings [{"0": ["1", "2", "3"], "1": [], "2": ["7", "8", "9"]}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2494,7 +2494,7 @@ async def get_array_item_empty(self, **kwargs) -> Dict[str, List[str]]: get_array_item_empty.metadata = {"url": "/dictionary/array/itemempty"} # type: ignore @distributed_trace_async - async def get_array_valid(self, **kwargs) -> Dict[str, List[str]]: + async def get_array_valid(self, **kwargs: Any) -> Dict[str, List[str]]: """Get an array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", "9"]}. @@ -2537,7 +2537,7 @@ async def get_array_valid(self, **kwargs) -> Dict[str, List[str]]: get_array_valid.metadata = {"url": "/dictionary/array/valid"} # type: ignore @distributed_trace_async - async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs) -> None: + async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs: Any) -> None: """Put An array of array of strings {"0": ["1", "2", "3"], "1": ["4", "5", "6"], "2": ["7", "8", "9"]}. @@ -2583,7 +2583,7 @@ async def put_array_valid(self, array_body: Dict[str, List[str]], **kwargs) -> N put_array_valid.metadata = {"url": "/dictionary/array/valid"} # type: ignore @distributed_trace_async - async def get_dictionary_null(self, **kwargs) -> Dict[str, Dict[str, str]]: + async def get_dictionary_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: """Get an dictionaries of dictionaries with value null. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2625,7 +2625,7 @@ async def get_dictionary_null(self, **kwargs) -> Dict[str, Dict[str, str]]: get_dictionary_null.metadata = {"url": "/dictionary/dictionary/null"} # type: ignore @distributed_trace_async - async def get_dictionary_empty(self, **kwargs) -> Dict[str, Dict[str, str]]: + async def get_dictionary_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: """Get an dictionaries of dictionaries of type with value {}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -2667,7 +2667,7 @@ async def get_dictionary_empty(self, **kwargs) -> Dict[str, Dict[str, str]]: get_dictionary_empty.metadata = {"url": "/dictionary/dictionary/empty"} # type: ignore @distributed_trace_async - async def get_dictionary_item_null(self, **kwargs) -> Dict[str, Dict[str, str]]: + async def get_dictionary_item_null(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": "two", "3": "three"}, "1": null, "2": {"7": "seven", "8": "eight", "9": "nine"}}. @@ -2710,7 +2710,7 @@ async def get_dictionary_item_null(self, **kwargs) -> Dict[str, Dict[str, str]]: get_dictionary_item_null.metadata = {"url": "/dictionary/dictionary/itemnull"} # type: ignore @distributed_trace_async - async def get_dictionary_item_empty(self, **kwargs) -> Dict[str, Dict[str, str]]: + async def get_dictionary_item_empty(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": "two", "3": "three"}, "1": {}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. @@ -2753,7 +2753,7 @@ async def get_dictionary_item_empty(self, **kwargs) -> Dict[str, Dict[str, str]] get_dictionary_item_empty.metadata = {"url": "/dictionary/dictionary/itemempty"} # type: ignore @distributed_trace_async - async def get_dictionary_valid(self, **kwargs) -> Dict[str, Dict[str, str]]: + async def get_dictionary_valid(self, **kwargs: Any) -> Dict[str, Dict[str, str]]: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. @@ -2797,7 +2797,7 @@ async def get_dictionary_valid(self, **kwargs) -> Dict[str, Dict[str, str]]: get_dictionary_valid.metadata = {"url": "/dictionary/dictionary/valid"} # type: ignore @distributed_trace_async - async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kwargs) -> None: + async def put_dictionary_valid(self, array_body: Dict[str, Dict[str, str]], **kwargs: Any) -> None: """Get an dictionaries of dictionaries of type with value {"0": {"1": "one", "2": "two", "3": "three"}, "1": {"4": "four", "5": "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}}. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py index 538596c97f1..cf8abe6538b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDuration/bodyduration/aio/operations/_duration_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[datetime.timedelta]: + async def get_null(self, **kwargs: Any) -> Optional[datetime.timedelta]: """Get null duration value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[datetime.timedelta]: get_null.metadata = {"url": "/duration/null"} # type: ignore @distributed_trace_async - async def put_positive_duration(self, duration_body: datetime.timedelta, **kwargs) -> None: + async def put_positive_duration(self, duration_body: datetime.timedelta, **kwargs: Any) -> None: """Put a positive duration value. :param duration_body: duration body. @@ -136,7 +136,7 @@ async def put_positive_duration(self, duration_body: datetime.timedelta, **kwarg put_positive_duration.metadata = {"url": "/duration/positiveduration"} # type: ignore @distributed_trace_async - async def get_positive_duration(self, **kwargs) -> datetime.timedelta: + async def get_positive_duration(self, **kwargs: Any) -> datetime.timedelta: """Get a positive duration value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -178,7 +178,7 @@ async def get_positive_duration(self, **kwargs) -> datetime.timedelta: get_positive_duration.metadata = {"url": "/duration/positiveduration"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> datetime.timedelta: + async def get_invalid(self, **kwargs: Any) -> datetime.timedelta: """Get an invalid duration value. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py index ff78d5025d1..5c2df733b3f 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFile/bodyfile/aio/operations/_files_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_file(self, **kwargs) -> IO: + async def get_file(self, **kwargs: Any) -> IO: """Get file. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_file(self, **kwargs) -> IO: get_file.metadata = {"url": "/files/stream/nonempty"} # type: ignore @distributed_trace_async - async def get_file_large(self, **kwargs) -> IO: + async def get_file_large(self, **kwargs: Any) -> IO: """Get a large file. :keyword callable cls: A custom type or function that will be passed the direct response @@ -132,7 +132,7 @@ async def get_file_large(self, **kwargs) -> IO: get_file_large.metadata = {"url": "/files/stream/verylarge"} # type: ignore @distributed_trace_async - async def get_empty_file(self, **kwargs) -> IO: + async def get_empty_file(self, **kwargs: Any) -> IO: """Get empty file. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py index a80e181d414..68b8fe4b229 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyFormData/bodyformdata/aio/operations/_formdata_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def upload_file(self, file_content: IO, file_name: str, **kwargs) -> IO: + async def upload_file(self, file_content: IO, file_name: str, **kwargs: Any) -> IO: """Upload file. :param file_content: File to upload. @@ -101,7 +101,7 @@ async def upload_file(self, file_content: IO, file_name: str, **kwargs) -> IO: upload_file.metadata = {"url": "/formdata/stream/uploadfile"} # type: ignore @distributed_trace_async - async def upload_file_via_body(self, file_content: IO, **kwargs) -> IO: + async def upload_file_via_body(self, file_content: IO, **kwargs: Any) -> IO: """Upload file. :param file_content: File to upload. @@ -149,7 +149,7 @@ async def upload_file_via_body(self, file_content: IO, **kwargs) -> IO: upload_file_via_body.metadata = {"url": "/formdata/stream/uploadfile"} # type: ignore @distributed_trace_async - async def upload_files(self, file_content: List[IO], **kwargs) -> IO: + async def upload_files(self, file_content: List[IO], **kwargs: Any) -> IO: """Upload multiple files. :param file_content: Files to upload. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py index de2080cf2d3..73bbd0ef6dd 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyInteger/bodyinteger/aio/operations/_int_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[int]: + async def get_null(self, **kwargs: Any) -> Optional[int]: """Get null Int value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get_null(self, **kwargs) -> Optional[int]: get_null.metadata = {"url": "/int/null"} # type: ignore @distributed_trace_async - async def get_invalid(self, **kwargs) -> int: + async def get_invalid(self, **kwargs: Any) -> int: """Get invalid Int value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -133,7 +133,7 @@ async def get_invalid(self, **kwargs) -> int: get_invalid.metadata = {"url": "/int/invalid"} # type: ignore @distributed_trace_async - async def get_overflow_int32(self, **kwargs) -> int: + async def get_overflow_int32(self, **kwargs: Any) -> int: """Get overflow Int32 value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -175,7 +175,7 @@ async def get_overflow_int32(self, **kwargs) -> int: get_overflow_int32.metadata = {"url": "/int/overflowint32"} # type: ignore @distributed_trace_async - async def get_underflow_int32(self, **kwargs) -> int: + async def get_underflow_int32(self, **kwargs: Any) -> int: """Get underflow Int32 value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -217,7 +217,7 @@ async def get_underflow_int32(self, **kwargs) -> int: get_underflow_int32.metadata = {"url": "/int/underflowint32"} # type: ignore @distributed_trace_async - async def get_overflow_int64(self, **kwargs) -> int: + async def get_overflow_int64(self, **kwargs: Any) -> int: """Get overflow Int64 value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -259,7 +259,7 @@ async def get_overflow_int64(self, **kwargs) -> int: get_overflow_int64.metadata = {"url": "/int/overflowint64"} # type: ignore @distributed_trace_async - async def get_underflow_int64(self, **kwargs) -> int: + async def get_underflow_int64(self, **kwargs: Any) -> int: """Get underflow Int64 value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -301,7 +301,7 @@ async def get_underflow_int64(self, **kwargs) -> int: get_underflow_int64.metadata = {"url": "/int/underflowint64"} # type: ignore @distributed_trace_async - async def put_max32(self, int_body: int, **kwargs) -> None: + async def put_max32(self, int_body: int, **kwargs: Any) -> None: """Put max int32 value. :param int_body: int body. @@ -346,7 +346,7 @@ async def put_max32(self, int_body: int, **kwargs) -> None: put_max32.metadata = {"url": "/int/max/32"} # type: ignore @distributed_trace_async - async def put_max64(self, int_body: int, **kwargs) -> None: + async def put_max64(self, int_body: int, **kwargs: Any) -> None: """Put max int64 value. :param int_body: int body. @@ -391,7 +391,7 @@ async def put_max64(self, int_body: int, **kwargs) -> None: put_max64.metadata = {"url": "/int/max/64"} # type: ignore @distributed_trace_async - async def put_min32(self, int_body: int, **kwargs) -> None: + async def put_min32(self, int_body: int, **kwargs: Any) -> None: """Put min int32 value. :param int_body: int body. @@ -436,7 +436,7 @@ async def put_min32(self, int_body: int, **kwargs) -> None: put_min32.metadata = {"url": "/int/min/32"} # type: ignore @distributed_trace_async - async def put_min64(self, int_body: int, **kwargs) -> None: + async def put_min64(self, int_body: int, **kwargs: Any) -> None: """Put min int64 value. :param int_body: int body. @@ -481,7 +481,7 @@ async def put_min64(self, int_body: int, **kwargs) -> None: put_min64.metadata = {"url": "/int/min/64"} # type: ignore @distributed_trace_async - async def get_unix_time(self, **kwargs) -> datetime.datetime: + async def get_unix_time(self, **kwargs: Any) -> datetime.datetime: """Get datetime encoded as Unix time value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -523,7 +523,7 @@ async def get_unix_time(self, **kwargs) -> datetime.datetime: get_unix_time.metadata = {"url": "/int/unixtime"} # type: ignore @distributed_trace_async - async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs) -> None: + async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs: Any) -> None: """Put datetime encoded as Unix time. :param int_body: int body. @@ -568,7 +568,7 @@ async def put_unix_time_date(self, int_body: datetime.datetime, **kwargs) -> Non put_unix_time_date.metadata = {"url": "/int/unixtime"} # type: ignore @distributed_trace_async - async def get_invalid_unix_time(self, **kwargs) -> datetime.datetime: + async def get_invalid_unix_time(self, **kwargs: Any) -> datetime.datetime: """Get invalid Unix time value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -610,7 +610,7 @@ async def get_invalid_unix_time(self, **kwargs) -> datetime.datetime: get_invalid_unix_time.metadata = {"url": "/int/invalidunixtime"} # type: ignore @distributed_trace_async - async def get_null_unix_time(self, **kwargs) -> Optional[datetime.datetime]: + async def get_null_unix_time(self, **kwargs: Any) -> Optional[datetime.datetime]: """Get null Unix time value. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py index 4a7002083bc..61f62a0515d 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyNumber/bodynumber/aio/operations/_number_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[float]: + async def get_null(self, **kwargs: Any) -> Optional[float]: """Get null Number value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_null(self, **kwargs) -> Optional[float]: get_null.metadata = {"url": "/number/null"} # type: ignore @distributed_trace_async - async def get_invalid_float(self, **kwargs) -> float: + async def get_invalid_float(self, **kwargs: Any) -> float: """Get invalid float Number value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -132,7 +132,7 @@ async def get_invalid_float(self, **kwargs) -> float: get_invalid_float.metadata = {"url": "/number/invalidfloat"} # type: ignore @distributed_trace_async - async def get_invalid_double(self, **kwargs) -> float: + async def get_invalid_double(self, **kwargs: Any) -> float: """Get invalid double Number value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -174,7 +174,7 @@ async def get_invalid_double(self, **kwargs) -> float: get_invalid_double.metadata = {"url": "/number/invaliddouble"} # type: ignore @distributed_trace_async - async def get_invalid_decimal(self, **kwargs) -> float: + async def get_invalid_decimal(self, **kwargs: Any) -> float: """Get invalid decimal Number value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -216,7 +216,7 @@ async def get_invalid_decimal(self, **kwargs) -> float: get_invalid_decimal.metadata = {"url": "/number/invaliddecimal"} # type: ignore @distributed_trace_async - async def put_big_float(self, number_body: float, **kwargs) -> None: + async def put_big_float(self, number_body: float, **kwargs: Any) -> None: """Put big float value 3.402823e+20. :param number_body: number body. @@ -261,7 +261,7 @@ async def put_big_float(self, number_body: float, **kwargs) -> None: put_big_float.metadata = {"url": "/number/big/float/3.402823e+20"} # type: ignore @distributed_trace_async - async def get_big_float(self, **kwargs) -> float: + async def get_big_float(self, **kwargs: Any) -> float: """Get big float value 3.402823e+20. :keyword callable cls: A custom type or function that will be passed the direct response @@ -303,7 +303,7 @@ async def get_big_float(self, **kwargs) -> float: get_big_float.metadata = {"url": "/number/big/float/3.402823e+20"} # type: ignore @distributed_trace_async - async def put_big_double(self, number_body: float, **kwargs) -> None: + async def put_big_double(self, number_body: float, **kwargs: Any) -> None: """Put big double value 2.5976931e+101. :param number_body: number body. @@ -348,7 +348,7 @@ async def put_big_double(self, number_body: float, **kwargs) -> None: put_big_double.metadata = {"url": "/number/big/double/2.5976931e+101"} # type: ignore @distributed_trace_async - async def get_big_double(self, **kwargs) -> float: + async def get_big_double(self, **kwargs: Any) -> float: """Get big double value 2.5976931e+101. :keyword callable cls: A custom type or function that will be passed the direct response @@ -390,7 +390,7 @@ async def get_big_double(self, **kwargs) -> float: get_big_double.metadata = {"url": "/number/big/double/2.5976931e+101"} # type: ignore @distributed_trace_async - async def put_big_double_positive_decimal(self, **kwargs) -> None: + async def put_big_double_positive_decimal(self, **kwargs: Any) -> None: """Put big double value 99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -434,7 +434,7 @@ async def put_big_double_positive_decimal(self, **kwargs) -> None: put_big_double_positive_decimal.metadata = {"url": "/number/big/double/99999999.99"} # type: ignore @distributed_trace_async - async def get_big_double_positive_decimal(self, **kwargs) -> float: + async def get_big_double_positive_decimal(self, **kwargs: Any) -> float: """Get big double value 99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -476,7 +476,7 @@ async def get_big_double_positive_decimal(self, **kwargs) -> float: get_big_double_positive_decimal.metadata = {"url": "/number/big/double/99999999.99"} # type: ignore @distributed_trace_async - async def put_big_double_negative_decimal(self, **kwargs) -> None: + async def put_big_double_negative_decimal(self, **kwargs: Any) -> None: """Put big double value -99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -520,7 +520,7 @@ async def put_big_double_negative_decimal(self, **kwargs) -> None: put_big_double_negative_decimal.metadata = {"url": "/number/big/double/-99999999.99"} # type: ignore @distributed_trace_async - async def get_big_double_negative_decimal(self, **kwargs) -> float: + async def get_big_double_negative_decimal(self, **kwargs: Any) -> float: """Get big double value -99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -562,7 +562,7 @@ async def get_big_double_negative_decimal(self, **kwargs) -> float: get_big_double_negative_decimal.metadata = {"url": "/number/big/double/-99999999.99"} # type: ignore @distributed_trace_async - async def put_big_decimal(self, number_body: float, **kwargs) -> None: + async def put_big_decimal(self, number_body: float, **kwargs: Any) -> None: """Put big decimal value 2.5976931e+101. :param number_body: number body. @@ -607,7 +607,7 @@ async def put_big_decimal(self, number_body: float, **kwargs) -> None: put_big_decimal.metadata = {"url": "/number/big/decimal/2.5976931e+101"} # type: ignore @distributed_trace_async - async def get_big_decimal(self, **kwargs) -> float: + async def get_big_decimal(self, **kwargs: Any) -> float: """Get big decimal value 2.5976931e+101. :keyword callable cls: A custom type or function that will be passed the direct response @@ -649,7 +649,7 @@ async def get_big_decimal(self, **kwargs) -> float: get_big_decimal.metadata = {"url": "/number/big/decimal/2.5976931e+101"} # type: ignore @distributed_trace_async - async def put_big_decimal_positive_decimal(self, **kwargs) -> None: + async def put_big_decimal_positive_decimal(self, **kwargs: Any) -> None: """Put big decimal value 99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -693,7 +693,7 @@ async def put_big_decimal_positive_decimal(self, **kwargs) -> None: put_big_decimal_positive_decimal.metadata = {"url": "/number/big/decimal/99999999.99"} # type: ignore @distributed_trace_async - async def get_big_decimal_positive_decimal(self, **kwargs) -> float: + async def get_big_decimal_positive_decimal(self, **kwargs: Any) -> float: """Get big decimal value 99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -735,7 +735,7 @@ async def get_big_decimal_positive_decimal(self, **kwargs) -> float: get_big_decimal_positive_decimal.metadata = {"url": "/number/big/decimal/99999999.99"} # type: ignore @distributed_trace_async - async def put_big_decimal_negative_decimal(self, **kwargs) -> None: + async def put_big_decimal_negative_decimal(self, **kwargs: Any) -> None: """Put big decimal value -99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -779,7 +779,7 @@ async def put_big_decimal_negative_decimal(self, **kwargs) -> None: put_big_decimal_negative_decimal.metadata = {"url": "/number/big/decimal/-99999999.99"} # type: ignore @distributed_trace_async - async def get_big_decimal_negative_decimal(self, **kwargs) -> float: + async def get_big_decimal_negative_decimal(self, **kwargs: Any) -> float: """Get big decimal value -99999999.99. :keyword callable cls: A custom type or function that will be passed the direct response @@ -821,7 +821,7 @@ async def get_big_decimal_negative_decimal(self, **kwargs) -> float: get_big_decimal_negative_decimal.metadata = {"url": "/number/big/decimal/-99999999.99"} # type: ignore @distributed_trace_async - async def put_small_float(self, number_body: float, **kwargs) -> None: + async def put_small_float(self, number_body: float, **kwargs: Any) -> None: """Put small float value 3.402823e-20. :param number_body: number body. @@ -866,7 +866,7 @@ async def put_small_float(self, number_body: float, **kwargs) -> None: put_small_float.metadata = {"url": "/number/small/float/3.402823e-20"} # type: ignore @distributed_trace_async - async def get_small_float(self, **kwargs) -> float: + async def get_small_float(self, **kwargs: Any) -> float: """Get big double value 3.402823e-20. :keyword callable cls: A custom type or function that will be passed the direct response @@ -908,7 +908,7 @@ async def get_small_float(self, **kwargs) -> float: get_small_float.metadata = {"url": "/number/small/float/3.402823e-20"} # type: ignore @distributed_trace_async - async def put_small_double(self, number_body: float, **kwargs) -> None: + async def put_small_double(self, number_body: float, **kwargs: Any) -> None: """Put small double value 2.5976931e-101. :param number_body: number body. @@ -953,7 +953,7 @@ async def put_small_double(self, number_body: float, **kwargs) -> None: put_small_double.metadata = {"url": "/number/small/double/2.5976931e-101"} # type: ignore @distributed_trace_async - async def get_small_double(self, **kwargs) -> float: + async def get_small_double(self, **kwargs: Any) -> float: """Get big double value 2.5976931e-101. :keyword callable cls: A custom type or function that will be passed the direct response @@ -995,7 +995,7 @@ async def get_small_double(self, **kwargs) -> float: get_small_double.metadata = {"url": "/number/small/double/2.5976931e-101"} # type: ignore @distributed_trace_async - async def put_small_decimal(self, number_body: float, **kwargs) -> None: + async def put_small_decimal(self, number_body: float, **kwargs: Any) -> None: """Put small decimal value 2.5976931e-101. :param number_body: number body. @@ -1040,7 +1040,7 @@ async def put_small_decimal(self, number_body: float, **kwargs) -> None: put_small_decimal.metadata = {"url": "/number/small/decimal/2.5976931e-101"} # type: ignore @distributed_trace_async - async def get_small_decimal(self, **kwargs) -> float: + async def get_small_decimal(self, **kwargs: Any) -> float: """Get small decimal value 2.5976931e-101. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py index 200b5d0aa21..e8089c9c970 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_enum_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_not_expandable(self, **kwargs) -> Union[str, "_models.Colors"]: + async def get_not_expandable(self, **kwargs: Any) -> Union[str, "_models.Colors"]: """Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_not_expandable(self, **kwargs) -> Union[str, "_models.Colors"]: get_not_expandable.metadata = {"url": "/string/enum/notExpandable"} # type: ignore @distributed_trace_async - async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], **kwargs) -> None: + async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], **kwargs: Any) -> None: """Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. :param string_body: string body. @@ -135,7 +135,7 @@ async def put_not_expandable(self, string_body: Union[str, "_models.Colors"], ** put_not_expandable.metadata = {"url": "/string/enum/notExpandable"} # type: ignore @distributed_trace_async - async def get_referenced(self, **kwargs) -> Union[str, "_models.Colors"]: + async def get_referenced(self, **kwargs: Any) -> Union[str, "_models.Colors"]: """Get enum value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -177,7 +177,7 @@ async def get_referenced(self, **kwargs) -> Union[str, "_models.Colors"]: get_referenced.metadata = {"url": "/string/enum/Referenced"} # type: ignore @distributed_trace_async - async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], **kwargs) -> None: + async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], **kwargs: Any) -> None: """Sends value 'red color' from enumeration of 'red color', 'green-color', 'blue_color'. :param enum_string_body: enum string body. @@ -222,7 +222,7 @@ async def put_referenced(self, enum_string_body: Union[str, "_models.Colors"], * put_referenced.metadata = {"url": "/string/enum/Referenced"} # type: ignore @distributed_trace_async - async def get_referenced_constant(self, **kwargs) -> "_models.RefColorConstant": + async def get_referenced_constant(self, **kwargs: Any) -> "_models.RefColorConstant": """Get value 'green-color' from the constant. :keyword callable cls: A custom type or function that will be passed the direct response @@ -264,7 +264,7 @@ async def get_referenced_constant(self, **kwargs) -> "_models.RefColorConstant": get_referenced_constant.metadata = {"url": "/string/enum/ReferencedConstant"} # type: ignore @distributed_trace_async - async def put_referenced_constant(self, field1: Optional[str] = None, **kwargs) -> None: + async def put_referenced_constant(self, field1: Optional[str] = None, **kwargs: Any) -> None: """Sends value 'green-color' from a constant. :param field1: Sample string. diff --git a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py index 2f54241087c..20c23059fcc 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyString/bodystring/aio/operations/_string_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_null(self, **kwargs) -> Optional[str]: + async def get_null(self, **kwargs: Any) -> Optional[str]: """Get null string value value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_null(self, **kwargs) -> Optional[str]: get_null.metadata = {"url": "/string/null"} # type: ignore @distributed_trace_async - async def put_null(self, string_body: Optional[str] = None, **kwargs) -> None: + async def put_null(self, string_body: Optional[str] = None, **kwargs: Any) -> None: """Set string value null. :param string_body: string body. @@ -138,7 +138,7 @@ async def put_null(self, string_body: Optional[str] = None, **kwargs) -> None: put_null.metadata = {"url": "/string/null"} # type: ignore @distributed_trace_async - async def get_empty(self, **kwargs) -> str: + async def get_empty(self, **kwargs: Any) -> str: """Get empty string value value ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -180,7 +180,7 @@ async def get_empty(self, **kwargs) -> str: get_empty.metadata = {"url": "/string/empty"} # type: ignore @distributed_trace_async - async def put_empty(self, **kwargs) -> None: + async def put_empty(self, **kwargs: Any) -> None: """Set string value empty ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -224,7 +224,7 @@ async def put_empty(self, **kwargs) -> None: put_empty.metadata = {"url": "/string/empty"} # type: ignore @distributed_trace_async - async def get_mbcs(self, **kwargs) -> str: + async def get_mbcs(self, **kwargs: Any) -> str: """Get mbcs string value '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -266,7 +266,7 @@ async def get_mbcs(self, **kwargs) -> str: get_mbcs.metadata = {"url": "/string/mbcs"} # type: ignore @distributed_trace_async - async def put_mbcs(self, **kwargs) -> None: + async def put_mbcs(self, **kwargs: Any) -> None: """Set string value mbcs '啊齄丂狛狜隣郎隣兀﨩ˊ〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -310,7 +310,7 @@ async def put_mbcs(self, **kwargs) -> None: put_mbcs.metadata = {"url": "/string/mbcs"} # type: ignore @distributed_trace_async - async def get_whitespace(self, **kwargs) -> str: + async def get_whitespace(self, **kwargs: Any) -> str: """Get string value with leading and trailing whitespace ':code:``:code:``:code:``Now is the time for all good men to come to the aid of their country:code:``:code:``:code:``'. @@ -354,7 +354,7 @@ async def get_whitespace(self, **kwargs) -> str: get_whitespace.metadata = {"url": "/string/whitespace"} # type: ignore @distributed_trace_async - async def put_whitespace(self, **kwargs) -> None: + async def put_whitespace(self, **kwargs: Any) -> None: """Set String value with leading and trailing whitespace ':code:``:code:``:code:``Now is the time for all good men to come to the aid of their country:code:``:code:``:code:``'. @@ -400,7 +400,7 @@ async def put_whitespace(self, **kwargs) -> None: put_whitespace.metadata = {"url": "/string/whitespace"} # type: ignore @distributed_trace_async - async def get_not_provided(self, **kwargs) -> str: + async def get_not_provided(self, **kwargs: Any) -> str: """Get String value when no string value is sent in response payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -442,7 +442,7 @@ async def get_not_provided(self, **kwargs) -> str: get_not_provided.metadata = {"url": "/string/notProvided"} # type: ignore @distributed_trace_async - async def get_base64_encoded(self, **kwargs) -> bytearray: + async def get_base64_encoded(self, **kwargs: Any) -> bytearray: """Get value that is base64 encoded. :keyword callable cls: A custom type or function that will be passed the direct response @@ -484,7 +484,7 @@ async def get_base64_encoded(self, **kwargs) -> bytearray: get_base64_encoded.metadata = {"url": "/string/base64Encoding"} # type: ignore @distributed_trace_async - async def get_base64_url_encoded(self, **kwargs) -> bytes: + async def get_base64_url_encoded(self, **kwargs: Any) -> bytes: """Get value that is base64url encoded. :keyword callable cls: A custom type or function that will be passed the direct response @@ -526,7 +526,7 @@ async def get_base64_url_encoded(self, **kwargs) -> bytes: get_base64_url_encoded.metadata = {"url": "/string/base64UrlEncoding"} # type: ignore @distributed_trace_async - async def put_base64_url_encoded(self, string_body: bytes, **kwargs) -> None: + async def put_base64_url_encoded(self, string_body: bytes, **kwargs: Any) -> None: """Put value that is base64url encoded. :param string_body: string body. @@ -571,7 +571,7 @@ async def put_base64_url_encoded(self, string_body: bytes, **kwargs) -> None: put_base64_url_encoded.metadata = {"url": "/string/base64UrlEncoding"} # type: ignore @distributed_trace_async - async def get_null_base64_url_encoded(self, **kwargs) -> Optional[bytes]: + async def get_null_base64_url_encoded(self, **kwargs: Any) -> Optional[bytes]: """Get null value that is expected to be base64url encoded. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py index f4c00f0721a..21061c0fd6b 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyTime/bodytime/aio/operations/_time_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get(self, **kwargs) -> datetime.time: + async def get(self, **kwargs: Any) -> datetime.time: """Get time value "11:34:56". :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,7 +91,7 @@ async def get(self, **kwargs) -> datetime.time: get.metadata = {"url": "/time/get"} # type: ignore @distributed_trace_async - async def put(self, time_body: datetime.time, **kwargs) -> str: + async def put(self, time_body: datetime.time, **kwargs: Any) -> str: """Put time value "08:07:56". :param time_body: Put time value "08:07:56" in parameter to pass testserver. diff --git a/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py b/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py index fa38ea0fe62..3968107b44f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Constants/constants/aio/operations/_contants_operations.py @@ -49,7 +49,9 @@ def __init__(self, client, config, serializer, deserializer) -> None: @distributed_trace_async async def put_no_model_as_string_no_required_two_value_no_default( - self, input: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] = None, **kwargs + self, + input: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] = None, + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -92,7 +94,9 @@ async def put_no_model_as_string_no_required_two_value_no_default( @distributed_trace_async async def put_no_model_as_string_no_required_two_value_default( - self, input: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueDefaultOpEnum"]] = "value1", **kwargs + self, + input: Optional[Union[str, "_models.NoModelAsStringNoRequiredTwoValueDefaultOpEnum"]] = "value1", + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -135,7 +139,7 @@ async def put_no_model_as_string_no_required_two_value_default( @distributed_trace_async async def put_no_model_as_string_no_required_one_value_no_default( - self, input: Optional[str] = "value1", **kwargs + self, input: Optional[str] = "value1", **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -178,7 +182,7 @@ async def put_no_model_as_string_no_required_one_value_no_default( @distributed_trace_async async def put_no_model_as_string_no_required_one_value_default( - self, input: Optional[str] = "value1", **kwargs + self, input: Optional[str] = "value1", **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -221,7 +225,7 @@ async def put_no_model_as_string_no_required_one_value_default( @distributed_trace_async async def put_no_model_as_string_required_two_value_no_default( - self, input: Union[str, "_models.NoModelAsStringRequiredTwoValueNoDefaultOpEnum"], **kwargs + self, input: Union[str, "_models.NoModelAsStringRequiredTwoValueNoDefaultOpEnum"], **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -263,7 +267,7 @@ async def put_no_model_as_string_required_two_value_no_default( @distributed_trace_async async def put_no_model_as_string_required_two_value_default( - self, input: Union[str, "_models.NoModelAsStringRequiredTwoValueDefaultOpEnum"] = "value1", **kwargs + self, input: Union[str, "_models.NoModelAsStringRequiredTwoValueDefaultOpEnum"] = "value1", **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -304,7 +308,7 @@ async def put_no_model_as_string_required_two_value_default( put_no_model_as_string_required_two_value_default.metadata = {"url": "/constants/putNoModelAsStringRequiredTwoValueDefault"} # type: ignore @distributed_trace_async - async def put_no_model_as_string_required_one_value_no_default(self, **kwargs) -> None: + async def put_no_model_as_string_required_one_value_no_default(self, **kwargs: Any) -> None: """Puts constants to the testserver. Puts constants to the testserver. @@ -343,7 +347,7 @@ async def put_no_model_as_string_required_one_value_no_default(self, **kwargs) - put_no_model_as_string_required_one_value_no_default.metadata = {"url": "/constants/putNoModelAsStringRequiredOneValueNoDefault"} # type: ignore @distributed_trace_async - async def put_no_model_as_string_required_one_value_default(self, **kwargs) -> None: + async def put_no_model_as_string_required_one_value_default(self, **kwargs: Any) -> None: """Puts constants to the testserver. Puts constants to the testserver. @@ -383,7 +387,9 @@ async def put_no_model_as_string_required_one_value_default(self, **kwargs) -> N @distributed_trace_async async def put_model_as_string_no_required_two_value_no_default( - self, input: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] = None, **kwargs + self, + input: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueNoDefaultOpEnum"]] = None, + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -426,7 +432,9 @@ async def put_model_as_string_no_required_two_value_no_default( @distributed_trace_async async def put_model_as_string_no_required_two_value_default( - self, input: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueDefaultOpEnum"]] = "value1", **kwargs + self, + input: Optional[Union[str, "_models.ModelAsStringNoRequiredTwoValueDefaultOpEnum"]] = "value1", + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -469,7 +477,9 @@ async def put_model_as_string_no_required_two_value_default( @distributed_trace_async async def put_model_as_string_no_required_one_value_no_default( - self, input: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueNoDefaultOpEnum"]] = None, **kwargs + self, + input: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueNoDefaultOpEnum"]] = None, + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -512,7 +522,9 @@ async def put_model_as_string_no_required_one_value_no_default( @distributed_trace_async async def put_model_as_string_no_required_one_value_default( - self, input: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueDefaultOpEnum"]] = "value1", **kwargs + self, + input: Optional[Union[str, "_models.ModelAsStringNoRequiredOneValueDefaultOpEnum"]] = "value1", + **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -555,7 +567,7 @@ async def put_model_as_string_no_required_one_value_default( @distributed_trace_async async def put_model_as_string_required_two_value_no_default( - self, input: Union[str, "_models.ModelAsStringRequiredTwoValueNoDefaultOpEnum"], **kwargs + self, input: Union[str, "_models.ModelAsStringRequiredTwoValueNoDefaultOpEnum"], **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -597,7 +609,7 @@ async def put_model_as_string_required_two_value_no_default( @distributed_trace_async async def put_model_as_string_required_two_value_default( - self, input: Union[str, "_models.ModelAsStringRequiredTwoValueDefaultOpEnum"] = "value1", **kwargs + self, input: Union[str, "_models.ModelAsStringRequiredTwoValueDefaultOpEnum"] = "value1", **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -639,7 +651,7 @@ async def put_model_as_string_required_two_value_default( @distributed_trace_async async def put_model_as_string_required_one_value_no_default( - self, input: Union[str, "_models.ModelAsStringRequiredOneValueNoDefaultOpEnum"], **kwargs + self, input: Union[str, "_models.ModelAsStringRequiredOneValueNoDefaultOpEnum"], **kwargs: Any ) -> None: """Puts constants to the testserver. @@ -681,7 +693,7 @@ async def put_model_as_string_required_one_value_no_default( @distributed_trace_async async def put_model_as_string_required_one_value_default( - self, input: Union[str, "_models.ModelAsStringRequiredOneValueDefaultOpEnum"] = "value1", **kwargs + self, input: Union[str, "_models.ModelAsStringRequiredOneValueDefaultOpEnum"] = "value1", **kwargs: Any ) -> None: """Puts constants to the testserver. diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py index abb7ece7162..8d9a7bf9f65 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUri/custombaseurl/aio/operations/_paths_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_empty(self, account_name: str, **kwargs) -> None: + async def get_empty(self, account_name: str, **kwargs: Any) -> None: """Get a 200 to test a valid base uri. :param account_name: Account Name. diff --git a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py index 960bb4573f8..e0323b5afe4 100644 --- a/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/CustomBaseUriMoreOptions/custombaseurlmoreoptions/aio/operations/_paths_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: @distributed_trace_async async def get_empty( - self, vault: str, secret: str, key_name: str, key_version: Optional[str] = "v1", **kwargs + self, vault: str, secret: str, key_name: str, key_version: Optional[str] = "v1", **kwargs: Any ) -> None: """Get a 200 to test a valid base uri. diff --git a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py index 6dccdcca64c..0101b92c0f5 100644 --- a/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ExtensibleEnums/extensibleenumsswagger/aio/operations/_pet_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_by_pet_id(self, pet_id: str, **kwargs) -> "_models.Pet": + async def get_by_pet_id(self, pet_id: str, **kwargs: Any) -> "_models.Pet": """get pet by id. :param pet_id: Pet id. @@ -95,7 +95,7 @@ async def get_by_pet_id(self, pet_id: str, **kwargs) -> "_models.Pet": get_by_pet_id.metadata = {"url": "/extensibleenums/pet/{petId}"} # type: ignore @distributed_trace_async - async def add_pet(self, pet_param: Optional["_models.Pet"] = None, **kwargs) -> "_models.Pet": + async def add_pet(self, pet_param: Optional["_models.Pet"] = None, **kwargs: Any) -> "_models.Pet": """add pet. :param pet_param: pet param. diff --git a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py index ad6e1568843..2a7fc4058e9 100644 --- a/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Header/header/aio/operations/_header_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def param_existing_key(self, user_agent_parameter: str, **kwargs) -> None: + async def param_existing_key(self, user_agent_parameter: str, **kwargs: Any) -> None: """Send a post request with header value "User-Agent": "overwrite". :param user_agent_parameter: Send a post request with header value "User-Agent": "overwrite". @@ -90,7 +90,7 @@ async def param_existing_key(self, user_agent_parameter: str, **kwargs) -> None: param_existing_key.metadata = {"url": "/header/param/existingkey"} # type: ignore @distributed_trace_async - async def response_existing_key(self, **kwargs) -> None: + async def response_existing_key(self, **kwargs: Any) -> None: """Get a response with header value "User-Agent": "overwrite". :keyword callable cls: A custom type or function that will be passed the direct response @@ -131,7 +131,7 @@ async def response_existing_key(self, **kwargs) -> None: response_existing_key.metadata = {"url": "/header/response/existingkey"} # type: ignore @distributed_trace_async - async def param_protected_key(self, content_type: str, **kwargs) -> None: + async def param_protected_key(self, content_type: str, **kwargs: Any) -> None: """Send a post request with header value "Content-Type": "text/html". :param content_type: Send a post request with header value "Content-Type": "text/html". @@ -172,7 +172,7 @@ async def param_protected_key(self, content_type: str, **kwargs) -> None: param_protected_key.metadata = {"url": "/header/param/protectedkey"} # type: ignore @distributed_trace_async - async def response_protected_key(self, **kwargs) -> None: + async def response_protected_key(self, **kwargs: Any) -> None: """Get a response with header value "Content-Type": "text/html". :keyword callable cls: A custom type or function that will be passed the direct response @@ -213,7 +213,7 @@ async def response_protected_key(self, **kwargs) -> None: response_protected_key.metadata = {"url": "/header/response/protectedkey"} # type: ignore @distributed_trace_async - async def param_integer(self, scenario: str, value: int, **kwargs) -> None: + async def param_integer(self, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 1 or "scenario": "negative", "value": -2. @@ -258,7 +258,7 @@ async def param_integer(self, scenario: str, value: int, **kwargs) -> None: param_integer.metadata = {"url": "/header/param/prim/integer"} # type: ignore @distributed_trace_async - async def response_integer(self, scenario: str, **kwargs) -> None: + async def response_integer(self, scenario: str, **kwargs: Any) -> None: """Get a response with header value "value": 1 or -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". @@ -302,7 +302,7 @@ async def response_integer(self, scenario: str, **kwargs) -> None: response_integer.metadata = {"url": "/header/response/prim/integer"} # type: ignore @distributed_trace_async - async def param_long(self, scenario: str, value: int, **kwargs) -> None: + async def param_long(self, scenario: str, value: int, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 105 or "scenario": "negative", "value": -2. @@ -347,7 +347,7 @@ async def param_long(self, scenario: str, value: int, **kwargs) -> None: param_long.metadata = {"url": "/header/param/prim/long"} # type: ignore @distributed_trace_async - async def response_long(self, scenario: str, **kwargs) -> None: + async def response_long(self, scenario: str, **kwargs: Any) -> None: """Get a response with header value "value": 105 or -2. :param scenario: Send a post request with header values "scenario": "positive" or "negative". @@ -391,7 +391,7 @@ async def response_long(self, scenario: str, **kwargs) -> None: response_long.metadata = {"url": "/header/response/prim/long"} # type: ignore @distributed_trace_async - async def param_float(self, scenario: str, value: float, **kwargs) -> None: + async def param_float(self, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario": "negative", "value": -3.0. @@ -436,7 +436,7 @@ async def param_float(self, scenario: str, value: float, **kwargs) -> None: param_float.metadata = {"url": "/header/param/prim/float"} # type: ignore @distributed_trace_async - async def response_float(self, scenario: str, **kwargs) -> None: + async def response_float(self, scenario: str, **kwargs: Any) -> None: """Get a response with header value "value": 0.07 or -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". @@ -480,7 +480,7 @@ async def response_float(self, scenario: str, **kwargs) -> None: response_float.metadata = {"url": "/header/response/prim/float"} # type: ignore @distributed_trace_async - async def param_double(self, scenario: str, value: float, **kwargs) -> None: + async def param_double(self, scenario: str, value: float, **kwargs: Any) -> None: """Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario": "negative", "value": -3.0. @@ -525,7 +525,7 @@ async def param_double(self, scenario: str, value: float, **kwargs) -> None: param_double.metadata = {"url": "/header/param/prim/double"} # type: ignore @distributed_trace_async - async def response_double(self, scenario: str, **kwargs) -> None: + async def response_double(self, scenario: str, **kwargs: Any) -> None: """Get a response with header value "value": 7e120 or -3.0. :param scenario: Send a post request with header values "scenario": "positive" or "negative". @@ -569,7 +569,7 @@ async def response_double(self, scenario: str, **kwargs) -> None: response_double.metadata = {"url": "/header/response/prim/double"} # type: ignore @distributed_trace_async - async def param_bool(self, scenario: str, value: bool, **kwargs) -> None: + async def param_bool(self, scenario: str, value: bool, **kwargs: Any) -> None: """Send a post request with header values "scenario": "true", "value": true or "scenario": "false", "value": false. @@ -614,7 +614,7 @@ async def param_bool(self, scenario: str, value: bool, **kwargs) -> None: param_bool.metadata = {"url": "/header/param/prim/bool"} # type: ignore @distributed_trace_async - async def response_bool(self, scenario: str, **kwargs) -> None: + async def response_bool(self, scenario: str, **kwargs: Any) -> None: """Get a response with header value "value": true or false. :param scenario: Send a post request with header values "scenario": "true" or "false". @@ -658,7 +658,7 @@ async def response_bool(self, scenario: str, **kwargs) -> None: response_bool.metadata = {"url": "/header/response/prim/bool"} # type: ignore @distributed_trace_async - async def param_string(self, scenario: str, value: Optional[str] = None, **kwargs) -> None: + async def param_string(self, scenario: str, value: Optional[str] = None, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "". @@ -706,7 +706,7 @@ async def param_string(self, scenario: str, value: Optional[str] = None, **kwarg param_string.metadata = {"url": "/header/param/prim/string"} # type: ignore @distributed_trace_async - async def response_string(self, scenario: str, **kwargs) -> None: + async def response_string(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "The quick brown fox jumps over the lazy dog" or null or "". :param scenario: Send a post request with header values "scenario": "valid" or "null" or @@ -751,7 +751,7 @@ async def response_string(self, scenario: str, **kwargs) -> None: response_string.metadata = {"url": "/header/response/prim/string"} # type: ignore @distributed_trace_async - async def param_date(self, scenario: str, value: datetime.date, **kwargs) -> None: + async def param_date(self, scenario: str, value: datetime.date, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01" or "scenario": "min", "value": "0001-01-01". @@ -796,7 +796,7 @@ async def param_date(self, scenario: str, value: datetime.date, **kwargs) -> Non param_date.metadata = {"url": "/header/param/prim/date"} # type: ignore @distributed_trace_async - async def response_date(self, scenario: str, **kwargs) -> None: + async def response_date(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "2010-01-01" or "0001-01-01". :param scenario: Send a post request with header values "scenario": "valid" or "min". @@ -840,7 +840,7 @@ async def response_date(self, scenario: str, **kwargs) -> None: response_date.metadata = {"url": "/header/response/prim/date"} # type: ignore @distributed_trace_async - async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs) -> None: + async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or "scenario": "min", "value": "0001-01-01T00:00:00Z". @@ -886,7 +886,7 @@ async def param_datetime(self, scenario: str, value: datetime.datetime, **kwargs param_datetime.metadata = {"url": "/header/param/prim/datetime"} # type: ignore @distributed_trace_async - async def response_datetime(self, scenario: str, **kwargs) -> None: + async def response_datetime(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "2010-01-01T12:34:56Z" or "0001-01-01T00:00:00Z". :param scenario: Send a post request with header values "scenario": "valid" or "min". @@ -930,7 +930,9 @@ async def response_datetime(self, scenario: str, **kwargs) -> None: response_datetime.metadata = {"url": "/header/response/prim/datetime"} # type: ignore @distributed_trace_async - async def param_datetime_rfc1123(self, scenario: str, value: Optional[datetime.datetime] = None, **kwargs) -> None: + async def param_datetime_rfc1123( + self, scenario: str, value: Optional[datetime.datetime] = None, **kwargs: Any + ) -> None: """Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56 GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT". @@ -977,7 +979,7 @@ async def param_datetime_rfc1123(self, scenario: str, value: Optional[datetime.d param_datetime_rfc1123.metadata = {"url": "/header/param/prim/datetimerfc1123"} # type: ignore @distributed_trace_async - async def response_datetime_rfc1123(self, scenario: str, **kwargs) -> None: + async def response_datetime_rfc1123(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 GMT". @@ -1022,7 +1024,7 @@ async def response_datetime_rfc1123(self, scenario: str, **kwargs) -> None: response_datetime_rfc1123.metadata = {"url": "/header/response/prim/datetimerfc1123"} # type: ignore @distributed_trace_async - async def param_duration(self, scenario: str, value: datetime.timedelta, **kwargs) -> None: + async def param_duration(self, scenario: str, value: datetime.timedelta, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "P123DT22H14M12.011S". :param scenario: Send a post request with header values "scenario": "valid". @@ -1066,7 +1068,7 @@ async def param_duration(self, scenario: str, value: datetime.timedelta, **kwarg param_duration.metadata = {"url": "/header/param/prim/duration"} # type: ignore @distributed_trace_async - async def response_duration(self, scenario: str, **kwargs) -> None: + async def response_duration(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "P123DT22H14M12.011S". :param scenario: Send a post request with header values "scenario": "valid". @@ -1110,7 +1112,7 @@ async def response_duration(self, scenario: str, **kwargs) -> None: response_duration.metadata = {"url": "/header/response/prim/duration"} # type: ignore @distributed_trace_async - async def param_byte(self, scenario: str, value: bytearray, **kwargs) -> None: + async def param_byte(self, scenario: str, value: bytearray, **kwargs: Any) -> None: """Send a post request with header values "scenario": "valid", "value": "啊齄丂狛狜隣郎隣兀﨩". :param scenario: Send a post request with header values "scenario": "valid". @@ -1154,7 +1156,7 @@ async def param_byte(self, scenario: str, value: bytearray, **kwargs) -> None: param_byte.metadata = {"url": "/header/param/prim/byte"} # type: ignore @distributed_trace_async - async def response_byte(self, scenario: str, **kwargs) -> None: + async def response_byte(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "啊齄丂狛狜隣郎隣兀﨩". :param scenario: Send a post request with header values "scenario": "valid". @@ -1199,7 +1201,7 @@ async def response_byte(self, scenario: str, **kwargs) -> None: @distributed_trace_async async def param_enum( - self, scenario: str, value: Optional[Union[str, "_models.GreyscaleColors"]] = None, **kwargs + self, scenario: str, value: Optional[Union[str, "_models.GreyscaleColors"]] = None, **kwargs: Any ) -> None: """Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario": "null", "value": null. @@ -1247,7 +1249,7 @@ async def param_enum( param_enum.metadata = {"url": "/header/param/prim/enum"} # type: ignore @distributed_trace_async - async def response_enum(self, scenario: str, **kwargs) -> None: + async def response_enum(self, scenario: str, **kwargs: Any) -> None: """Get a response with header values "GREY" or null. :param scenario: Send a post request with header values "scenario": "valid" or "null" or @@ -1292,7 +1294,7 @@ async def response_enum(self, scenario: str, **kwargs) -> None: response_enum.metadata = {"url": "/header/response/prim/enum"} # type: ignore @distributed_trace_async - async def custom_request_id(self, **kwargs) -> None: + async def custom_request_id(self, **kwargs: Any) -> None: """Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the request. diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py index 7787ef50e92..cecc929dc60 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_client_failure_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head400(self, **kwargs) -> None: + async def head400(self, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -86,7 +86,7 @@ async def head400(self, **kwargs) -> None: head400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def get400(self, **kwargs) -> None: + async def get400(self, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -124,7 +124,7 @@ async def get400(self, **kwargs) -> None: get400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def options400(self, **kwargs) -> None: + async def options400(self, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -162,7 +162,7 @@ async def options400(self, **kwargs) -> None: options400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def put400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -210,7 +210,7 @@ async def put400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def patch400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -258,7 +258,7 @@ async def patch400(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def post400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -306,7 +306,7 @@ async def post400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def delete400(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete400(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 400 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -354,7 +354,7 @@ async def delete400(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete400.metadata = {"url": "/http/failure/client/400"} # type: ignore @distributed_trace_async - async def head401(self, **kwargs) -> None: + async def head401(self, **kwargs: Any) -> None: """Return 401 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -392,7 +392,7 @@ async def head401(self, **kwargs) -> None: head401.metadata = {"url": "/http/failure/client/401"} # type: ignore @distributed_trace_async - async def get402(self, **kwargs) -> None: + async def get402(self, **kwargs: Any) -> None: """Return 402 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -430,7 +430,7 @@ async def get402(self, **kwargs) -> None: get402.metadata = {"url": "/http/failure/client/402"} # type: ignore @distributed_trace_async - async def options403(self, **kwargs) -> None: + async def options403(self, **kwargs: Any) -> None: """Return 403 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -468,7 +468,7 @@ async def options403(self, **kwargs) -> None: options403.metadata = {"url": "/http/failure/client/403"} # type: ignore @distributed_trace_async - async def get403(self, **kwargs) -> None: + async def get403(self, **kwargs: Any) -> None: """Return 403 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -506,7 +506,7 @@ async def get403(self, **kwargs) -> None: get403.metadata = {"url": "/http/failure/client/403"} # type: ignore @distributed_trace_async - async def put404(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put404(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 404 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -554,7 +554,7 @@ async def put404(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put404.metadata = {"url": "/http/failure/client/404"} # type: ignore @distributed_trace_async - async def patch405(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch405(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 405 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -602,7 +602,7 @@ async def patch405(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch405.metadata = {"url": "/http/failure/client/405"} # type: ignore @distributed_trace_async - async def post406(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post406(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 406 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -650,7 +650,7 @@ async def post406(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post406.metadata = {"url": "/http/failure/client/406"} # type: ignore @distributed_trace_async - async def delete407(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete407(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 407 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -698,7 +698,7 @@ async def delete407(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete407.metadata = {"url": "/http/failure/client/407"} # type: ignore @distributed_trace_async - async def put409(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put409(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 409 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -746,7 +746,7 @@ async def put409(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put409.metadata = {"url": "/http/failure/client/409"} # type: ignore @distributed_trace_async - async def head410(self, **kwargs) -> None: + async def head410(self, **kwargs: Any) -> None: """Return 410 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -784,7 +784,7 @@ async def head410(self, **kwargs) -> None: head410.metadata = {"url": "/http/failure/client/410"} # type: ignore @distributed_trace_async - async def get411(self, **kwargs) -> None: + async def get411(self, **kwargs: Any) -> None: """Return 411 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -822,7 +822,7 @@ async def get411(self, **kwargs) -> None: get411.metadata = {"url": "/http/failure/client/411"} # type: ignore @distributed_trace_async - async def options412(self, **kwargs) -> None: + async def options412(self, **kwargs: Any) -> None: """Return 412 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -860,7 +860,7 @@ async def options412(self, **kwargs) -> None: options412.metadata = {"url": "/http/failure/client/412"} # type: ignore @distributed_trace_async - async def get412(self, **kwargs) -> None: + async def get412(self, **kwargs: Any) -> None: """Return 412 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -898,7 +898,7 @@ async def get412(self, **kwargs) -> None: get412.metadata = {"url": "/http/failure/client/412"} # type: ignore @distributed_trace_async - async def put413(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put413(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 413 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -946,7 +946,7 @@ async def put413(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put413.metadata = {"url": "/http/failure/client/413"} # type: ignore @distributed_trace_async - async def patch414(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch414(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 414 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -994,7 +994,7 @@ async def patch414(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch414.metadata = {"url": "/http/failure/client/414"} # type: ignore @distributed_trace_async - async def post415(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post415(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 415 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -1042,7 +1042,7 @@ async def post415(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post415.metadata = {"url": "/http/failure/client/415"} # type: ignore @distributed_trace_async - async def get416(self, **kwargs) -> None: + async def get416(self, **kwargs: Any) -> None: """Return 416 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1080,7 +1080,7 @@ async def get416(self, **kwargs) -> None: get416.metadata = {"url": "/http/failure/client/416"} # type: ignore @distributed_trace_async - async def delete417(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete417(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 417 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -1128,7 +1128,7 @@ async def delete417(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete417.metadata = {"url": "/http/failure/client/417"} # type: ignore @distributed_trace_async - async def head429(self, **kwargs) -> None: + async def head429(self, **kwargs: Any) -> None: """Return 429 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py index 452136e61df..a805e69080b 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_failure_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_empty_error(self, **kwargs) -> bool: + async def get_empty_error(self, **kwargs: Any) -> bool: """Get empty error form server. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def get_empty_error(self, **kwargs) -> bool: get_empty_error.metadata = {"url": "/http/failure/emptybody/error"} # type: ignore @distributed_trace_async - async def get_no_model_error(self, **kwargs) -> bool: + async def get_no_model_error(self, **kwargs: Any) -> bool: """Get empty error form server. :keyword callable cls: A custom type or function that will be passed the direct response @@ -131,7 +131,7 @@ async def get_no_model_error(self, **kwargs) -> bool: get_no_model_error.metadata = {"url": "/http/failure/nomodel/error"} # type: ignore @distributed_trace_async - async def get_no_model_empty(self, **kwargs) -> bool: + async def get_no_model_empty(self, **kwargs: Any) -> bool: """Get empty response from server. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py index 079f6451d3b..72af6d62924 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_redirects_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head300(self, **kwargs) -> None: + async def head300(self, **kwargs: Any) -> None: """Return 300 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -90,7 +90,7 @@ async def head300(self, **kwargs) -> None: head300.metadata = {"url": "/http/redirect/300"} # type: ignore @distributed_trace_async - async def get300(self, **kwargs) -> Optional[List[str]]: + async def get300(self, **kwargs: Any) -> Optional[List[str]]: """Return 300 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -136,7 +136,7 @@ async def get300(self, **kwargs) -> Optional[List[str]]: get300.metadata = {"url": "/http/redirect/300"} # type: ignore @distributed_trace_async - async def head301(self, **kwargs) -> None: + async def head301(self, **kwargs: Any) -> None: """Return 301 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -178,7 +178,7 @@ async def head301(self, **kwargs) -> None: head301.metadata = {"url": "/http/redirect/301"} # type: ignore @distributed_trace_async - async def get301(self, **kwargs) -> None: + async def get301(self, **kwargs: Any) -> None: """Return 301 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -220,7 +220,7 @@ async def get301(self, **kwargs) -> None: get301.metadata = {"url": "/http/redirect/301"} # type: ignore @distributed_trace_async - async def put301(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put301(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put true Boolean value in request returns 301. This request should not be automatically redirected, but should return the received 301 to the caller for evaluation. @@ -272,7 +272,7 @@ async def put301(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put301.metadata = {"url": "/http/redirect/301"} # type: ignore @distributed_trace_async - async def head302(self, **kwargs) -> None: + async def head302(self, **kwargs: Any) -> None: """Return 302 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -314,7 +314,7 @@ async def head302(self, **kwargs) -> None: head302.metadata = {"url": "/http/redirect/302"} # type: ignore @distributed_trace_async - async def get302(self, **kwargs) -> None: + async def get302(self, **kwargs: Any) -> None: """Return 302 status code and redirect to /http/success/200. :keyword callable cls: A custom type or function that will be passed the direct response @@ -356,7 +356,7 @@ async def get302(self, **kwargs) -> None: get302.metadata = {"url": "/http/redirect/302"} # type: ignore @distributed_trace_async - async def patch302(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch302(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Patch true Boolean value in request returns 302. This request should not be automatically redirected, but should return the received 302 to the caller for evaluation. @@ -408,7 +408,7 @@ async def patch302(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch302.metadata = {"url": "/http/redirect/302"} # type: ignore @distributed_trace_async - async def post303(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post303(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post true Boolean value in request returns 303. This request should be automatically redirected usign a get, ultimately returning a 200 status code. @@ -461,7 +461,7 @@ async def post303(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post303.metadata = {"url": "/http/redirect/303"} # type: ignore @distributed_trace_async - async def head307(self, **kwargs) -> None: + async def head307(self, **kwargs: Any) -> None: """Redirect with 307, resulting in a 200 success. :keyword callable cls: A custom type or function that will be passed the direct response @@ -503,7 +503,7 @@ async def head307(self, **kwargs) -> None: head307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def get307(self, **kwargs) -> None: + async def get307(self, **kwargs: Any) -> None: """Redirect get with 307, resulting in a 200 success. :keyword callable cls: A custom type or function that will be passed the direct response @@ -545,7 +545,7 @@ async def get307(self, **kwargs) -> None: get307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def options307(self, **kwargs) -> None: + async def options307(self, **kwargs: Any) -> None: """options redirected with 307, resulting in a 200 after redirect. :keyword callable cls: A custom type or function that will be passed the direct response @@ -587,7 +587,7 @@ async def options307(self, **kwargs) -> None: options307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def put307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put redirected with 307, resulting in a 200 after redirect. :param boolean_value: Simple boolean value true. @@ -639,7 +639,7 @@ async def put307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def patch307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Patch redirected with 307, resulting in a 200 after redirect. :param boolean_value: Simple boolean value true. @@ -691,7 +691,7 @@ async def patch307(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def post307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post redirected with 307, resulting in a 200 after redirect. :param boolean_value: Simple boolean value true. @@ -743,7 +743,7 @@ async def post307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post307.metadata = {"url": "/http/redirect/307"} # type: ignore @distributed_trace_async - async def delete307(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete307(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Delete redirected with 307, resulting in a 200 after redirect. :param boolean_value: Simple boolean value true. diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py index 92e34507537..4f5c082f2a1 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_retry_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head408(self, **kwargs) -> None: + async def head408(self, **kwargs: Any) -> None: """Return 408 status code, then 200 after retry. :keyword callable cls: A custom type or function that will be passed the direct response @@ -86,7 +86,7 @@ async def head408(self, **kwargs) -> None: head408.metadata = {"url": "/http/retry/408"} # type: ignore @distributed_trace_async - async def put500(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 500 status code, then 200 after retry. :param boolean_value: Simple boolean value true. @@ -134,7 +134,7 @@ async def put500(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put500.metadata = {"url": "/http/retry/500"} # type: ignore @distributed_trace_async - async def patch500(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch500(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 500 status code, then 200 after retry. :param boolean_value: Simple boolean value true. @@ -182,7 +182,7 @@ async def patch500(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch500.metadata = {"url": "/http/retry/500"} # type: ignore @distributed_trace_async - async def get502(self, **kwargs) -> None: + async def get502(self, **kwargs: Any) -> None: """Return 502 status code, then 200 after retry. :keyword callable cls: A custom type or function that will be passed the direct response @@ -220,7 +220,7 @@ async def get502(self, **kwargs) -> None: get502.metadata = {"url": "/http/retry/502"} # type: ignore @distributed_trace_async - async def options502(self, **kwargs) -> bool: + async def options502(self, **kwargs: Any) -> bool: """Return 502 status code, then 200 after retry. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,7 +262,7 @@ async def options502(self, **kwargs) -> bool: options502.metadata = {"url": "/http/retry/502"} # type: ignore @distributed_trace_async - async def post503(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 503 status code, then 200 after retry. :param boolean_value: Simple boolean value true. @@ -310,7 +310,7 @@ async def post503(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post503.metadata = {"url": "/http/retry/503"} # type: ignore @distributed_trace_async - async def delete503(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete503(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 503 status code, then 200 after retry. :param boolean_value: Simple boolean value true. @@ -358,7 +358,7 @@ async def delete503(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete503.metadata = {"url": "/http/retry/503"} # type: ignore @distributed_trace_async - async def put504(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 504 status code, then 200 after retry. :param boolean_value: Simple boolean value true. @@ -406,7 +406,7 @@ async def put504(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put504.metadata = {"url": "/http/retry/504"} # type: ignore @distributed_trace_async - async def patch504(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch504(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 504 status code, then 200 after retry. :param boolean_value: Simple boolean value true. diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py index b1568646b05..35c2d973794 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_server_failure_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head501(self, **kwargs) -> None: + async def head501(self, **kwargs: Any) -> None: """Return 501 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -86,7 +86,7 @@ async def head501(self, **kwargs) -> None: head501.metadata = {"url": "/http/failure/server/501"} # type: ignore @distributed_trace_async - async def get501(self, **kwargs) -> None: + async def get501(self, **kwargs: Any) -> None: """Return 501 status code - should be represented in the client as an error. :keyword callable cls: A custom type or function that will be passed the direct response @@ -124,7 +124,7 @@ async def get501(self, **kwargs) -> None: get501.metadata = {"url": "/http/failure/server/501"} # type: ignore @distributed_trace_async - async def post505(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 505 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. @@ -172,7 +172,7 @@ async def post505(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post505.metadata = {"url": "/http/failure/server/505"} # type: ignore @distributed_trace_async - async def delete505(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete505(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Return 505 status code - should be represented in the client as an error. :param boolean_value: Simple boolean value true. diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py index d6460a81415..2dfedb61fb9 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_http_success_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def head200(self, **kwargs) -> None: + async def head200(self, **kwargs: Any) -> None: """Return 200 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -86,7 +86,7 @@ async def head200(self, **kwargs) -> None: head200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def get200(self, **kwargs) -> bool: + async def get200(self, **kwargs: Any) -> bool: """Get 200 success. :keyword callable cls: A custom type or function that will be passed the direct response @@ -128,7 +128,7 @@ async def get200(self, **kwargs) -> bool: get200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def options200(self, **kwargs) -> bool: + async def options200(self, **kwargs: Any) -> bool: """Options 200 success. :keyword callable cls: A custom type or function that will be passed the direct response @@ -170,7 +170,7 @@ async def options200(self, **kwargs) -> bool: options200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def put200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put boolean value true returning 200 success. :param boolean_value: Simple boolean value true. @@ -218,7 +218,7 @@ async def put200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def patch200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Patch true Boolean value in request returning 200. :param boolean_value: Simple boolean value true. @@ -266,7 +266,7 @@ async def patch200(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def post200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post bollean value true in request that returns a 200. :param boolean_value: Simple boolean value true. @@ -314,7 +314,7 @@ async def post200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def delete200(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete200(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Delete simple boolean value true returns 200. :param boolean_value: Simple boolean value true. @@ -362,7 +362,7 @@ async def delete200(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete200.metadata = {"url": "/http/success/200"} # type: ignore @distributed_trace_async - async def put201(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put true Boolean value in request returns 201. :param boolean_value: Simple boolean value true. @@ -410,7 +410,7 @@ async def put201(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put201.metadata = {"url": "/http/success/201"} # type: ignore @distributed_trace_async - async def post201(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post201(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post true Boolean value in request returns 201 (Created). :param boolean_value: Simple boolean value true. @@ -458,7 +458,7 @@ async def post201(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post201.metadata = {"url": "/http/success/201"} # type: ignore @distributed_trace_async - async def put202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put true Boolean value in request returns 202 (Accepted). :param boolean_value: Simple boolean value true. @@ -506,7 +506,7 @@ async def put202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put202.metadata = {"url": "/http/success/202"} # type: ignore @distributed_trace_async - async def patch202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Patch true Boolean value in request returns 202. :param boolean_value: Simple boolean value true. @@ -554,7 +554,7 @@ async def patch202(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch202.metadata = {"url": "/http/success/202"} # type: ignore @distributed_trace_async - async def post202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post true Boolean value in request returns 202 (Accepted). :param boolean_value: Simple boolean value true. @@ -602,7 +602,7 @@ async def post202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post202.metadata = {"url": "/http/success/202"} # type: ignore @distributed_trace_async - async def delete202(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete202(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Delete true Boolean value in request returns 202 (accepted). :param boolean_value: Simple boolean value true. @@ -650,7 +650,7 @@ async def delete202(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete202.metadata = {"url": "/http/success/202"} # type: ignore @distributed_trace_async - async def head204(self, **kwargs) -> None: + async def head204(self, **kwargs: Any) -> None: """Return 204 status code if successful. :keyword callable cls: A custom type or function that will be passed the direct response @@ -688,7 +688,7 @@ async def head204(self, **kwargs) -> None: head204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def put204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def put204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Put true Boolean value in request returns 204 (no content). :param boolean_value: Simple boolean value true. @@ -736,7 +736,7 @@ async def put204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: put204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def patch204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def patch204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Patch true Boolean value in request returns 204 (no content). :param boolean_value: Simple boolean value true. @@ -784,7 +784,7 @@ async def patch204(self, boolean_value: Optional[bool] = True, **kwargs) -> None patch204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def post204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def post204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Post true Boolean value in request returns 204 (no content). :param boolean_value: Simple boolean value true. @@ -832,7 +832,7 @@ async def post204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: post204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def delete204(self, boolean_value: Optional[bool] = True, **kwargs) -> None: + async def delete204(self, boolean_value: Optional[bool] = True, **kwargs: Any) -> None: """Delete true Boolean value in request returns 204 (no content). :param boolean_value: Simple boolean value true. @@ -880,7 +880,7 @@ async def delete204(self, boolean_value: Optional[bool] = True, **kwargs) -> Non delete204.metadata = {"url": "/http/success/204"} # type: ignore @distributed_trace_async - async def head404(self, **kwargs) -> None: + async def head404(self, **kwargs: Any) -> None: """Return 404 status code. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py index af1dfe0653d..58ddb5d28a3 100644 --- a/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Http/httpinfrastructure/aio/operations/_multiple_responses_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get200_model204_no_model_default_error200_valid(self, **kwargs) -> Optional["_models.MyException"]: + async def get200_model204_no_model_default_error200_valid(self, **kwargs: Any) -> Optional["_models.MyException"]: """Send a 200 response with valid payload: {'statusCode': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -92,7 +92,7 @@ async def get200_model204_no_model_default_error200_valid(self, **kwargs) -> Opt get200_model204_no_model_default_error200_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/200/valid"} # type: ignore @distributed_trace_async - async def get200_model204_no_model_default_error204_valid(self, **kwargs) -> Optional["_models.MyException"]: + async def get200_model204_no_model_default_error204_valid(self, **kwargs: Any) -> Optional["_models.MyException"]: """Send a 204 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -136,7 +136,7 @@ async def get200_model204_no_model_default_error204_valid(self, **kwargs) -> Opt get200_model204_no_model_default_error204_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/204/none"} # type: ignore @distributed_trace_async - async def get200_model204_no_model_default_error201_invalid(self, **kwargs) -> Optional["_models.MyException"]: + async def get200_model204_no_model_default_error201_invalid(self, **kwargs: Any) -> Optional["_models.MyException"]: """Send a 201 response with valid payload: {'statusCode': '201'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -180,7 +180,7 @@ async def get200_model204_no_model_default_error201_invalid(self, **kwargs) -> O get200_model204_no_model_default_error201_invalid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/201/valid"} # type: ignore @distributed_trace_async - async def get200_model204_no_model_default_error202_none(self, **kwargs) -> Optional["_models.MyException"]: + async def get200_model204_no_model_default_error202_none(self, **kwargs: Any) -> Optional["_models.MyException"]: """Send a 202 response with no payload:. :keyword callable cls: A custom type or function that will be passed the direct response @@ -224,7 +224,7 @@ async def get200_model204_no_model_default_error202_none(self, **kwargs) -> Opti get200_model204_no_model_default_error202_none.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/202/none"} # type: ignore @distributed_trace_async - async def get200_model204_no_model_default_error400_valid(self, **kwargs) -> Optional["_models.MyException"]: + async def get200_model204_no_model_default_error400_valid(self, **kwargs: Any) -> Optional["_models.MyException"]: """Send a 400 response with valid error payload: {'status': 400, 'message': 'client error'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -268,7 +268,9 @@ async def get200_model204_no_model_default_error400_valid(self, **kwargs) -> Opt get200_model204_no_model_default_error400_valid.metadata = {"url": "/http/payloads/200/A/204/none/default/Error/response/400/valid"} # type: ignore @distributed_trace_async - async def get200_model201_model_default_error200_valid(self, **kwargs) -> Union["_models.MyException", "_models.B"]: + async def get200_model201_model_default_error200_valid( + self, **kwargs: Any + ) -> Union["_models.MyException", "_models.B"]: """Send a 200 response with valid payload: {'statusCode': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -314,7 +316,9 @@ async def get200_model201_model_default_error200_valid(self, **kwargs) -> Union[ get200_model201_model_default_error200_valid.metadata = {"url": "/http/payloads/200/A/201/B/default/Error/response/200/valid"} # type: ignore @distributed_trace_async - async def get200_model201_model_default_error201_valid(self, **kwargs) -> Union["_models.MyException", "_models.B"]: + async def get200_model201_model_default_error201_valid( + self, **kwargs: Any + ) -> Union["_models.MyException", "_models.B"]: """Send a 201 response with valid payload: {'statusCode': '201', 'textStatusCode': 'Created'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -360,7 +364,9 @@ async def get200_model201_model_default_error201_valid(self, **kwargs) -> Union[ get200_model201_model_default_error201_valid.metadata = {"url": "/http/payloads/200/A/201/B/default/Error/response/201/valid"} # type: ignore @distributed_trace_async - async def get200_model201_model_default_error400_valid(self, **kwargs) -> Union["_models.MyException", "_models.B"]: + async def get200_model201_model_default_error400_valid( + self, **kwargs: Any + ) -> Union["_models.MyException", "_models.B"]: """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -407,7 +413,7 @@ async def get200_model201_model_default_error400_valid(self, **kwargs) -> Union[ @distributed_trace_async async def get200_model_a201_model_c404_model_d_default_error200_valid( - self, **kwargs + self, **kwargs: Any ) -> Union["_models.MyException", "_models.C", "_models.D"]: """Send a 200 response with valid payload: {'statusCode': '200'}. @@ -458,7 +464,7 @@ async def get200_model_a201_model_c404_model_d_default_error200_valid( @distributed_trace_async async def get200_model_a201_model_c404_model_d_default_error201_valid( - self, **kwargs + self, **kwargs: Any ) -> Union["_models.MyException", "_models.C", "_models.D"]: """Send a 200 response with valid payload: {'httpCode': '201'}. @@ -509,7 +515,7 @@ async def get200_model_a201_model_c404_model_d_default_error201_valid( @distributed_trace_async async def get200_model_a201_model_c404_model_d_default_error404_valid( - self, **kwargs + self, **kwargs: Any ) -> Union["_models.MyException", "_models.C", "_models.D"]: """Send a 200 response with valid payload: {'httpStatusCode': '404'}. @@ -560,7 +566,7 @@ async def get200_model_a201_model_c404_model_d_default_error404_valid( @distributed_trace_async async def get200_model_a201_model_c404_model_d_default_error400_valid( - self, **kwargs + self, **kwargs: Any ) -> Union["_models.MyException", "_models.C", "_models.D"]: """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. @@ -610,7 +616,7 @@ async def get200_model_a201_model_c404_model_d_default_error400_valid( get200_model_a201_model_c404_model_d_default_error400_valid.metadata = {"url": "/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_error202_none(self, **kwargs) -> None: + async def get202_none204_none_default_error202_none(self, **kwargs: Any) -> None: """Send a 202 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -648,7 +654,7 @@ async def get202_none204_none_default_error202_none(self, **kwargs) -> None: get202_none204_none_default_error202_none.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/202/none"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_error204_none(self, **kwargs) -> None: + async def get202_none204_none_default_error204_none(self, **kwargs: Any) -> None: """Send a 204 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -686,7 +692,7 @@ async def get202_none204_none_default_error204_none(self, **kwargs) -> None: get202_none204_none_default_error204_none.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/204/none"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_error400_valid(self, **kwargs) -> None: + async def get202_none204_none_default_error400_valid(self, **kwargs: Any) -> None: """Send a 400 response with valid payload: {'code': '400', 'message': 'client error'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -724,7 +730,7 @@ async def get202_none204_none_default_error400_valid(self, **kwargs) -> None: get202_none204_none_default_error400_valid.metadata = {"url": "/http/payloads/202/none/204/none/default/Error/response/400/valid"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_none202_invalid(self, **kwargs) -> None: + async def get202_none204_none_default_none202_invalid(self, **kwargs: Any) -> None: """Send a 202 response with an unexpected payload {'property': 'value'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -759,7 +765,7 @@ async def get202_none204_none_default_none202_invalid(self, **kwargs) -> None: get202_none204_none_default_none202_invalid.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/202/invalid"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_none204_none(self, **kwargs) -> None: + async def get202_none204_none_default_none204_none(self, **kwargs: Any) -> None: """Send a 204 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -794,7 +800,7 @@ async def get202_none204_none_default_none204_none(self, **kwargs) -> None: get202_none204_none_default_none204_none.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/204/none"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_none400_none(self, **kwargs) -> None: + async def get202_none204_none_default_none400_none(self, **kwargs: Any) -> None: """Send a 400 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -829,7 +835,7 @@ async def get202_none204_none_default_none400_none(self, **kwargs) -> None: get202_none204_none_default_none400_none.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/400/none"} # type: ignore @distributed_trace_async - async def get202_none204_none_default_none400_invalid(self, **kwargs) -> None: + async def get202_none204_none_default_none400_invalid(self, **kwargs: Any) -> None: """Send a 400 response with an unexpected payload {'property': 'value'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -864,7 +870,7 @@ async def get202_none204_none_default_none400_invalid(self, **kwargs) -> None: get202_none204_none_default_none400_invalid.metadata = {"url": "/http/payloads/202/none/204/none/default/none/response/400/invalid"} # type: ignore @distributed_trace_async - async def get_default_model_a200_valid(self, **kwargs) -> "_models.MyException": + async def get_default_model_a200_valid(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with valid payload: {'statusCode': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -905,7 +911,7 @@ async def get_default_model_a200_valid(self, **kwargs) -> "_models.MyException": get_default_model_a200_valid.metadata = {"url": "/http/payloads/default/A/response/200/valid"} # type: ignore @distributed_trace_async - async def get_default_model_a200_none(self, **kwargs) -> "_models.MyException": + async def get_default_model_a200_none(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -946,7 +952,7 @@ async def get_default_model_a200_none(self, **kwargs) -> "_models.MyException": get_default_model_a200_none.metadata = {"url": "/http/payloads/default/A/response/200/none"} # type: ignore @distributed_trace_async - async def get_default_model_a400_valid(self, **kwargs) -> None: + async def get_default_model_a400_valid(self, **kwargs: Any) -> None: """Send a 400 response with valid payload: {'statusCode': '400'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -984,7 +990,7 @@ async def get_default_model_a400_valid(self, **kwargs) -> None: get_default_model_a400_valid.metadata = {"url": "/http/payloads/default/A/response/400/valid"} # type: ignore @distributed_trace_async - async def get_default_model_a400_none(self, **kwargs) -> None: + async def get_default_model_a400_none(self, **kwargs: Any) -> None: """Send a 400 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1022,7 +1028,7 @@ async def get_default_model_a400_none(self, **kwargs) -> None: get_default_model_a400_none.metadata = {"url": "/http/payloads/default/A/response/400/none"} # type: ignore @distributed_trace_async - async def get_default_none200_invalid(self, **kwargs) -> None: + async def get_default_none200_invalid(self, **kwargs: Any) -> None: """Send a 200 response with invalid payload: {'statusCode': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1057,7 +1063,7 @@ async def get_default_none200_invalid(self, **kwargs) -> None: get_default_none200_invalid.metadata = {"url": "/http/payloads/default/none/response/200/invalid"} # type: ignore @distributed_trace_async - async def get_default_none200_none(self, **kwargs) -> None: + async def get_default_none200_none(self, **kwargs: Any) -> None: """Send a 200 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1092,7 +1098,7 @@ async def get_default_none200_none(self, **kwargs) -> None: get_default_none200_none.metadata = {"url": "/http/payloads/default/none/response/200/none"} # type: ignore @distributed_trace_async - async def get_default_none400_invalid(self, **kwargs) -> None: + async def get_default_none400_invalid(self, **kwargs: Any) -> None: """Send a 400 response with valid payload: {'statusCode': '400'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1127,7 +1133,7 @@ async def get_default_none400_invalid(self, **kwargs) -> None: get_default_none400_invalid.metadata = {"url": "/http/payloads/default/none/response/400/invalid"} # type: ignore @distributed_trace_async - async def get_default_none400_none(self, **kwargs) -> None: + async def get_default_none400_none(self, **kwargs: Any) -> None: """Send a 400 response with no payload. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1162,7 +1168,7 @@ async def get_default_none400_none(self, **kwargs) -> None: get_default_none400_none.metadata = {"url": "/http/payloads/default/none/response/400/none"} # type: ignore @distributed_trace_async - async def get200_model_a200_none(self, **kwargs) -> "_models.MyException": + async def get200_model_a200_none(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with no payload, when a payload is expected - client should return a null object of thde type for model A. @@ -1204,7 +1210,7 @@ async def get200_model_a200_none(self, **kwargs) -> "_models.MyException": get200_model_a200_none.metadata = {"url": "/http/payloads/200/A/response/200/none"} # type: ignore @distributed_trace_async - async def get200_model_a200_valid(self, **kwargs) -> "_models.MyException": + async def get200_model_a200_valid(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with payload {'statusCode': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1245,7 +1251,7 @@ async def get200_model_a200_valid(self, **kwargs) -> "_models.MyException": get200_model_a200_valid.metadata = {"url": "/http/payloads/200/A/response/200/valid"} # type: ignore @distributed_trace_async - async def get200_model_a200_invalid(self, **kwargs) -> "_models.MyException": + async def get200_model_a200_invalid(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1286,7 +1292,7 @@ async def get200_model_a200_invalid(self, **kwargs) -> "_models.MyException": get200_model_a200_invalid.metadata = {"url": "/http/payloads/200/A/response/200/invalid"} # type: ignore @distributed_trace_async - async def get200_model_a400_none(self, **kwargs) -> "_models.MyException": + async def get200_model_a400_none(self, **kwargs: Any) -> "_models.MyException": """Send a 400 response with no payload client should treat as an http error with no error model. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1327,7 +1333,7 @@ async def get200_model_a400_none(self, **kwargs) -> "_models.MyException": get200_model_a400_none.metadata = {"url": "/http/payloads/200/A/response/400/none"} # type: ignore @distributed_trace_async - async def get200_model_a400_valid(self, **kwargs) -> "_models.MyException": + async def get200_model_a400_valid(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with payload {'statusCode': '400'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1368,7 +1374,7 @@ async def get200_model_a400_valid(self, **kwargs) -> "_models.MyException": get200_model_a400_valid.metadata = {"url": "/http/payloads/200/A/response/400/valid"} # type: ignore @distributed_trace_async - async def get200_model_a400_invalid(self, **kwargs) -> "_models.MyException": + async def get200_model_a400_invalid(self, **kwargs: Any) -> "_models.MyException": """Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1409,7 +1415,7 @@ async def get200_model_a400_invalid(self, **kwargs) -> "_models.MyException": get200_model_a400_invalid.metadata = {"url": "/http/payloads/200/A/response/400/invalid"} # type: ignore @distributed_trace_async - async def get200_model_a202_valid(self, **kwargs) -> "_models.MyException": + async def get200_model_a202_valid(self, **kwargs: Any) -> "_models.MyException": """Send a 202 response with payload {'statusCode': '202'}. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py index fdea6d78246..259fbd7b184 100644 --- a/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/IncorrectErrorResponse/incorrecterrorresponse/aio/operations/_incorrect_returned_error_model_operations.py @@ -27,7 +27,7 @@ class IncorrectReturnedErrorModelOperationsMixin: @distributed_trace_async - async def get_incorrect_error_from_server(self, **kwargs) -> None: + async def get_incorrect_error_from_server(self, **kwargs: Any) -> None: """Get an error response from the server that is not as described in our Error object. Want to swallow the deserialization error and still return an HttpResponseError to the users. diff --git a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py index e91812a88c4..c14fa81f302 100644 --- a/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/MediaTypes/mediatypes/aio/operations/_media_types_client_operations.py @@ -27,7 +27,7 @@ class MediaTypesClientOperationsMixin: @distributed_trace_async - async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = None, **kwargs) -> str: + async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = None, **kwargs: Any) -> str: """Analyze body, that could be different media types. :param input: Input parameter. @@ -95,7 +95,7 @@ async def analyze_body(self, input: Optional[Union[IO, "_models.SourcePath"]] = analyze_body.metadata = {"url": "/mediatypes/analyze"} # type: ignore @distributed_trace_async - async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs) -> str: + async def content_type_with_encoding(self, input: Optional[str] = None, **kwargs: Any) -> str: """Pass in contentType 'text/plain; encoding=UTF-8' to pass test. Value for input does not matter. :param input: Input parameter. diff --git a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py index 3f720059092..1d4f8693d5a 100644 --- a/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/operations/_auto_rest_resource_flattening_test_service_operations.py @@ -27,7 +27,7 @@ class AutoRestResourceFlatteningTestServiceOperationsMixin: @distributed_trace_async - async def put_array(self, resource_array: Optional[List["_models.Resource"]] = None, **kwargs) -> None: + async def put_array(self, resource_array: Optional[List["_models.Resource"]] = None, **kwargs: Any) -> None: """Put External Resource as an Array. :param resource_array: External Resource as an Array to put. @@ -75,7 +75,7 @@ async def put_array(self, resource_array: Optional[List["_models.Resource"]] = N put_array.metadata = {"url": "/model-flatten/array"} # type: ignore @distributed_trace_async - async def get_array(self, **kwargs) -> List["_models.FlattenedProduct"]: + async def get_array(self, **kwargs: Any) -> List["_models.FlattenedProduct"]: """Get External Resource as an Array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -118,7 +118,7 @@ async def get_array(self, **kwargs) -> List["_models.FlattenedProduct"]: @distributed_trace_async async def put_wrapped_array( - self, resource_array: Optional[List["_models.WrappedProduct"]] = None, **kwargs + self, resource_array: Optional[List["_models.WrappedProduct"]] = None, **kwargs: Any ) -> None: """No need to have a route in Express server for this operation. Used to verify the type flattened is not removed if it's referenced in an array. @@ -168,7 +168,7 @@ async def put_wrapped_array( put_wrapped_array.metadata = {"url": "/model-flatten/wrappedarray"} # type: ignore @distributed_trace_async - async def get_wrapped_array(self, **kwargs) -> List["_models.ProductWrapper"]: + async def get_wrapped_array(self, **kwargs: Any) -> List["_models.ProductWrapper"]: """No need to have a route in Express server for this operation. Used to verify the type flattened is not removed if it's referenced in an array. @@ -212,7 +212,7 @@ async def get_wrapped_array(self, **kwargs) -> List["_models.ProductWrapper"]: @distributed_trace_async async def put_dictionary( - self, resource_dictionary: Optional[Dict[str, "_models.FlattenedProduct"]] = None, **kwargs + self, resource_dictionary: Optional[Dict[str, "_models.FlattenedProduct"]] = None, **kwargs: Any ) -> None: """Put External Resource as a Dictionary. @@ -261,7 +261,7 @@ async def put_dictionary( put_dictionary.metadata = {"url": "/model-flatten/dictionary"} # type: ignore @distributed_trace_async - async def get_dictionary(self, **kwargs) -> Dict[str, "_models.FlattenedProduct"]: + async def get_dictionary(self, **kwargs: Any) -> Dict[str, "_models.FlattenedProduct"]: """Get External Resource as a Dictionary. :keyword callable cls: A custom type or function that will be passed the direct response @@ -304,7 +304,7 @@ async def get_dictionary(self, **kwargs) -> Dict[str, "_models.FlattenedProduct" @distributed_trace_async async def put_resource_collection( - self, resource_complex_object: Optional["_models.ResourceCollection"] = None, **kwargs + self, resource_complex_object: Optional["_models.ResourceCollection"] = None, **kwargs: Any ) -> None: """Put External Resource as a ResourceCollection. @@ -353,7 +353,7 @@ async def put_resource_collection( put_resource_collection.metadata = {"url": "/model-flatten/resourcecollection"} # type: ignore @distributed_trace_async - async def get_resource_collection(self, **kwargs) -> "_models.ResourceCollection": + async def get_resource_collection(self, **kwargs: Any) -> "_models.ResourceCollection": """Get External Resource as a ResourceCollection. :keyword callable cls: A custom type or function that will be passed the direct response @@ -396,7 +396,7 @@ async def get_resource_collection(self, **kwargs) -> "_models.ResourceCollection @distributed_trace_async async def put_simple_product( - self, simple_body_product: Optional["_models.SimpleProduct"] = None, **kwargs + self, simple_body_product: Optional["_models.SimpleProduct"] = None, **kwargs: Any ) -> "_models.SimpleProduct": """Put Simple Product with client flattening true on the model. @@ -456,7 +456,7 @@ async def post_flattened_simple_product( max_product_display_name: Optional[str] = None, generic_value: Optional[str] = None, odata_value: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.SimpleProduct": """Put Flattened Simple Product with client flattening true on the parameter. @@ -528,7 +528,7 @@ async def post_flattened_simple_product( @distributed_trace_async async def put_simple_product_with_grouping( - self, flatten_parameter_group: "_models.FlattenParameterGroup", **kwargs + self, flatten_parameter_group: "_models.FlattenParameterGroup", **kwargs: Any ) -> "_models.SimpleProduct": """Put Simple Product with client flattening true on the model. diff --git a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py index 9a27ebdf79f..30c03625474 100644 --- a/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/MultipleInheritance/multipleinheritance/aio/operations/_multiple_inheritance_service_client_operations.py @@ -27,7 +27,7 @@ class MultipleInheritanceServiceClientOperationsMixin: @distributed_trace_async - async def get_horse(self, **kwargs) -> "_models.Horse": + async def get_horse(self, **kwargs: Any) -> "_models.Horse": """Get a horse with name 'Fred' and isAShowHorse true. :keyword callable cls: A custom type or function that will be passed the direct response @@ -69,7 +69,7 @@ async def get_horse(self, **kwargs) -> "_models.Horse": get_horse.metadata = {"url": "/multipleInheritance/horse"} # type: ignore @distributed_trace_async - async def put_horse(self, horse: "_models.Horse", **kwargs) -> str: + async def put_horse(self, horse: "_models.Horse", **kwargs: Any) -> str: """Put a horse with name 'General' and isAShowHorse false. :param horse: Put a horse with name 'General' and isAShowHorse false. @@ -117,7 +117,7 @@ async def put_horse(self, horse: "_models.Horse", **kwargs) -> str: put_horse.metadata = {"url": "/multipleInheritance/horse"} # type: ignore @distributed_trace_async - async def get_pet(self, **kwargs) -> "_models.Pet": + async def get_pet(self, **kwargs: Any) -> "_models.Pet": """Get a pet with name 'Peanut'. :keyword callable cls: A custom type or function that will be passed the direct response @@ -159,7 +159,7 @@ async def get_pet(self, **kwargs) -> "_models.Pet": get_pet.metadata = {"url": "/multipleInheritance/pet"} # type: ignore @distributed_trace_async - async def put_pet(self, name: str, **kwargs) -> str: + async def put_pet(self, name: str, **kwargs: Any) -> str: """Put a pet with name 'Butter'. :param name: @@ -209,7 +209,7 @@ async def put_pet(self, name: str, **kwargs) -> str: put_pet.metadata = {"url": "/multipleInheritance/pet"} # type: ignore @distributed_trace_async - async def get_feline(self, **kwargs) -> "_models.Feline": + async def get_feline(self, **kwargs: Any) -> "_models.Feline": """Get a feline where meows and hisses are true. :keyword callable cls: A custom type or function that will be passed the direct response @@ -251,7 +251,7 @@ async def get_feline(self, **kwargs) -> "_models.Feline": get_feline.metadata = {"url": "/multipleInheritance/feline"} # type: ignore @distributed_trace_async - async def put_feline(self, feline: "_models.Feline", **kwargs) -> str: + async def put_feline(self, feline: "_models.Feline", **kwargs: Any) -> str: """Put a feline who hisses and doesn't meow. :param feline: Put a feline who hisses and doesn't meow. @@ -299,7 +299,7 @@ async def put_feline(self, feline: "_models.Feline", **kwargs) -> str: put_feline.metadata = {"url": "/multipleInheritance/feline"} # type: ignore @distributed_trace_async - async def get_cat(self, **kwargs) -> "_models.Cat": + async def get_cat(self, **kwargs: Any) -> "_models.Cat": """Get a cat with name 'Whiskers' where likesMilk, meows, and hisses is true. :keyword callable cls: A custom type or function that will be passed the direct response @@ -341,7 +341,7 @@ async def get_cat(self, **kwargs) -> "_models.Cat": get_cat.metadata = {"url": "/multipleInheritance/cat"} # type: ignore @distributed_trace_async - async def put_cat(self, cat: "_models.Cat", **kwargs) -> str: + async def put_cat(self, cat: "_models.Cat", **kwargs: Any) -> str: """Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. :param cat: Put a cat with name 'Boots' where likesMilk and hisses is false, meows is true. @@ -389,7 +389,7 @@ async def put_cat(self, cat: "_models.Cat", **kwargs) -> str: put_cat.metadata = {"url": "/multipleInheritance/cat"} # type: ignore @distributed_trace_async - async def get_kitten(self, **kwargs) -> "_models.Kitten": + async def get_kitten(self, **kwargs: Any) -> "_models.Kitten": """Get a kitten with name 'Gatito' where likesMilk and meows is true, and hisses and eatsMiceYet is false. @@ -432,7 +432,7 @@ async def get_kitten(self, **kwargs) -> "_models.Kitten": get_kitten.metadata = {"url": "/multipleInheritance/kitten"} # type: ignore @distributed_trace_async - async def put_kitten(self, kitten: "_models.Kitten", **kwargs) -> str: + async def put_kitten(self, kitten: "_models.Kitten", **kwargs: Any) -> str: """Put a kitten with name 'Kitty' where likesMilk and hisses is false, meows and eatsMiceYet is true. diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py index 520e97751df..4d0a61413b5 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_float_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, **kwargs) -> str: + async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, **kwargs: Any) -> str: """Put a float enum. :param input: Input float enum. @@ -95,7 +95,7 @@ async def put(self, input: Optional[Union[float, "_models.FloatEnum"]] = None, * put.metadata = {"url": "/nonStringEnums/float/put"} # type: ignore @distributed_trace_async - async def get(self, **kwargs) -> Union[float, "_models.FloatEnum"]: + async def get(self, **kwargs: Any) -> Union[float, "_models.FloatEnum"]: """Get a float enum. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py index ff9ca34db83..5768efe11ab 100644 --- a/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/NonStringEnums/nonstringenums/aio/operations/_int_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwargs) -> str: + async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwargs: Any) -> str: """Put an int enum. :param input: Input int enum. @@ -95,7 +95,7 @@ async def put(self, input: Optional[Union[int, "_models.IntEnum"]] = None, **kwa put.metadata = {"url": "/nonStringEnums/int/put"} # type: ignore @distributed_trace_async - async def get(self, **kwargs) -> Union[int, "_models.IntEnum"]: + async def get(self, **kwargs: Any) -> Union[int, "_models.IntEnum"]: """Get an int enum. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py index 789917000ad..196b00bc28a 100644 --- a/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ObjectType/objecttype/aio/operations/_object_type_client_operations.py @@ -25,7 +25,7 @@ class ObjectTypeClientOperationsMixin: @distributed_trace_async - async def get(self, **kwargs) -> object: + async def get(self, **kwargs: Any) -> object: """Basic get that returns an object. Returns object { 'message': 'An object was successfully returned' }. @@ -68,7 +68,7 @@ async def get(self, **kwargs) -> object: get.metadata = {"url": "/objectType/get"} # type: ignore @distributed_trace_async - async def put(self, put_object: object, **kwargs) -> None: + async def put(self, put_object: object, **kwargs: Any) -> None: """Basic put that puts an object. Pass in {'foo': 'bar'} to get a 200 and anything else to get an object error. diff --git a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py index 761d724a4cb..c7a74bbdad3 100644 --- a/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/aio/operations/_availability_sets_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def update(self, resource_group_name: str, avset: str, tags: Dict[str, str], **kwargs) -> None: + async def update(self, resource_group_name: str, avset: str, tags: Dict[str, str], **kwargs: Any) -> None: """Updates the tags for an availability set. :param resource_group_name: The name of the resource group. diff --git a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py index b8f5fb347eb..07f0d7ec3cb 100644 --- a/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Report/report/aio/operations/_auto_rest_report_service_operations.py @@ -27,7 +27,7 @@ class AutoRestReportServiceOperationsMixin: @distributed_trace_async - async def get_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[str, int]: + async def get_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Dict[str, int]: """Get test coverage report. :param qualifier: If specified, qualifies the generated report further (e.g. '2.7' vs '3.5' in @@ -75,7 +75,7 @@ async def get_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[st get_report.metadata = {"url": "/report"} # type: ignore @distributed_trace_async - async def get_optional_report(self, qualifier: Optional[str] = None, **kwargs) -> Dict[str, int]: + async def get_optional_report(self, qualifier: Optional[str] = None, **kwargs: Any) -> Dict[str, int]: """Get optional test coverage report. :param qualifier: If specified, qualifies the generated report further (e.g. '2.7' vs '3.5' in diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py index 432248419ab..e256d013621 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_explicit_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, **kwargs) -> None: + async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, **kwargs: Any) -> None: """Test explicitly optional body parameter. :param body_parameter: @@ -92,7 +92,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** put_optional_binary_body.metadata = {"url": "/reqopt/explicit/optional/binary-body"} # type: ignore @distributed_trace_async - async def put_required_binary_body(self, body_parameter: IO, **kwargs) -> None: + async def put_required_binary_body(self, body_parameter: IO, **kwargs: Any) -> None: """Test explicitly required body parameter. :param body_parameter: @@ -136,7 +136,7 @@ async def put_required_binary_body(self, body_parameter: IO, **kwargs) -> None: put_required_binary_body.metadata = {"url": "/reqopt/explicit/required/binary-body"} # type: ignore @distributed_trace_async - async def post_required_integer_parameter(self, body_parameter: int, **kwargs) -> None: + async def post_required_integer_parameter(self, body_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put null and the client library should throw before the request is sent. @@ -182,7 +182,7 @@ async def post_required_integer_parameter(self, body_parameter: int, **kwargs) - post_required_integer_parameter.metadata = {"url": "/reqopt/requied/integer/parameter"} # type: ignore @distributed_trace_async - async def post_optional_integer_parameter(self, body_parameter: Optional[int] = None, **kwargs) -> None: + async def post_optional_integer_parameter(self, body_parameter: Optional[int] = None, **kwargs: Any) -> None: """Test explicitly optional integer. Please put null. :param body_parameter: @@ -230,7 +230,7 @@ async def post_optional_integer_parameter(self, body_parameter: Optional[int] = post_optional_integer_parameter.metadata = {"url": "/reqopt/optional/integer/parameter"} # type: ignore @distributed_trace_async - async def post_required_integer_property(self, value: int, **kwargs) -> None: + async def post_required_integer_property(self, value: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put a valid int-wrapper with 'value' = null and the client library should throw before the request is sent. @@ -278,7 +278,7 @@ async def post_required_integer_property(self, value: int, **kwargs) -> None: post_required_integer_property.metadata = {"url": "/reqopt/requied/integer/property"} # type: ignore @distributed_trace_async - async def post_optional_integer_property(self, value: Optional[int] = None, **kwargs) -> None: + async def post_optional_integer_property(self, value: Optional[int] = None, **kwargs: Any) -> None: """Test explicitly optional integer. Please put a valid int-wrapper with 'value' = null. :param value: @@ -328,7 +328,7 @@ async def post_optional_integer_property(self, value: Optional[int] = None, **kw post_optional_integer_property.metadata = {"url": "/reqopt/optional/integer/property"} # type: ignore @distributed_trace_async - async def post_required_integer_header(self, header_parameter: int, **kwargs) -> None: + async def post_required_integer_header(self, header_parameter: int, **kwargs: Any) -> None: """Test explicitly required integer. Please put a header 'headerParameter' => null and the client library should throw before the request is sent. @@ -370,7 +370,7 @@ async def post_required_integer_header(self, header_parameter: int, **kwargs) -> post_required_integer_header.metadata = {"url": "/reqopt/requied/integer/header"} # type: ignore @distributed_trace_async - async def post_optional_integer_header(self, header_parameter: Optional[int] = None, **kwargs) -> None: + async def post_optional_integer_header(self, header_parameter: Optional[int] = None, **kwargs: Any) -> None: """Test explicitly optional integer. Please put a header 'headerParameter' => null. :param header_parameter: @@ -412,7 +412,7 @@ async def post_optional_integer_header(self, header_parameter: Optional[int] = N post_optional_integer_header.metadata = {"url": "/reqopt/optional/integer/header"} # type: ignore @distributed_trace_async - async def post_required_string_parameter(self, body_parameter: str, **kwargs) -> None: + async def post_required_string_parameter(self, body_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put null and the client library should throw before the request is sent. @@ -458,7 +458,7 @@ async def post_required_string_parameter(self, body_parameter: str, **kwargs) -> post_required_string_parameter.metadata = {"url": "/reqopt/requied/string/parameter"} # type: ignore @distributed_trace_async - async def post_optional_string_parameter(self, body_parameter: Optional[str] = None, **kwargs) -> None: + async def post_optional_string_parameter(self, body_parameter: Optional[str] = None, **kwargs: Any) -> None: """Test explicitly optional string. Please put null. :param body_parameter: @@ -506,7 +506,7 @@ async def post_optional_string_parameter(self, body_parameter: Optional[str] = N post_optional_string_parameter.metadata = {"url": "/reqopt/optional/string/parameter"} # type: ignore @distributed_trace_async - async def post_required_string_property(self, value: str, **kwargs) -> None: + async def post_required_string_property(self, value: str, **kwargs: Any) -> None: """Test explicitly required string. Please put a valid string-wrapper with 'value' = null and the client library should throw before the request is sent. @@ -554,7 +554,7 @@ async def post_required_string_property(self, value: str, **kwargs) -> None: post_required_string_property.metadata = {"url": "/reqopt/requied/string/property"} # type: ignore @distributed_trace_async - async def post_optional_string_property(self, value: Optional[str] = None, **kwargs) -> None: + async def post_optional_string_property(self, value: Optional[str] = None, **kwargs: Any) -> None: """Test explicitly optional integer. Please put a valid string-wrapper with 'value' = null. :param value: @@ -604,7 +604,7 @@ async def post_optional_string_property(self, value: Optional[str] = None, **kwa post_optional_string_property.metadata = {"url": "/reqopt/optional/string/property"} # type: ignore @distributed_trace_async - async def post_required_string_header(self, header_parameter: str, **kwargs) -> None: + async def post_required_string_header(self, header_parameter: str, **kwargs: Any) -> None: """Test explicitly required string. Please put a header 'headerParameter' => null and the client library should throw before the request is sent. @@ -646,7 +646,7 @@ async def post_required_string_header(self, header_parameter: str, **kwargs) -> post_required_string_header.metadata = {"url": "/reqopt/requied/string/header"} # type: ignore @distributed_trace_async - async def post_optional_string_header(self, body_parameter: Optional[str] = None, **kwargs) -> None: + async def post_optional_string_header(self, body_parameter: Optional[str] = None, **kwargs: Any) -> None: """Test explicitly optional string. Please put a header 'headerParameter' => null. :param body_parameter: @@ -688,7 +688,7 @@ async def post_optional_string_header(self, body_parameter: Optional[str] = None post_optional_string_header.metadata = {"url": "/reqopt/optional/string/header"} # type: ignore @distributed_trace_async - async def post_required_class_parameter(self, body_parameter: "_models.Product", **kwargs) -> None: + async def post_required_class_parameter(self, body_parameter: "_models.Product", **kwargs: Any) -> None: """Test explicitly required complex object. Please put null and the client library should throw before the request is sent. @@ -734,7 +734,9 @@ async def post_required_class_parameter(self, body_parameter: "_models.Product", post_required_class_parameter.metadata = {"url": "/reqopt/requied/class/parameter"} # type: ignore @distributed_trace_async - async def post_optional_class_parameter(self, body_parameter: Optional["_models.Product"] = None, **kwargs) -> None: + async def post_optional_class_parameter( + self, body_parameter: Optional["_models.Product"] = None, **kwargs: Any + ) -> None: """Test explicitly optional complex object. Please put null. :param body_parameter: @@ -782,7 +784,7 @@ async def post_optional_class_parameter(self, body_parameter: Optional["_models. post_optional_class_parameter.metadata = {"url": "/reqopt/optional/class/parameter"} # type: ignore @distributed_trace_async - async def post_required_class_property(self, value: "_models.Product", **kwargs) -> None: + async def post_required_class_property(self, value: "_models.Product", **kwargs: Any) -> None: """Test explicitly required complex object. Please put a valid class-wrapper with 'value' = null and the client library should throw before the request is sent. @@ -830,7 +832,7 @@ async def post_required_class_property(self, value: "_models.Product", **kwargs) post_required_class_property.metadata = {"url": "/reqopt/requied/class/property"} # type: ignore @distributed_trace_async - async def post_optional_class_property(self, value: Optional["_models.Product"] = None, **kwargs) -> None: + async def post_optional_class_property(self, value: Optional["_models.Product"] = None, **kwargs: Any) -> None: """Test explicitly optional complex object. Please put a valid class-wrapper with 'value' = null. :param value: @@ -880,7 +882,7 @@ async def post_optional_class_property(self, value: Optional["_models.Product"] post_optional_class_property.metadata = {"url": "/reqopt/optional/class/property"} # type: ignore @distributed_trace_async - async def post_required_array_parameter(self, body_parameter: List[str], **kwargs) -> None: + async def post_required_array_parameter(self, body_parameter: List[str], **kwargs: Any) -> None: """Test explicitly required array. Please put null and the client library should throw before the request is sent. @@ -926,7 +928,7 @@ async def post_required_array_parameter(self, body_parameter: List[str], **kwarg post_required_array_parameter.metadata = {"url": "/reqopt/requied/array/parameter"} # type: ignore @distributed_trace_async - async def post_optional_array_parameter(self, body_parameter: Optional[List[str]] = None, **kwargs) -> None: + async def post_optional_array_parameter(self, body_parameter: Optional[List[str]] = None, **kwargs: Any) -> None: """Test explicitly optional array. Please put null. :param body_parameter: @@ -974,7 +976,7 @@ async def post_optional_array_parameter(self, body_parameter: Optional[List[str] post_optional_array_parameter.metadata = {"url": "/reqopt/optional/array/parameter"} # type: ignore @distributed_trace_async - async def post_required_array_property(self, value: List[str], **kwargs) -> None: + async def post_required_array_property(self, value: List[str], **kwargs: Any) -> None: """Test explicitly required array. Please put a valid array-wrapper with 'value' = null and the client library should throw before the request is sent. @@ -1022,7 +1024,7 @@ async def post_required_array_property(self, value: List[str], **kwargs) -> None post_required_array_property.metadata = {"url": "/reqopt/requied/array/property"} # type: ignore @distributed_trace_async - async def post_optional_array_property(self, value: Optional[List[str]] = None, **kwargs) -> None: + async def post_optional_array_property(self, value: Optional[List[str]] = None, **kwargs: Any) -> None: """Test explicitly optional array. Please put a valid array-wrapper with 'value' = null. :param value: @@ -1072,7 +1074,7 @@ async def post_optional_array_property(self, value: Optional[List[str]] = None, post_optional_array_property.metadata = {"url": "/reqopt/optional/array/property"} # type: ignore @distributed_trace_async - async def post_required_array_header(self, header_parameter: List[str], **kwargs) -> None: + async def post_required_array_header(self, header_parameter: List[str], **kwargs: Any) -> None: """Test explicitly required array. Please put a header 'headerParameter' => null and the client library should throw before the request is sent. @@ -1116,7 +1118,7 @@ async def post_required_array_header(self, header_parameter: List[str], **kwargs post_required_array_header.metadata = {"url": "/reqopt/requied/array/header"} # type: ignore @distributed_trace_async - async def post_optional_array_header(self, header_parameter: Optional[List[str]] = None, **kwargs) -> None: + async def post_optional_array_header(self, header_parameter: Optional[List[str]] = None, **kwargs: Any) -> None: """Test explicitly optional integer. Please put a header 'headerParameter' => null. :param header_parameter: diff --git a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py index 8b33740eae4..84f11510fa4 100644 --- a/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/RequiredOptional/requiredoptional/aio/operations/_implicit_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_required_path(self, path_parameter: str, **kwargs) -> None: + async def get_required_path(self, path_parameter: str, **kwargs: Any) -> None: """Test implicitly required path parameter. :param path_parameter: @@ -92,7 +92,7 @@ async def get_required_path(self, path_parameter: str, **kwargs) -> None: get_required_path.metadata = {"url": "/reqopt/implicit/required/path/{pathParameter}"} # type: ignore @distributed_trace_async - async def put_optional_query(self, query_parameter: Optional[str] = None, **kwargs) -> None: + async def put_optional_query(self, query_parameter: Optional[str] = None, **kwargs: Any) -> None: """Test implicitly optional query parameter. :param query_parameter: @@ -134,7 +134,7 @@ async def put_optional_query(self, query_parameter: Optional[str] = None, **kwar put_optional_query.metadata = {"url": "/reqopt/implicit/optional/query"} # type: ignore @distributed_trace_async - async def put_optional_header(self, query_parameter: Optional[str] = None, **kwargs) -> None: + async def put_optional_header(self, query_parameter: Optional[str] = None, **kwargs: Any) -> None: """Test implicitly optional header parameter. :param query_parameter: @@ -176,7 +176,7 @@ async def put_optional_header(self, query_parameter: Optional[str] = None, **kwa put_optional_header.metadata = {"url": "/reqopt/implicit/optional/header"} # type: ignore @distributed_trace_async - async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs) -> None: + async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs: Any) -> None: """Test implicitly optional body parameter. :param body_parameter: @@ -224,7 +224,7 @@ async def put_optional_body(self, body_parameter: Optional[str] = None, **kwargs put_optional_body.metadata = {"url": "/reqopt/implicit/optional/body"} # type: ignore @distributed_trace_async - async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, **kwargs) -> None: + async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, **kwargs: Any) -> None: """Test implicitly optional body parameter. :param body_parameter: @@ -268,7 +268,7 @@ async def put_optional_binary_body(self, body_parameter: Optional[IO] = None, ** put_optional_binary_body.metadata = {"url": "/reqopt/implicit/optional/binary-body"} # type: ignore @distributed_trace_async - async def get_required_global_path(self, **kwargs) -> None: + async def get_required_global_path(self, **kwargs: Any) -> None: """Test implicitly required path parameter. :keyword callable cls: A custom type or function that will be passed the direct response @@ -312,7 +312,7 @@ async def get_required_global_path(self, **kwargs) -> None: get_required_global_path.metadata = {"url": "/reqopt/global/required/path/{required-global-path}"} # type: ignore @distributed_trace_async - async def get_required_global_query(self, **kwargs) -> None: + async def get_required_global_query(self, **kwargs: Any) -> None: """Test implicitly required query parameter. :keyword callable cls: A custom type or function that will be passed the direct response @@ -353,7 +353,7 @@ async def get_required_global_query(self, **kwargs) -> None: get_required_global_query.metadata = {"url": "/reqopt/global/required/query"} # type: ignore @distributed_trace_async - async def get_optional_global_query(self, **kwargs) -> None: + async def get_optional_global_query(self, **kwargs: Any) -> None: """Test implicitly optional query parameter. :keyword callable cls: A custom type or function that will be passed the direct response diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py index b9a1e92f471..0f4eadf9fbf 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_path_items_operations.py @@ -54,7 +54,7 @@ async def get_all_with_values( local_string_path: str, path_item_string_query: Optional[str] = None, local_string_query: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', localStringPath='localStringPath', globalStringQuery='globalStringQuery', @@ -130,7 +130,7 @@ async def get_global_query_null( local_string_path: str, path_item_string_query: Optional[str] = None, local_string_query: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', localStringPath='localStringPath', globalStringQuery=null, @@ -206,7 +206,7 @@ async def get_global_and_local_query_null( local_string_path: str, path_item_string_query: Optional[str] = None, local_string_query: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """send globalStringPath=globalStringPath, pathItemStringPath='pathItemStringPath', localStringPath='localStringPath', globalStringQuery=null, @@ -282,7 +282,7 @@ async def get_local_path_item_query_null( local_string_path: str, path_item_string_query: Optional[str] = None, local_string_query: Optional[str] = None, - **kwargs + **kwargs: Any ) -> None: """send globalStringPath='globalStringPath', pathItemStringPath='pathItemStringPath', localStringPath='localStringPath', globalStringQuery='globalStringQuery', diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py index bfc446a1c50..55db702e39f 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_paths_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_boolean_true(self, **kwargs) -> None: + async def get_boolean_true(self, **kwargs: Any) -> None: """Get true Boolean value on path. :keyword callable cls: A custom type or function that will be passed the direct response @@ -92,7 +92,7 @@ async def get_boolean_true(self, **kwargs) -> None: get_boolean_true.metadata = {"url": "/paths/bool/true/{boolPath}"} # type: ignore @distributed_trace_async - async def get_boolean_false(self, **kwargs) -> None: + async def get_boolean_false(self, **kwargs: Any) -> None: """Get false Boolean value on path. :keyword callable cls: A custom type or function that will be passed the direct response @@ -135,7 +135,7 @@ async def get_boolean_false(self, **kwargs) -> None: get_boolean_false.metadata = {"url": "/paths/bool/false/{boolPath}"} # type: ignore @distributed_trace_async - async def get_int_one_million(self, **kwargs) -> None: + async def get_int_one_million(self, **kwargs: Any) -> None: """Get '1000000' integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -178,7 +178,7 @@ async def get_int_one_million(self, **kwargs) -> None: get_int_one_million.metadata = {"url": "/paths/int/1000000/{intPath}"} # type: ignore @distributed_trace_async - async def get_int_negative_one_million(self, **kwargs) -> None: + async def get_int_negative_one_million(self, **kwargs: Any) -> None: """Get '-1000000' integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -221,7 +221,7 @@ async def get_int_negative_one_million(self, **kwargs) -> None: get_int_negative_one_million.metadata = {"url": "/paths/int/-1000000/{intPath}"} # type: ignore @distributed_trace_async - async def get_ten_billion(self, **kwargs) -> None: + async def get_ten_billion(self, **kwargs: Any) -> None: """Get '10000000000' 64 bit integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -264,7 +264,7 @@ async def get_ten_billion(self, **kwargs) -> None: get_ten_billion.metadata = {"url": "/paths/long/10000000000/{longPath}"} # type: ignore @distributed_trace_async - async def get_negative_ten_billion(self, **kwargs) -> None: + async def get_negative_ten_billion(self, **kwargs: Any) -> None: """Get '-10000000000' 64 bit integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -307,7 +307,7 @@ async def get_negative_ten_billion(self, **kwargs) -> None: get_negative_ten_billion.metadata = {"url": "/paths/long/-10000000000/{longPath}"} # type: ignore @distributed_trace_async - async def float_scientific_positive(self, **kwargs) -> None: + async def float_scientific_positive(self, **kwargs: Any) -> None: """Get '1.034E+20' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -350,7 +350,7 @@ async def float_scientific_positive(self, **kwargs) -> None: float_scientific_positive.metadata = {"url": "/paths/float/1.034E+20/{floatPath}"} # type: ignore @distributed_trace_async - async def float_scientific_negative(self, **kwargs) -> None: + async def float_scientific_negative(self, **kwargs: Any) -> None: """Get '-1.034E-20' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -393,7 +393,7 @@ async def float_scientific_negative(self, **kwargs) -> None: float_scientific_negative.metadata = {"url": "/paths/float/-1.034E-20/{floatPath}"} # type: ignore @distributed_trace_async - async def double_decimal_positive(self, **kwargs) -> None: + async def double_decimal_positive(self, **kwargs: Any) -> None: """Get '9999999.999' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -436,7 +436,7 @@ async def double_decimal_positive(self, **kwargs) -> None: double_decimal_positive.metadata = {"url": "/paths/double/9999999.999/{doublePath}"} # type: ignore @distributed_trace_async - async def double_decimal_negative(self, **kwargs) -> None: + async def double_decimal_negative(self, **kwargs: Any) -> None: """Get '-9999999.999' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -479,7 +479,7 @@ async def double_decimal_negative(self, **kwargs) -> None: double_decimal_negative.metadata = {"url": "/paths/double/-9999999.999/{doublePath}"} # type: ignore @distributed_trace_async - async def string_unicode(self, **kwargs) -> None: + async def string_unicode(self, **kwargs: Any) -> None: """Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -522,7 +522,7 @@ async def string_unicode(self, **kwargs) -> None: string_unicode.metadata = {"url": "/paths/string/unicode/{stringPath}"} # type: ignore @distributed_trace_async - async def string_url_encoded(self, **kwargs) -> None: + async def string_url_encoded(self, **kwargs: Any) -> None: """Get 'begin!*'();:@ &=+$,/?#[]end. :keyword callable cls: A custom type or function that will be passed the direct response @@ -565,7 +565,7 @@ async def string_url_encoded(self, **kwargs) -> None: string_url_encoded.metadata = {"url": "/paths/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend/{stringPath}"} # type: ignore @distributed_trace_async - async def string_url_non_encoded(self, **kwargs) -> None: + async def string_url_non_encoded(self, **kwargs: Any) -> None: """Get 'begin!*'();:@&=+$,end. https://tools.ietf.org/html/rfc3986#appendix-A 'path' accept any 'pchar' not encoded. @@ -610,7 +610,7 @@ async def string_url_non_encoded(self, **kwargs) -> None: string_url_non_encoded.metadata = {"url": "/paths/string/begin!*'();:@&=+$,end/{stringPath}"} # type: ignore @distributed_trace_async - async def string_empty(self, **kwargs) -> None: + async def string_empty(self, **kwargs: Any) -> None: """Get ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -653,7 +653,7 @@ async def string_empty(self, **kwargs) -> None: string_empty.metadata = {"url": "/paths/string/empty/{stringPath}"} # type: ignore @distributed_trace_async - async def string_null(self, string_path: str, **kwargs) -> None: + async def string_null(self, string_path: str, **kwargs: Any) -> None: """Get null (should throw). :param string_path: null string value. @@ -697,7 +697,7 @@ async def string_null(self, string_path: str, **kwargs) -> None: string_null.metadata = {"url": "/paths/string/null/{stringPath}"} # type: ignore @distributed_trace_async - async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs) -> None: + async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs: Any) -> None: """Get using uri with 'green color' in path parameter. :param enum_path: send the value green. @@ -741,7 +741,7 @@ async def enum_valid(self, enum_path: Union[str, "_models.UriColor"], **kwargs) enum_valid.metadata = {"url": "/paths/enum/green%20color/{enumPath}"} # type: ignore @distributed_trace_async - async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs) -> None: + async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs: Any) -> None: """Get null (should throw on the client before the request is sent on wire). :param enum_path: send null should throw. @@ -785,7 +785,7 @@ async def enum_null(self, enum_path: Union[str, "_models.UriColor"], **kwargs) - enum_null.metadata = {"url": "/paths/string/null/{enumPath}"} # type: ignore @distributed_trace_async - async def byte_multi_byte(self, byte_path: bytearray, **kwargs) -> None: + async def byte_multi_byte(self, byte_path: bytearray, **kwargs: Any) -> None: """Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. :param byte_path: '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. @@ -829,7 +829,7 @@ async def byte_multi_byte(self, byte_path: bytearray, **kwargs) -> None: byte_multi_byte.metadata = {"url": "/paths/byte/multibyte/{bytePath}"} # type: ignore @distributed_trace_async - async def byte_empty(self, **kwargs) -> None: + async def byte_empty(self, **kwargs: Any) -> None: """Get '' as byte array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -872,7 +872,7 @@ async def byte_empty(self, **kwargs) -> None: byte_empty.metadata = {"url": "/paths/byte/empty/{bytePath}"} # type: ignore @distributed_trace_async - async def byte_null(self, byte_path: bytearray, **kwargs) -> None: + async def byte_null(self, byte_path: bytearray, **kwargs: Any) -> None: """Get null as byte array (should throw). :param byte_path: null as byte array (should throw). @@ -916,7 +916,7 @@ async def byte_null(self, byte_path: bytearray, **kwargs) -> None: byte_null.metadata = {"url": "/paths/byte/null/{bytePath}"} # type: ignore @distributed_trace_async - async def date_valid(self, **kwargs) -> None: + async def date_valid(self, **kwargs: Any) -> None: """Get '2012-01-01' as date. :keyword callable cls: A custom type or function that will be passed the direct response @@ -959,7 +959,7 @@ async def date_valid(self, **kwargs) -> None: date_valid.metadata = {"url": "/paths/date/2012-01-01/{datePath}"} # type: ignore @distributed_trace_async - async def date_null(self, date_path: datetime.date, **kwargs) -> None: + async def date_null(self, date_path: datetime.date, **kwargs: Any) -> None: """Get null as date - this should throw or be unusable on the client side, depending on date representation. @@ -1004,7 +1004,7 @@ async def date_null(self, date_path: datetime.date, **kwargs) -> None: date_null.metadata = {"url": "/paths/date/null/{datePath}"} # type: ignore @distributed_trace_async - async def date_time_valid(self, **kwargs) -> None: + async def date_time_valid(self, **kwargs: Any) -> None: """Get '2012-01-01T01:01:01Z' as date-time. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1047,7 +1047,7 @@ async def date_time_valid(self, **kwargs) -> None: date_time_valid.metadata = {"url": "/paths/datetime/2012-01-01T01%3A01%3A01Z/{dateTimePath}"} # type: ignore @distributed_trace_async - async def date_time_null(self, date_time_path: datetime.datetime, **kwargs) -> None: + async def date_time_null(self, date_time_path: datetime.datetime, **kwargs: Any) -> None: """Get null as date-time, should be disallowed or throw depending on representation of date-time. :param date_time_path: null as date-time. @@ -1091,7 +1091,7 @@ async def date_time_null(self, date_time_path: datetime.datetime, **kwargs) -> N date_time_null.metadata = {"url": "/paths/datetime/null/{dateTimePath}"} # type: ignore @distributed_trace_async - async def base64_url(self, base64_url_path: bytes, **kwargs) -> None: + async def base64_url(self, base64_url_path: bytes, **kwargs: Any) -> None: """Get 'lorem' encoded value as 'bG9yZW0' (base64url). :param base64_url_path: base64url encoded value. @@ -1135,7 +1135,7 @@ async def base64_url(self, base64_url_path: bytes, **kwargs) -> None: base64_url.metadata = {"url": "/paths/string/bG9yZW0/{base64UrlPath}"} # type: ignore @distributed_trace_async - async def array_csv_in_path(self, array_path: List[str], **kwargs) -> None: + async def array_csv_in_path(self, array_path: List[str], **kwargs: Any) -> None: """Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. @@ -1181,7 +1181,7 @@ async def array_csv_in_path(self, array_path: List[str], **kwargs) -> None: array_csv_in_path.metadata = {"url": "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}"} # type: ignore @distributed_trace_async - async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs) -> None: + async def unix_time_url(self, unix_time_url_path: datetime.datetime, **kwargs: Any) -> None: """Get the date 2016-04-13 encoded value as '1460505600' (Unix time). :param unix_time_url_path: Unix time encoded value. diff --git a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py index 2909aa2d543..a702064bbf7 100644 --- a/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Url/url/aio/operations/_queries_operations.py @@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_boolean_true(self, **kwargs) -> None: + async def get_boolean_true(self, **kwargs: Any) -> None: """Get true Boolean value on path. :keyword callable cls: A custom type or function that will be passed the direct response @@ -89,7 +89,7 @@ async def get_boolean_true(self, **kwargs) -> None: get_boolean_true.metadata = {"url": "/queries/bool/true"} # type: ignore @distributed_trace_async - async def get_boolean_false(self, **kwargs) -> None: + async def get_boolean_false(self, **kwargs: Any) -> None: """Get false Boolean value on path. :keyword callable cls: A custom type or function that will be passed the direct response @@ -129,7 +129,7 @@ async def get_boolean_false(self, **kwargs) -> None: get_boolean_false.metadata = {"url": "/queries/bool/false"} # type: ignore @distributed_trace_async - async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs) -> None: + async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs: Any) -> None: """Get null Boolean value on query (query string should be absent). :param bool_query: null boolean value. @@ -171,7 +171,7 @@ async def get_boolean_null(self, bool_query: Optional[bool] = None, **kwargs) -> get_boolean_null.metadata = {"url": "/queries/bool/null"} # type: ignore @distributed_trace_async - async def get_int_one_million(self, **kwargs) -> None: + async def get_int_one_million(self, **kwargs: Any) -> None: """Get '1000000' integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -211,7 +211,7 @@ async def get_int_one_million(self, **kwargs) -> None: get_int_one_million.metadata = {"url": "/queries/int/1000000"} # type: ignore @distributed_trace_async - async def get_int_negative_one_million(self, **kwargs) -> None: + async def get_int_negative_one_million(self, **kwargs: Any) -> None: """Get '-1000000' integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -251,7 +251,7 @@ async def get_int_negative_one_million(self, **kwargs) -> None: get_int_negative_one_million.metadata = {"url": "/queries/int/-1000000"} # type: ignore @distributed_trace_async - async def get_int_null(self, int_query: Optional[int] = None, **kwargs) -> None: + async def get_int_null(self, int_query: Optional[int] = None, **kwargs: Any) -> None: """Get null integer value (no query parameter). :param int_query: null integer value. @@ -293,7 +293,7 @@ async def get_int_null(self, int_query: Optional[int] = None, **kwargs) -> None: get_int_null.metadata = {"url": "/queries/int/null"} # type: ignore @distributed_trace_async - async def get_ten_billion(self, **kwargs) -> None: + async def get_ten_billion(self, **kwargs: Any) -> None: """Get '10000000000' 64 bit integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -333,7 +333,7 @@ async def get_ten_billion(self, **kwargs) -> None: get_ten_billion.metadata = {"url": "/queries/long/10000000000"} # type: ignore @distributed_trace_async - async def get_negative_ten_billion(self, **kwargs) -> None: + async def get_negative_ten_billion(self, **kwargs: Any) -> None: """Get '-10000000000' 64 bit integer value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -373,7 +373,7 @@ async def get_negative_ten_billion(self, **kwargs) -> None: get_negative_ten_billion.metadata = {"url": "/queries/long/-10000000000"} # type: ignore @distributed_trace_async - async def get_long_null(self, long_query: Optional[int] = None, **kwargs) -> None: + async def get_long_null(self, long_query: Optional[int] = None, **kwargs: Any) -> None: """Get 'null 64 bit integer value (no query param in uri). :param long_query: null 64 bit integer value. @@ -415,7 +415,7 @@ async def get_long_null(self, long_query: Optional[int] = None, **kwargs) -> Non get_long_null.metadata = {"url": "/queries/long/null"} # type: ignore @distributed_trace_async - async def float_scientific_positive(self, **kwargs) -> None: + async def float_scientific_positive(self, **kwargs: Any) -> None: """Get '1.034E+20' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -455,7 +455,7 @@ async def float_scientific_positive(self, **kwargs) -> None: float_scientific_positive.metadata = {"url": "/queries/float/1.034E+20"} # type: ignore @distributed_trace_async - async def float_scientific_negative(self, **kwargs) -> None: + async def float_scientific_negative(self, **kwargs: Any) -> None: """Get '-1.034E-20' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -495,7 +495,7 @@ async def float_scientific_negative(self, **kwargs) -> None: float_scientific_negative.metadata = {"url": "/queries/float/-1.034E-20"} # type: ignore @distributed_trace_async - async def float_null(self, float_query: Optional[float] = None, **kwargs) -> None: + async def float_null(self, float_query: Optional[float] = None, **kwargs: Any) -> None: """Get null numeric value (no query parameter). :param float_query: null numeric value. @@ -537,7 +537,7 @@ async def float_null(self, float_query: Optional[float] = None, **kwargs) -> Non float_null.metadata = {"url": "/queries/float/null"} # type: ignore @distributed_trace_async - async def double_decimal_positive(self, **kwargs) -> None: + async def double_decimal_positive(self, **kwargs: Any) -> None: """Get '9999999.999' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -577,7 +577,7 @@ async def double_decimal_positive(self, **kwargs) -> None: double_decimal_positive.metadata = {"url": "/queries/double/9999999.999"} # type: ignore @distributed_trace_async - async def double_decimal_negative(self, **kwargs) -> None: + async def double_decimal_negative(self, **kwargs: Any) -> None: """Get '-9999999.999' numeric value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -617,7 +617,7 @@ async def double_decimal_negative(self, **kwargs) -> None: double_decimal_negative.metadata = {"url": "/queries/double/-9999999.999"} # type: ignore @distributed_trace_async - async def double_null(self, double_query: Optional[float] = None, **kwargs) -> None: + async def double_null(self, double_query: Optional[float] = None, **kwargs: Any) -> None: """Get null numeric value (no query parameter). :param double_query: null numeric value. @@ -659,7 +659,7 @@ async def double_null(self, double_query: Optional[float] = None, **kwargs) -> N double_null.metadata = {"url": "/queries/double/null"} # type: ignore @distributed_trace_async - async def string_unicode(self, **kwargs) -> None: + async def string_unicode(self, **kwargs: Any) -> None: """Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value. :keyword callable cls: A custom type or function that will be passed the direct response @@ -699,7 +699,7 @@ async def string_unicode(self, **kwargs) -> None: string_unicode.metadata = {"url": "/queries/string/unicode/"} # type: ignore @distributed_trace_async - async def string_url_encoded(self, **kwargs) -> None: + async def string_url_encoded(self, **kwargs: Any) -> None: """Get 'begin!*'();:@ &=+$,/?#[]end. :keyword callable cls: A custom type or function that will be passed the direct response @@ -739,7 +739,7 @@ async def string_url_encoded(self, **kwargs) -> None: string_url_encoded.metadata = {"url": "/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend"} # type: ignore @distributed_trace_async - async def string_empty(self, **kwargs) -> None: + async def string_empty(self, **kwargs: Any) -> None: """Get ''. :keyword callable cls: A custom type or function that will be passed the direct response @@ -779,7 +779,7 @@ async def string_empty(self, **kwargs) -> None: string_empty.metadata = {"url": "/queries/string/empty"} # type: ignore @distributed_trace_async - async def string_null(self, string_query: Optional[str] = None, **kwargs) -> None: + async def string_null(self, string_query: Optional[str] = None, **kwargs: Any) -> None: """Get null (no query parameter in url). :param string_query: null string value. @@ -821,7 +821,7 @@ async def string_null(self, string_query: Optional[str] = None, **kwargs) -> Non string_null.metadata = {"url": "/queries/string/null"} # type: ignore @distributed_trace_async - async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] = None, **kwargs) -> None: + async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] = None, **kwargs: Any) -> None: """Get using uri with query parameter 'green color'. :param enum_query: 'green color' enum value. @@ -863,7 +863,7 @@ async def enum_valid(self, enum_query: Optional[Union[str, "_models.UriColor"]] enum_valid.metadata = {"url": "/queries/enum/green%20color"} # type: ignore @distributed_trace_async - async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = None, **kwargs) -> None: + async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = None, **kwargs: Any) -> None: """Get null (no query parameter in url). :param enum_query: null string value. @@ -905,7 +905,7 @@ async def enum_null(self, enum_query: Optional[Union[str, "_models.UriColor"]] = enum_null.metadata = {"url": "/queries/enum/null"} # type: ignore @distributed_trace_async - async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs) -> None: + async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs: Any) -> None: """Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. :param byte_query: '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. @@ -947,7 +947,7 @@ async def byte_multi_byte(self, byte_query: Optional[bytearray] = None, **kwargs byte_multi_byte.metadata = {"url": "/queries/byte/multibyte"} # type: ignore @distributed_trace_async - async def byte_empty(self, **kwargs) -> None: + async def byte_empty(self, **kwargs: Any) -> None: """Get '' as byte array. :keyword callable cls: A custom type or function that will be passed the direct response @@ -987,7 +987,7 @@ async def byte_empty(self, **kwargs) -> None: byte_empty.metadata = {"url": "/queries/byte/empty"} # type: ignore @distributed_trace_async - async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs) -> None: + async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs: Any) -> None: """Get null as byte array (no query parameters in uri). :param byte_query: null as byte array (no query parameters in uri). @@ -1029,7 +1029,7 @@ async def byte_null(self, byte_query: Optional[bytearray] = None, **kwargs) -> N byte_null.metadata = {"url": "/queries/byte/null"} # type: ignore @distributed_trace_async - async def date_valid(self, **kwargs) -> None: + async def date_valid(self, **kwargs: Any) -> None: """Get '2012-01-01' as date. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1069,7 +1069,7 @@ async def date_valid(self, **kwargs) -> None: date_valid.metadata = {"url": "/queries/date/2012-01-01"} # type: ignore @distributed_trace_async - async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs) -> None: + async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs: Any) -> None: """Get null as date - this should result in no query parameters in uri. :param date_query: null as date (no query parameters in uri). @@ -1111,7 +1111,7 @@ async def date_null(self, date_query: Optional[datetime.date] = None, **kwargs) date_null.metadata = {"url": "/queries/date/null"} # type: ignore @distributed_trace_async - async def date_time_valid(self, **kwargs) -> None: + async def date_time_valid(self, **kwargs: Any) -> None: """Get '2012-01-01T01:01:01Z' as date-time. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1151,7 +1151,7 @@ async def date_time_valid(self, **kwargs) -> None: date_time_valid.metadata = {"url": "/queries/datetime/2012-01-01T01%3A01%3A01Z"} # type: ignore @distributed_trace_async - async def date_time_null(self, date_time_query: Optional[datetime.datetime] = None, **kwargs) -> None: + async def date_time_null(self, date_time_query: Optional[datetime.datetime] = None, **kwargs: Any) -> None: """Get null as date-time, should result in no query parameters in uri. :param date_time_query: null as date-time (no query parameters). @@ -1193,7 +1193,7 @@ async def date_time_null(self, date_time_query: Optional[datetime.datetime] = No date_time_null.metadata = {"url": "/queries/datetime/null"} # type: ignore @distributed_trace_async - async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format. @@ -1237,7 +1237,7 @@ async def array_string_csv_valid(self, array_query: Optional[List[str]] = None, array_string_csv_valid.metadata = {"url": "/queries/array/csv/string/valid"} # type: ignore @distributed_trace_async - async def array_string_csv_null(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_csv_null(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get a null array of string using the csv-array format. :param array_query: a null array of string using the csv-array format. @@ -1279,7 +1279,7 @@ async def array_string_csv_null(self, array_query: Optional[List[str]] = None, * array_string_csv_null.metadata = {"url": "/queries/array/csv/string/null"} # type: ignore @distributed_trace_async - async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an empty array [] of string using the csv-array format. :param array_query: an empty array [] of string using the csv-array format. @@ -1321,7 +1321,9 @@ async def array_string_csv_empty(self, array_query: Optional[List[str]] = None, array_string_csv_empty.metadata = {"url": "/queries/array/csv/string/empty"} # type: ignore @distributed_trace_async - async def array_string_no_collection_format_empty(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_no_collection_format_empty( + self, array_query: Optional[List[str]] = None, **kwargs: Any + ) -> None: """Array query has no defined collection format, should default to csv. Pass in ['hello', 'nihao', 'bonjour'] for the 'arrayQuery' parameter to the service. @@ -1364,7 +1366,7 @@ async def array_string_no_collection_format_empty(self, array_query: Optional[Li array_string_no_collection_format_empty.metadata = {"url": "/queries/array/none/string/empty"} # type: ignore @distributed_trace_async - async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format. @@ -1408,7 +1410,7 @@ async def array_string_ssv_valid(self, array_query: Optional[List[str]] = None, array_string_ssv_valid.metadata = {"url": "/queries/array/ssv/string/valid"} # type: ignore @distributed_trace_async - async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format. @@ -1452,7 +1454,7 @@ async def array_string_tsv_valid(self, array_query: Optional[List[str]] = None, array_string_tsv_valid.metadata = {"url": "/queries/array/tsv/string/valid"} # type: ignore @distributed_trace_async - async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_pipes_valid(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format. diff --git a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py index ce209a13f2e..a7875d71992 100644 --- a/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/UrlMultiCollectionFormat/urlmulticollectionformat/aio/operations/_queries_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def array_string_multi_null(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_multi_null(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get a null array of string using the multi-array format. :param array_query: a null array of string using the multi-array format. @@ -92,7 +92,7 @@ async def array_string_multi_null(self, array_query: Optional[List[str]] = None, array_string_multi_null.metadata = {"url": "/queries/array/multi/string/null"} # type: ignore @distributed_trace_async - async def array_string_multi_empty(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_multi_empty(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an empty array [] of string using the multi-array format. :param array_query: an empty array [] of string using the multi-array format. @@ -136,7 +136,7 @@ async def array_string_multi_empty(self, array_query: Optional[List[str]] = None array_string_multi_empty.metadata = {"url": "/queries/array/multi/string/empty"} # type: ignore @distributed_trace_async - async def array_string_multi_valid(self, array_query: Optional[List[str]] = None, **kwargs) -> None: + async def array_string_multi_valid(self, array_query: Optional[List[str]] = None, **kwargs: Any) -> None: """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format. diff --git a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py index 701918c652c..02b3c5b86f8 100644 --- a/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Validation/validation/aio/operations/_auto_rest_validation_test_operations.py @@ -27,7 +27,9 @@ class AutoRestValidationTestOperationsMixin: @distributed_trace_async - async def validation_of_method_parameters(self, resource_group_name: str, id: int, **kwargs) -> "_models.Product": + async def validation_of_method_parameters( + self, resource_group_name: str, id: int, **kwargs: Any + ) -> "_models.Product": """Validates input parameters on the method. See swagger for details. :param resource_group_name: Required string between 3 and 10 chars with pattern [a-zA-Z0-9]+. @@ -89,7 +91,7 @@ async def validation_of_method_parameters(self, resource_group_name: str, id: in @distributed_trace_async async def validation_of_body( - self, resource_group_name: str, id: int, body: Optional["_models.Product"] = None, **kwargs + self, resource_group_name: str, id: int, body: Optional["_models.Product"] = None, **kwargs: Any ) -> "_models.Product": """Validates body parameters on the method. See swagger for details. @@ -156,7 +158,7 @@ async def validation_of_body( validation_of_body.metadata = {"url": "/fakepath/{subscriptionId}/{resourceGroupName}/{id}"} # type: ignore @distributed_trace_async - async def get_with_constant_in_path(self, **kwargs) -> None: + async def get_with_constant_in_path(self, **kwargs: Any) -> None: """get_with_constant_in_path. :keyword callable cls: A custom type or function that will be passed the direct response @@ -196,7 +198,9 @@ async def get_with_constant_in_path(self, **kwargs) -> None: get_with_constant_in_path.metadata = {"url": "/validation/constantsInPath/{constantParam}/value"} # type: ignore @distributed_trace_async - async def post_with_constant_in_body(self, body: Optional["_models.Product"] = None, **kwargs) -> "_models.Product": + async def post_with_constant_in_body( + self, body: Optional["_models.Product"] = None, **kwargs: Any + ) -> "_models.Product": """post_with_constant_in_body. :param body: diff --git a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py index 7855f61fe19..6c593a1eff6 100644 --- a/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/aio/operations/_xml_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_complex_type_ref_no_meta(self, **kwargs) -> "_models.RootWithRefAndNoMeta": + async def get_complex_type_ref_no_meta(self, **kwargs: Any) -> "_models.RootWithRefAndNoMeta": """Get a complex type that has a ref to a complex type with no XML node. :keyword callable cls: A custom type or function that will be passed the direct response @@ -89,7 +89,7 @@ async def get_complex_type_ref_no_meta(self, **kwargs) -> "_models.RootWithRefAn get_complex_type_ref_no_meta.metadata = {"url": "/xml/complex-type-ref-no-meta"} # type: ignore @distributed_trace_async - async def put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMeta", **kwargs) -> None: + async def put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMeta", **kwargs: Any) -> None: """Puts a complex type that has a ref to a complex type with no XML node. :param model: @@ -131,7 +131,7 @@ async def put_complex_type_ref_no_meta(self, model: "_models.RootWithRefAndNoMet put_complex_type_ref_no_meta.metadata = {"url": "/xml/complex-type-ref-no-meta"} # type: ignore @distributed_trace_async - async def get_complex_type_ref_with_meta(self, **kwargs) -> "_models.RootWithRefAndMeta": + async def get_complex_type_ref_with_meta(self, **kwargs: Any) -> "_models.RootWithRefAndMeta": """Get a complex type that has a ref to a complex type with XML node. :keyword callable cls: A custom type or function that will be passed the direct response @@ -172,7 +172,7 @@ async def get_complex_type_ref_with_meta(self, **kwargs) -> "_models.RootWithRef get_complex_type_ref_with_meta.metadata = {"url": "/xml/complex-type-ref-with-meta"} # type: ignore @distributed_trace_async - async def put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMeta", **kwargs) -> None: + async def put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMeta", **kwargs: Any) -> None: """Puts a complex type that has a ref to a complex type with XML node. :param model: @@ -214,7 +214,7 @@ async def put_complex_type_ref_with_meta(self, model: "_models.RootWithRefAndMet put_complex_type_ref_with_meta.metadata = {"url": "/xml/complex-type-ref-with-meta"} # type: ignore @distributed_trace_async - async def get_simple(self, **kwargs) -> "_models.Slideshow": + async def get_simple(self, **kwargs: Any) -> "_models.Slideshow": """Get a simple XML document. :keyword callable cls: A custom type or function that will be passed the direct response @@ -256,7 +256,7 @@ async def get_simple(self, **kwargs) -> "_models.Slideshow": get_simple.metadata = {"url": "/xml/simple"} # type: ignore @distributed_trace_async - async def put_simple(self, slideshow: "_models.Slideshow", **kwargs) -> None: + async def put_simple(self, slideshow: "_models.Slideshow", **kwargs: Any) -> None: """Put a simple XML document. :param slideshow: @@ -301,7 +301,7 @@ async def put_simple(self, slideshow: "_models.Slideshow", **kwargs) -> None: put_simple.metadata = {"url": "/xml/simple"} # type: ignore @distributed_trace_async - async def get_wrapped_lists(self, **kwargs) -> "_models.AppleBarrel": + async def get_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": """Get an XML document with multiple wrapped lists. :keyword callable cls: A custom type or function that will be passed the direct response @@ -342,7 +342,7 @@ async def get_wrapped_lists(self, **kwargs) -> "_models.AppleBarrel": get_wrapped_lists.metadata = {"url": "/xml/wrapped-lists"} # type: ignore @distributed_trace_async - async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs) -> None: + async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs: Any) -> None: """Put an XML document with multiple wrapped lists. :param wrapped_lists: @@ -387,7 +387,7 @@ async def put_wrapped_lists(self, wrapped_lists: "_models.AppleBarrel", **kwargs put_wrapped_lists.metadata = {"url": "/xml/wrapped-lists"} # type: ignore @distributed_trace_async - async def get_headers(self, **kwargs) -> None: + async def get_headers(self, **kwargs: Any) -> None: """Get strongly-typed response headers. :keyword callable cls: A custom type or function that will be passed the direct response @@ -425,7 +425,7 @@ async def get_headers(self, **kwargs) -> None: get_headers.metadata = {"url": "/xml/headers"} # type: ignore @distributed_trace_async - async def get_empty_list(self, **kwargs) -> "_models.Slideshow": + async def get_empty_list(self, **kwargs: Any) -> "_models.Slideshow": """Get an empty list. :keyword callable cls: A custom type or function that will be passed the direct response @@ -466,7 +466,7 @@ async def get_empty_list(self, **kwargs) -> "_models.Slideshow": get_empty_list.metadata = {"url": "/xml/empty-list"} # type: ignore @distributed_trace_async - async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs) -> None: + async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs: Any) -> None: """Puts an empty list. :param slideshow: @@ -508,7 +508,7 @@ async def put_empty_list(self, slideshow: "_models.Slideshow", **kwargs) -> None put_empty_list.metadata = {"url": "/xml/empty-list"} # type: ignore @distributed_trace_async - async def get_empty_wrapped_lists(self, **kwargs) -> "_models.AppleBarrel": + async def get_empty_wrapped_lists(self, **kwargs: Any) -> "_models.AppleBarrel": """Gets some empty wrapped lists. :keyword callable cls: A custom type or function that will be passed the direct response @@ -549,7 +549,7 @@ async def get_empty_wrapped_lists(self, **kwargs) -> "_models.AppleBarrel": get_empty_wrapped_lists.metadata = {"url": "/xml/empty-wrapped-lists"} # type: ignore @distributed_trace_async - async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **kwargs) -> None: + async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **kwargs: Any) -> None: """Puts some empty wrapped lists. :param apple_barrel: @@ -591,7 +591,7 @@ async def put_empty_wrapped_lists(self, apple_barrel: "_models.AppleBarrel", **k put_empty_wrapped_lists.metadata = {"url": "/xml/empty-wrapped-lists"} # type: ignore @distributed_trace_async - async def get_root_list(self, **kwargs) -> List["_models.Banana"]: + async def get_root_list(self, **kwargs: Any) -> List["_models.Banana"]: """Gets a list as the root element. :keyword callable cls: A custom type or function that will be passed the direct response @@ -632,7 +632,7 @@ async def get_root_list(self, **kwargs) -> List["_models.Banana"]: get_root_list.metadata = {"url": "/xml/root-list"} # type: ignore @distributed_trace_async - async def put_root_list(self, bananas: List["_models.Banana"], **kwargs) -> None: + async def put_root_list(self, bananas: List["_models.Banana"], **kwargs: Any) -> None: """Puts a list as the root element. :param bananas: @@ -675,7 +675,7 @@ async def put_root_list(self, bananas: List["_models.Banana"], **kwargs) -> None put_root_list.metadata = {"url": "/xml/root-list"} # type: ignore @distributed_trace_async - async def get_root_list_single_item(self, **kwargs) -> List["_models.Banana"]: + async def get_root_list_single_item(self, **kwargs: Any) -> List["_models.Banana"]: """Gets a list with a single item. :keyword callable cls: A custom type or function that will be passed the direct response @@ -716,7 +716,7 @@ async def get_root_list_single_item(self, **kwargs) -> List["_models.Banana"]: get_root_list_single_item.metadata = {"url": "/xml/root-list-single-item"} # type: ignore @distributed_trace_async - async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwargs) -> None: + async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwargs: Any) -> None: """Puts a list with a single item. :param bananas: @@ -759,7 +759,7 @@ async def put_root_list_single_item(self, bananas: List["_models.Banana"], **kwa put_root_list_single_item.metadata = {"url": "/xml/root-list-single-item"} # type: ignore @distributed_trace_async - async def get_empty_root_list(self, **kwargs) -> List["_models.Banana"]: + async def get_empty_root_list(self, **kwargs: Any) -> List["_models.Banana"]: """Gets an empty list as the root element. :keyword callable cls: A custom type or function that will be passed the direct response @@ -800,7 +800,7 @@ async def get_empty_root_list(self, **kwargs) -> List["_models.Banana"]: get_empty_root_list.metadata = {"url": "/xml/empty-root-list"} # type: ignore @distributed_trace_async - async def put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs) -> None: + async def put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs: Any) -> None: """Puts an empty list as the root element. :param bananas: @@ -843,7 +843,7 @@ async def put_empty_root_list(self, bananas: List["_models.Banana"], **kwargs) - put_empty_root_list.metadata = {"url": "/xml/empty-root-list"} # type: ignore @distributed_trace_async - async def get_empty_child_element(self, **kwargs) -> "_models.Banana": + async def get_empty_child_element(self, **kwargs: Any) -> "_models.Banana": """Gets an XML document with an empty child element. :keyword callable cls: A custom type or function that will be passed the direct response @@ -884,7 +884,7 @@ async def get_empty_child_element(self, **kwargs) -> "_models.Banana": get_empty_child_element.metadata = {"url": "/xml/empty-child-element"} # type: ignore @distributed_trace_async - async def put_empty_child_element(self, banana: "_models.Banana", **kwargs) -> None: + async def put_empty_child_element(self, banana: "_models.Banana", **kwargs: Any) -> None: """Puts a value with an empty child element. :param banana: @@ -926,7 +926,7 @@ async def put_empty_child_element(self, banana: "_models.Banana", **kwargs) -> N put_empty_child_element.metadata = {"url": "/xml/empty-child-element"} # type: ignore @distributed_trace_async - async def list_containers(self, **kwargs) -> "_models.ListContainersResponse": + async def list_containers(self, **kwargs: Any) -> "_models.ListContainersResponse": """Lists containers in a storage account. :keyword callable cls: A custom type or function that will be passed the direct response @@ -969,7 +969,7 @@ async def list_containers(self, **kwargs) -> "_models.ListContainersResponse": list_containers.metadata = {"url": "/xml/"} # type: ignore @distributed_trace_async - async def get_service_properties(self, **kwargs) -> "_models.StorageServiceProperties": + async def get_service_properties(self, **kwargs: Any) -> "_models.StorageServiceProperties": """Gets storage service properties. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1014,7 +1014,7 @@ async def get_service_properties(self, **kwargs) -> "_models.StorageServicePrope get_service_properties.metadata = {"url": "/xml/"} # type: ignore @distributed_trace_async - async def put_service_properties(self, properties: "_models.StorageServiceProperties", **kwargs) -> None: + async def put_service_properties(self, properties: "_models.StorageServiceProperties", **kwargs: Any) -> None: """Puts storage service properties. :param properties: @@ -1060,7 +1060,7 @@ async def put_service_properties(self, properties: "_models.StorageServiceProper put_service_properties.metadata = {"url": "/xml/"} # type: ignore @distributed_trace_async - async def get_acls(self, **kwargs) -> List["_models.SignedIdentifier"]: + async def get_acls(self, **kwargs: Any) -> List["_models.SignedIdentifier"]: """Gets storage ACLs for a container. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1105,7 +1105,7 @@ async def get_acls(self, **kwargs) -> List["_models.SignedIdentifier"]: get_acls.metadata = {"url": "/xml/mycontainer"} # type: ignore @distributed_trace_async - async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs) -> None: + async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs: Any) -> None: """Puts storage ACLs for a container. :param properties: @@ -1154,7 +1154,7 @@ async def put_acls(self, properties: List["_models.SignedIdentifier"], **kwargs) put_acls.metadata = {"url": "/xml/mycontainer"} # type: ignore @distributed_trace_async - async def list_blobs(self, **kwargs) -> "_models.ListBlobsResponse": + async def list_blobs(self, **kwargs: Any) -> "_models.ListBlobsResponse": """Lists blobs in a storage container. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1199,7 +1199,7 @@ async def list_blobs(self, **kwargs) -> "_models.ListBlobsResponse": list_blobs.metadata = {"url": "/xml/mycontainer"} # type: ignore @distributed_trace_async - async def json_input(self, id: Optional[int] = None, **kwargs) -> None: + async def json_input(self, id: Optional[int] = None, **kwargs: Any) -> None: """A Swagger with XML that has one operation that takes JSON as input. You need to send the ID number 42. @@ -1244,7 +1244,7 @@ async def json_input(self, id: Optional[int] = None, **kwargs) -> None: json_input.metadata = {"url": "/xml/jsoninput"} # type: ignore @distributed_trace_async - async def json_output(self, **kwargs) -> "_models.JSONOutput": + async def json_output(self, **kwargs: Any) -> "_models.JSONOutput": """A Swagger with XML that has one operation that returns JSON. ID number 42. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1285,7 +1285,7 @@ async def json_output(self, **kwargs) -> "_models.JSONOutput": json_output.metadata = {"url": "/xml/jsonoutput"} # type: ignore @distributed_trace_async - async def get_xms_text(self, **kwargs) -> "_models.ObjectWithXMsTextProperty": + async def get_xms_text(self, **kwargs: Any) -> "_models.ObjectWithXMsTextProperty": """Get back an XML object with an x-ms-text property, which should translate to the returned object's 'language' property being 'english' and its 'content' property being 'I am text'. @@ -1327,7 +1327,7 @@ async def get_xms_text(self, **kwargs) -> "_models.ObjectWithXMsTextProperty": get_xms_text.metadata = {"url": "/xml/x-ms-text"} # type: ignore @distributed_trace_async - async def get_bytes(self, **kwargs) -> "_models.ModelWithByteProperty": + async def get_bytes(self, **kwargs: Any) -> "_models.ModelWithByteProperty": """Get an XML document with binary property. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1369,7 +1369,7 @@ async def get_bytes(self, **kwargs) -> "_models.ModelWithByteProperty": get_bytes.metadata = {"url": "/xml/bytes"} # type: ignore @distributed_trace_async - async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs) -> None: + async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs: Any) -> None: """Put an XML document with binary property. :param bytes: @@ -1416,7 +1416,7 @@ async def put_binary(self, bytes: Optional[bytearray] = None, **kwargs) -> None: put_binary.metadata = {"url": "/xml/bytes"} # type: ignore @distributed_trace_async - async def get_uri(self, **kwargs) -> "_models.ModelWithUrlProperty": + async def get_uri(self, **kwargs: Any) -> "_models.ModelWithUrlProperty": """Get an XML document with uri property. :keyword callable cls: A custom type or function that will be passed the direct response @@ -1458,7 +1458,7 @@ async def get_uri(self, **kwargs) -> "_models.ModelWithUrlProperty": get_uri.metadata = {"url": "/xml/url"} # type: ignore @distributed_trace_async - async def put_uri(self, url: Optional[str] = None, **kwargs) -> None: + async def put_uri(self, url: Optional[str] = None, **kwargs: Any) -> None: """Put an XML document with uri property. :param url: diff --git a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py index 0a51125489f..9fb98eee475 100644 --- a/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/XmsErrorResponse/xmserrorresponse/aio/operations/_pet_operations.py @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._config = config @distributed_trace_async - async def get_pet_by_id(self, pet_id: str, **kwargs) -> Optional["_models.Pet"]: + async def get_pet_by_id(self, pet_id: str, **kwargs: Any) -> Optional["_models.Pet"]: """Gets pets by id. :param pet_id: pet id. @@ -105,7 +105,7 @@ async def get_pet_by_id(self, pet_id: str, **kwargs) -> Optional["_models.Pet"]: get_pet_by_id.metadata = {"url": "/errorStatusCodes/Pets/{petId}/GetPet"} # type: ignore @distributed_trace_async - async def do_something(self, what_action: str, **kwargs) -> "_models.PetAction": + async def do_something(self, what_action: str, **kwargs: Any) -> "_models.PetAction": """Asks pet to do something. :param what_action: what action the pet should do. @@ -160,7 +160,7 @@ async def do_something(self, what_action: str, **kwargs) -> "_models.PetAction": do_something.metadata = {"url": "/errorStatusCodes/Pets/doSomething/{whatAction}"} # type: ignore @distributed_trace_async - async def has_models_param(self, models: Optional[str] = "value1", **kwargs) -> None: + async def has_models_param(self, models: Optional[str] = "value1", **kwargs: Any) -> None: """Ensure you can correctly deserialize the returned PetActionError and deserialization doesn't conflict with the input param name 'models'.