Skip to content

Commit e742cfa

Browse files
committed
PyLint
1 parent 7ab33b0 commit e742cfa

File tree

16 files changed

+15
-17
lines changed
  • packages
    • autorest.python
      • autorest/codegen/serializers
      • test
        • azure
          • legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio
          • version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio
        • dpg/version-tolerant/Expected/AcceptanceTests
          • DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio
          • DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio
          • DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio
        • vanilla
          • legacy/Expected/AcceptanceTests
          • version-tolerant/Expected/AcceptanceTests
            • BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio
            • ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio
            • ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio
            • ValidationVersionTolerant/validationversiontolerant/aio
    • cadl-python/test/generated

16 files changed

+15
-17
lines changed

packages/autorest.python/autorest/codegen/serializers/general_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def serialize_vendor_file(self) -> str:
110110
ImportType.AZURECORE,
111111
)
112112

113-
if self.code_model.need_format_url:
113+
if self.code_model.need_format_url and not self.async_mode:
114114
file_import.add_submodule_import("typing", "List", ImportType.STDLIB)
115115
file_import.add_submodule_import("typing", "cast", ImportType.STDLIB)
116116

packages/autorest.python/test/azure/legacy/Expected/AcceptanceTests/LroWithParameterizedEndpoints/lrowithparameterizedendpoints/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from azure.core.pipeline.transport import HttpRequest
1212

packages/autorest.python/test/azure/version-tolerant/Expected/AcceptanceTests/LroWithParameterizedEndpointsVersionTolerant/lrowithparameterizedendpointsversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import LROWithParamaterizedEndpointsConfiguration
1212

packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationCustomizedVersionTolerant/dpgcustomizationcustomizedversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import DPGClientConfiguration
1212

packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGCustomizationInitialVersionTolerant/dpgcustomizationinitialversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import DPGClientConfiguration
1212

packages/autorest.python/test/dpg/version-tolerant/Expected/AcceptanceTests/DPGTestModelsVersionTolerant/dpgtestmodelsversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import DPGClientConfiguration
1212

packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ModelFlattening/modelflattening/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from azure.core.pipeline.transport import HttpRequest
1212

packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/ReservedWords/reservedwords/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from azure.core.pipeline.transport import HttpRequest
1212

packages/autorest.python/test/vanilla/legacy/Expected/AcceptanceTests/Validation/validation/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from azure.core.pipeline.transport import HttpRequest
1212

packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyFormUrlEncodedDataVersionTolerant/bodyformurlencodeddataversiontolerant/aio/_vendor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------
77

8-
from typing import List, cast
9-
108

119
def raise_if_not_implemented(cls, abstract_methods):
1210
not_implemented = [f for f in abstract_methods if not callable(getattr(cls, f, None))]

packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ModelFlatteningVersionTolerant/modelflatteningversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import AutoRestResourceFlatteningTestServiceConfiguration
1212

packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ReservedWordsVersionTolerant/reservedwordsversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import ReservedWordsClientConfiguration
1212

packages/autorest.python/test/vanilla/version-tolerant/Expected/AcceptanceTests/ValidationVersionTolerant/validationversiontolerant/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import AutoRestValidationTestConfiguration
1212

packages/cadl-python/test/generated/dev-driven/resiliency/devdriven/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import DevDrivenClientConfiguration
1212

packages/cadl-python/test/generated/srv-driven-1/resiliency/servicedriven1/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import ServiceDriven1ClientConfiguration
1212

packages/cadl-python/test/generated/srv-driven-2/resiliency/servicedriven2/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------
77

88
from abc import ABC
9-
from typing import List, TYPE_CHECKING, cast
9+
from typing import TYPE_CHECKING
1010

1111
from ._configuration import ServiceDriven2ClientConfiguration
1212

0 commit comments

Comments
 (0)