Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions autorest/codegen/serializers/general_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ def serialize_vendor_file(self) -> str:
)

if self.code_model.need_mixin_abc:
file_import.add_submodule_import(
"__future__", "annotations", ImportType.STDLIB
)
file_import.add_submodule_import(
"abc",
"ABC",
Expand Down
6 changes: 3 additions & 3 deletions autorest/codegen/templates/vendor.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def _format_url_section(template, **kwargs):

class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""
_client: {{ keywords.async_class }}PipelineClient
_client: "{{ keywords.async_class }}PipelineClient"
_config: {{ code_model.class_name }}Configuration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
{% endif %}
5 changes: 4 additions & 1 deletion eng/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:

strategy:
matrix:
Windows_Python36:
OSName: "Windows"
OSVmImage: "MMS2019"
PythonVersion: "3.6"
Linux_Python37:
OSName: "Linux"
OSVmImage: "MMSUbuntu20.04"
PythonVersion: "3.7"
CoverageArg: ""
Linux_Python310:
OSName: "Linux"
OSVmImage: "MMSUbuntu20.04"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: AutoRestReportServiceForAzureConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: AutoRestReportServiceForAzureConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -32,7 +31,7 @@ def _format_url_section(template, **kwargs):
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: LROWithParamaterizedEndpointsConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: LROWithParamaterizedEndpointsConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -32,7 +31,7 @@ def _format_url_section(template, **kwargs):
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: DPGClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: DPGClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -32,7 +31,7 @@ def _format_url_section(template, **kwargs):
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: DPGClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: DPGClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: AnythingClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: AnythingClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: ErrorWithSecretsConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: ErrorWithSecretsConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: IncorrectReturnedErrorModelConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: IncorrectReturnedErrorModelConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: MediaTypesClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: MediaTypesClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: MergePatchJsonClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -21,7 +20,7 @@
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: AsyncPipelineClient
_client: "AsyncPipelineClient"
_config: MergePatchJsonClientConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from __future__ import annotations
from abc import ABC
from typing import TYPE_CHECKING

Expand All @@ -32,7 +31,7 @@ def _format_url_section(template, **kwargs):
class MixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: PipelineClient
_client: "PipelineClient"
_config: AutoRestResourceFlatteningTestServiceConfiguration
_serialize: Serializer
_deserialize: Deserializer
_serialize: "Serializer"
_deserialize: "Deserializer"
Loading