From 04759ad6a2aca8bf32ec1a59b8fd837dd0e150b1 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Mon, 9 Nov 2020 11:00:54 -0500 Subject: [PATCH] regen to get testserver updates --- .../aio/operations/_dictionary_operations.py | 16 ++++++++-------- .../operations/_dictionary_operations.py | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) 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 28be8e57eaa..0bc5fd2fe92 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 @@ -2275,15 +2275,15 @@ async def get_base64_url( async def get_complex_null( self, **kwargs - ) -> Dict[str, "models.Widget"]: + ) -> 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 - :return: dict mapping str to Widget, or the result of cls(response) - :rtype: dict[str, ~bodydictionary.models.Widget] + :return: dict mapping str to Widget or None, or the result of cls(response) + :rtype: dict[str, ~bodydictionary.models.Widget] or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, "models.Widget"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, "models.Widget"]]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -2560,15 +2560,15 @@ async def put_complex_valid( async def get_array_null( self, **kwargs - ) -> Dict[str, List[str]]: + ) -> Optional[Dict[str, List[str]]]: """Get a null array. :keyword callable cls: A custom type or function that will be passed the direct response - :return: dict mapping str to list of str, or the result of cls(response) - :rtype: dict[str, list[str]] + :return: dict mapping str to list of str or None, or the result of cls(response) + :rtype: dict[str, list[str]] or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, List[str]]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, List[str]]]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py index e4766d2664b..e49a130c7a1 100644 --- a/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py +++ b/test/vanilla/Expected/AcceptanceTests/BodyDictionary/bodydictionary/operations/_dictionary_operations.py @@ -2327,15 +2327,15 @@ def get_complex_null( self, **kwargs # type: Any ): - # type: (...) -> Dict[str, "models.Widget"] + # type: (...) -> 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 - :return: dict mapping str to Widget, or the result of cls(response) - :rtype: dict[str, ~bodydictionary.models.Widget] + :return: dict mapping str to Widget or None, or the result of cls(response) + :rtype: dict[str, ~bodydictionary.models.Widget] or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, "models.Widget"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, "models.Widget"]]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -2618,15 +2618,15 @@ def get_array_null( self, **kwargs # type: Any ): - # type: (...) -> Dict[str, List[str]] + # type: (...) -> Optional[Dict[str, List[str]]] """Get a null array. :keyword callable cls: A custom type or function that will be passed the direct response - :return: dict mapping str to list of str, or the result of cls(response) - :rtype: dict[str, list[str]] + :return: dict mapping str to list of str or None, or the result of cls(response) + :rtype: dict[str, list[str]] or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Dict[str, List[str]]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional[Dict[str, List[str]]]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError }