From 3ccd9be080774e7fc70e693634b9477b081cc152 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Thu, 30 Mar 2023 10:07:15 +0800 Subject: [PATCH] remove absolute_import (#15071) --- .../src/main/resources/python-nextgen/__init__api.mustache | 4 +--- .../src/main/resources/python-nextgen/__init__model.mustache | 4 +--- .../main/resources/python-nextgen/__init__package.mustache | 2 -- .../src/main/resources/python-nextgen/api.mustache | 2 -- .../src/main/resources/python-nextgen/api_client.mustache | 2 +- .../src/main/resources/python-nextgen/api_test.mustache | 2 -- .../src/main/resources/python-nextgen/configuration.mustache | 2 -- .../src/main/resources/python-nextgen/model_test.mustache | 2 -- .../src/main/resources/python-nextgen/rest.mustache | 2 -- .../client/echo_api/python-nextgen/openapi_client/__init__.py | 2 -- .../echo_api/python-nextgen/openapi_client/api/__init__.py | 3 +-- .../echo_api/python-nextgen/openapi_client/api/body_api.py | 2 -- .../echo_api/python-nextgen/openapi_client/api/form_api.py | 2 -- .../echo_api/python-nextgen/openapi_client/api/header_api.py | 2 -- .../echo_api/python-nextgen/openapi_client/api/path_api.py | 2 -- .../echo_api/python-nextgen/openapi_client/api/query_api.py | 2 -- .../echo_api/python-nextgen/openapi_client/api_client.py | 2 +- .../echo_api/python-nextgen/openapi_client/configuration.py | 2 -- .../echo_api/python-nextgen/openapi_client/models/__init__.py | 2 -- samples/client/echo_api/python-nextgen/openapi_client/rest.py | 2 -- .../petstore/python-nextgen-aiohttp/petstore_api/__init__.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/__init__.py | 3 +-- .../petstore_api/api/another_fake_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/default_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/fake_api.py | 2 -- .../petstore_api/api/fake_classname_tags123_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/pet_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/store_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api/user_api.py | 2 -- .../python-nextgen-aiohttp/petstore_api/api_client.py | 2 +- .../python-nextgen-aiohttp/petstore_api/configuration.py | 2 -- .../python-nextgen-aiohttp/petstore_api/models/__init__.py | 2 -- .../client/petstore/python-nextgen/petstore_api/__init__.py | 2 -- .../petstore/python-nextgen/petstore_api/api/__init__.py | 3 +-- .../python-nextgen/petstore_api/api/another_fake_api.py | 2 -- .../petstore/python-nextgen/petstore_api/api/default_api.py | 2 -- .../petstore/python-nextgen/petstore_api/api/fake_api.py | 2 -- .../petstore_api/api/fake_classname_tags123_api.py | 2 -- .../petstore/python-nextgen/petstore_api/api/pet_api.py | 2 -- .../petstore/python-nextgen/petstore_api/api/store_api.py | 2 -- .../petstore/python-nextgen/petstore_api/api/user_api.py | 2 -- .../client/petstore/python-nextgen/petstore_api/api_client.py | 2 +- .../petstore/python-nextgen/petstore_api/configuration.py | 2 -- .../petstore/python-nextgen/petstore_api/models/__init__.py | 2 -- .../client/petstore/python-nextgen/petstore_api/rest.py | 2 -- 45 files changed, 9 insertions(+), 88 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/__init__api.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/__init__api.mustache index c2232a92f4..8870835c81 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/__init__api.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/__init__api.mustache @@ -1,7 +1,5 @@ -from __future__ import absolute_import - # flake8: noqa # import apis into api package {{#apiInfo}}{{#apis}}from {{apiPackage}}.{{classFilename}} import {{classname}} -{{/apis}}{{/apiInfo}} \ No newline at end of file +{{/apis}}{{/apiInfo}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/__init__model.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/__init__model.mustache index 56487fff6a..0e1b55e2ac 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/__init__model.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/__init__model.mustache @@ -3,11 +3,9 @@ # flake8: noqa {{>partial_header}} -from __future__ import absolute_import - # import models into model package {{#models}} {{#model}} from {{modelPackage}}.{{classFilename}} import {{classname}} {{/model}} -{{/models}} \ No newline at end of file +{{/models}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/__init__package.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/__init__package.mustache index f12543f1f6..f598fc38c2 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/__init__package.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/__init__package.mustache @@ -4,8 +4,6 @@ {{>partial_header}} -from __future__ import absolute_import - __version__ = "{{packageVersion}}" # import apis into sdk package diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache index 592b8f687a..f16945da84 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/api.mustache @@ -2,8 +2,6 @@ {{>partial_header}} -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache index ef005c5e9d..7006b19276 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/api_client.mustache @@ -1,6 +1,6 @@ # coding: utf-8 + {{>partial_header}} -from __future__ import absolute_import import atexit import datetime diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/api_test.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/api_test.mustache index a981c662a0..c3bbe4b822 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/api_test.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/api_test.mustache @@ -2,8 +2,6 @@ {{>partial_header}} -from __future__ import absolute_import - import unittest import {{packageName}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache index ab50e67ea6..77b44197b2 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/configuration.mustache @@ -2,8 +2,6 @@ {{>partial_header}} -from __future__ import absolute_import - import copy import logging {{^asyncio}} diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/model_test.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/model_test.mustache index 06d8b5fa95..93ebf99b14 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/model_test.mustache @@ -2,8 +2,6 @@ {{>partial_header}} -from __future__ import absolute_import - import unittest import datetime diff --git a/modules/openapi-generator/src/main/resources/python-nextgen/rest.mustache b/modules/openapi-generator/src/main/resources/python-nextgen/rest.mustache index 0e76f4eb99..89875d6554 100644 --- a/modules/openapi-generator/src/main/resources/python-nextgen/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python-nextgen/rest.mustache @@ -2,8 +2,6 @@ {{>partial_header}} -from __future__ import absolute_import - import io import json import logging diff --git a/samples/client/echo_api/python-nextgen/openapi_client/__init__.py b/samples/client/echo_api/python-nextgen/openapi_client/__init__.py index e9e7570683..1177a5d9b3 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/__init__.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/__init__.py @@ -15,8 +15,6 @@ """ -from __future__ import absolute_import - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/__init__.py b/samples/client/echo_api/python-nextgen/openapi_client/api/__init__.py index 541b1a8999..411eed9258 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/__init__.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - # flake8: noqa # import apis into api package @@ -8,3 +6,4 @@ from openapi_client.api.form_api import FormApi from openapi_client.api.header_api import HeaderApi from openapi_client.api.path_api import PathApi from openapi_client.api.query_api import QueryApi + diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py index 371e24d730..ec77997499 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/body_api.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py index c1061ca225..93ad860382 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/form_api.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py index 9eaaaae02f..2a060aad18 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/header_api.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py index 34d1b7c2ab..9b22b402ab 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/path_api.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py index 7652488243..aa4c848261 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api/query_api.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/client/echo_api/python-nextgen/openapi_client/api_client.py b/samples/client/echo_api/python-nextgen/openapi_client/api_client.py index 7a508e6fbf..3d6ec22afd 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/api_client.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/api_client.py @@ -1,4 +1,5 @@ # coding: utf-8 + """ Echo Server API @@ -11,7 +12,6 @@ Do not edit the class manually. """ -from __future__ import absolute_import import atexit import datetime diff --git a/samples/client/echo_api/python-nextgen/openapi_client/configuration.py b/samples/client/echo_api/python-nextgen/openapi_client/configuration.py index 629814b705..9276d8f049 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/configuration.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/configuration.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import copy import logging import multiprocessing diff --git a/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py b/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py index efec638ad0..29619e9c8d 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py @@ -14,8 +14,6 @@ """ -from __future__ import absolute_import - # import models into model package from openapi_client.models.bird import Bird from openapi_client.models.category import Category diff --git a/samples/client/echo_api/python-nextgen/openapi_client/rest.py b/samples/client/echo_api/python-nextgen/openapi_client/rest.py index b705cbcb84..33f0615ee1 100644 --- a/samples/client/echo_api/python-nextgen/openapi_client/rest.py +++ b/samples/client/echo_api/python-nextgen/openapi_client/rest.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - import io import json import logging diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py index bbf50585f3..31cf58fec3 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/__init__.py @@ -14,8 +14,6 @@ """ -from __future__ import absolute_import - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/__init__.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/__init__.py index bc45197c40..7a2616975a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - # flake8: noqa # import apis into api package @@ -10,3 +8,4 @@ from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api from petstore_api.api.pet_api import PetApi from petstore_api.api.store_api import StoreApi from petstore_api.api.user_api import UserApi + diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py index b199686440..e03a60ce0e 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/another_fake_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py index ed4f670821..c497aac891 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/default_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py index 4b9d11adc6..3afc7a2cc3 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py index 3e7d3df88d..7443f859ed 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/fake_classname_tags123_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py index 9be3176520..202512fcff 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/pet_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py index 01fcb3a1a2..92289931c8 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/store_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py index 3d4eab42cc..66d311856a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api/user_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py index 9987a6267a..ccb2e99402 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/api_client.py @@ -1,4 +1,5 @@ # coding: utf-8 + """ OpenAPI Petstore @@ -10,7 +11,6 @@ Do not edit the class manually. """ -from __future__ import absolute_import import atexit import datetime diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py index c468ea8296..ed439f7f5a 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import copy import logging import sys diff --git a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py index 5f313ba72a..b6cd78aa71 100644 --- a/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/models/__init__.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - # import models into model package from petstore_api.models.additional_properties_class import AdditionalPropertiesClass from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py index bbf50585f3..31cf58fec3 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/__init__.py @@ -14,8 +14,6 @@ """ -from __future__ import absolute_import - __version__ = "1.0.0" # import apis into sdk package diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/__init__.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/__init__.py index bc45197c40..7a2616975a 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/__init__.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - # flake8: noqa # import apis into api package @@ -10,3 +8,4 @@ from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api from petstore_api.api.pet_api import PetApi from petstore_api.api.store_api import StoreApi from petstore_api.api.user_api import UserApi + diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py index e64b41e45c..a52190eaf3 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/another_fake_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py index 0fae685b82..cb77b64734 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/default_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py index 8ce851d9f0..29b19f4fd6 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py index c596e1b528..3221e3783b 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/fake_classname_tags123_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py index 217108146f..bff41ea66a 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/pet_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py index 8a9239355c..79931477f7 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/store_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py index 1c3d390732..bfa36bf013 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api/user_api.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import re # noqa: F401 from pydantic import validate_arguments, ValidationError diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py index 20ee02c7ef..f29e49a998 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/api_client.py @@ -1,4 +1,5 @@ # coding: utf-8 + """ OpenAPI Petstore @@ -10,7 +11,6 @@ Do not edit the class manually. """ -from __future__ import absolute_import import atexit import datetime diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py index c6081bbaff..a466557ad5 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/configuration.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import copy import logging import multiprocessing diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py index 5f313ba72a..b6cd78aa71 100644 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/models/__init__.py @@ -13,8 +13,6 @@ """ -from __future__ import absolute_import - # import models into model package from petstore_api.models.additional_properties_class import AdditionalPropertiesClass from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef diff --git a/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py b/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py index c12ef1c650..e26c0b96ea 100755 --- a/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-nextgen/petstore_api/rest.py @@ -12,8 +12,6 @@ """ -from __future__ import absolute_import - import io import json import logging