diff --git a/modules/openapi-generator/src/main/resources/python/python-experimental/__init__apis.mustache b/modules/openapi-generator/src/main/resources/python/python-experimental/__init__apis.mustache index b5b7065e1ed2210c22ff19d72db9bfa2dde4b4d2..da3937f8c542245d90ae5898672d4cf53f1a1035 100644 --- a/modules/openapi-generator/src/main/resources/python/python-experimental/__init__apis.mustache +++ b/modules/openapi-generator/src/main/resources/python/python-experimental/__init__apis.mustache @@ -2,18 +2,21 @@ # flake8: noqa -# import all apis into this package -# if you have many ampis here with many many models used in each api this may -# raise a RecursionError -# to avoid this, import only the api that you directly need like: -# from {{packagename}}.api.pet_api import PetApi +# Import all APIs into this package. +# If you have many APIs here with many many models used in each API this may +# raise a `RecursionError`. +# In order to avoid this, import only the API that you directly need like: +# +# from {{packagename}}.api.pet_api import PetApi +# # or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) +# +# import sys +# sys.setrecursionlimit(n) -# import apis into api package +# Import APIs into API package: {{#apiInfo}} {{#apis}} from {{apiPackage}}.{{classVarName}} import {{classname}} {{/apis}} -{{/apiInfo}} \ No newline at end of file +{{/apiInfo}} diff --git a/samples/client/petstore/python-experimental/petstore_api/apis/__init__.py b/samples/client/petstore/python-experimental/petstore_api/apis/__init__.py index f309caa3e6511065ed4492bfee0bd6891f304669..2dda59f02eaaaa0abacddcae32f2679abeaa6829 100644 --- a/samples/client/petstore/python-experimental/petstore_api/apis/__init__.py +++ b/samples/client/petstore/python-experimental/petstore_api/apis/__init__.py @@ -2,16 +2,19 @@ # flake8: noqa -# import all apis into this package -# if you have many ampis here with many many models used in each api this may -# raise a RecursionError -# to avoid this, import only the api that you directly need like: -# from .api.pet_api import PetApi +# Import all APIs into this package. +# If you have many APIs here with many many models used in each API this may +# raise a `RecursionError`. +# In order to avoid this, import only the API that you directly need like: +# +# from .api.pet_api import PetApi +# # or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) +# +# import sys +# sys.setrecursionlimit(n) -# import apis into api package +# Import APIs into API package: from petstore_api.api.another_fake_api import AnotherFakeApi from petstore_api.api.fake_api import FakeApi from petstore_api.api.fake_classname_tags_123_api import FakeClassnameTags123Api diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/__init__.py index 41cbd0aa055edf371ead837c699101841ed384e1..27522f8152a6e1342c73f3929af25d2288aad2e6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/__init__.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/__init__.py @@ -2,16 +2,19 @@ # flake8: noqa -# import all apis into this package -# if you have many ampis here with many many models used in each api this may -# raise a RecursionError -# to avoid this, import only the api that you directly need like: -# from .api.pet_api import PetApi +# Import all APIs into this package. +# If you have many APIs here with many many models used in each API this may +# raise a `RecursionError`. +# In order to avoid this, import only the API that you directly need like: +# +# from .api.pet_api import PetApi +# # or import this package, but before doing it, use: -# import sys -# sys.setrecursionlimit(n) +# +# import sys +# sys.setrecursionlimit(n) -# import apis into api package +# Import APIs into API package: from petstore_api.api.another_fake_api import AnotherFakeApi from petstore_api.api.default_api import DefaultApi from petstore_api.api.fake_api import FakeApi