[python-nextgen] fix #16010 circular refs lead to no imports (#16199)

* [python-nextgen] fix #16010 circular refs lead to no imports

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] update samples

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] remove unnecessary Postponed annotations

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] update samples

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] remove unnecessary Postponed annotations

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] update samples

Signed-off-by: ふぁ <yuki@yuki0311.com>

* [python-nextgen] update samples

Signed-off-by: ふぁ <yuki@yuki0311.com>

---------

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ
2023-07-30 01:42:46 +09:00
committed by GitHub
parent d41fe12c1f
commit 48ff57b4f6
160 changed files with 342 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -43,6 +43,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
This endpoint does not need any parameter.

View File

@@ -60,6 +60,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -122,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -185,6 +187,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
This endpoint does not need any parameter.
@@ -313,6 +316,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -379,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -444,6 +449,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -508,6 +514,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -572,6 +579,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -637,6 +645,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -699,6 +708,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -762,6 +772,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -824,6 +835,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -891,6 +903,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -952,6 +965,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -1041,6 +1055,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -1134,6 +1149,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -1202,6 +1218,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -1266,6 +1283,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -1335,6 +1353,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -58,6 +58,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -123,6 +123,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -195,6 +196,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -333,6 +335,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -470,6 +473,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -548,6 +552,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -684,6 +689,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -759,6 +765,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -837,6 +844,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -914,6 +922,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -47,6 +47,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -123,6 +124,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
This endpoint does not need any parameter.
@@ -186,6 +188,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -254,6 +257,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -52,6 +52,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -116,6 +117,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -180,6 +182,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -243,6 +246,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -310,6 +314,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -378,6 +383,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes
@@ -442,6 +448,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
This endpoint does not need any parameter.
@@ -504,6 +511,7 @@ with petstore_api.ApiClient(configuration) as api_client:
```
### Parameters
Name | Type | Description | Notes

View File

@@ -82,3 +82,4 @@ class AdditionalPropertiesClass(BaseModel):
return _obj

View File

@@ -83,3 +83,4 @@ class AllOfWithSingleRef(BaseModel):
return _obj

View File

@@ -94,3 +94,4 @@ class Animal(BaseModel):
json.dumps(obj) + ". Discriminator property name: " + cls.__discriminator_property_name +
", mapping: " + json.dumps(cls.__discriminator_value_class_map))

View File

@@ -152,3 +152,4 @@ class AnyOfColor(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -131,3 +131,4 @@ class AnyOfPig(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -84,3 +84,4 @@ class ApiResponse(BaseModel):
return _obj

View File

@@ -93,3 +93,4 @@ class ArrayOfArrayOfModel(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class ArrayOfArrayOfNumberOnly(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class ArrayOfNumberOnly(BaseModel):
return _obj

View File

@@ -97,3 +97,4 @@ class ArrayTest(BaseModel):
return _obj

View File

@@ -82,3 +82,4 @@ class BasquePig(BaseModel):
return _obj

View File

@@ -90,3 +90,4 @@ class Capitalization(BaseModel):
return _obj

View File

@@ -83,3 +83,4 @@ class Cat(Animal):
return _obj

View File

@@ -82,3 +82,4 @@ class Category(BaseModel):
return _obj

View File

@@ -85,3 +85,6 @@ class CircularReferenceModel(BaseModel):
return _obj
from petstore_api.models.first_ref import FirstRef
CircularReferenceModel.update_forward_refs()

View File

@@ -80,3 +80,4 @@ class ClassModel(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class Client(BaseModel):
return _obj

View File

@@ -167,3 +167,4 @@ class Color(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -82,3 +82,4 @@ class DanishPig(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class DeprecatedObject(BaseModel):
return _obj

View File

@@ -83,3 +83,4 @@ class Dog(Animal):
return _obj

View File

@@ -85,3 +85,6 @@ class DummyModel(BaseModel):
return _obj
from petstore_api.models.self_reference_model import SelfReferenceModel
DummyModel.update_forward_refs()

View File

@@ -103,3 +103,4 @@ class EnumArrays(BaseModel):
return _obj

View File

@@ -152,3 +152,4 @@ class EnumTest(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class File(BaseModel):
return _obj

View File

@@ -93,3 +93,4 @@ class FileSchemaTestClass(BaseModel):
return _obj

View File

@@ -85,3 +85,6 @@ class FirstRef(BaseModel):
return _obj
from petstore_api.models.second_ref import SecondRef
FirstRef.update_forward_refs()

View File

@@ -80,3 +80,4 @@ class Foo(BaseModel):
return _obj

View File

@@ -84,3 +84,4 @@ class FooGetDefaultResponse(BaseModel):
return _obj

View File

@@ -152,3 +152,4 @@ class FormatTest(BaseModel):
return _obj

View File

@@ -84,3 +84,4 @@ class HasOnlyReadOnly(BaseModel):
return _obj

View File

@@ -85,3 +85,4 @@ class HealthCheckResult(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class InnerDictWithProperty(BaseModel):
return _obj

View File

@@ -144,3 +144,4 @@ class IntOrString(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -80,3 +80,4 @@ class List(BaseModel):
return _obj

View File

@@ -97,3 +97,4 @@ class MapOfArrayOfModel(BaseModel):
return _obj

View File

@@ -96,3 +96,4 @@ class MapTest(BaseModel):
return _obj

View File

@@ -97,3 +97,4 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel):
return _obj

View File

@@ -82,3 +82,4 @@ class Model200Response(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class ModelReturn(BaseModel):
return _obj

View File

@@ -88,3 +88,4 @@ class Name(BaseModel):
return _obj

View File

@@ -147,3 +147,4 @@ class NullableClass(BaseModel):
})
return _obj

View File

@@ -97,3 +97,4 @@ class NullableProperty(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class NumberOnly(BaseModel):
return _obj

View File

@@ -80,3 +80,4 @@ class ObjectToTestAdditionalProperties(BaseModel):
return _obj

View File

@@ -90,3 +90,4 @@ class ObjectWithDeprecatedFields(BaseModel):
return _obj

View File

@@ -138,3 +138,4 @@ class OneOfEnumString(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -100,3 +100,4 @@ class Order(BaseModel):
return _obj

View File

@@ -84,3 +84,4 @@ class OuterComposite(BaseModel):
return _obj

View File

@@ -89,3 +89,4 @@ class OuterObjectWithEnumProperty(BaseModel):
return _obj

View File

@@ -93,3 +93,4 @@ class Parent(BaseModel):
return _obj

View File

@@ -93,3 +93,4 @@ class ParentWithOptionalDict(BaseModel):
return _obj

View File

@@ -112,3 +112,4 @@ class Pet(BaseModel):
return _obj

View File

@@ -156,3 +156,4 @@ class Pig(BaseModel):
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.dict())

View File

@@ -84,3 +84,4 @@ class PropertyNameCollision(BaseModel):
return _obj

View File

@@ -83,3 +83,4 @@ class ReadOnlyFirst(BaseModel):
return _obj

View File

@@ -85,3 +85,6 @@ class SecondRef(BaseModel):
return _obj
from petstore_api.models.circular_reference_model import CircularReferenceModel
SecondRef.update_forward_refs()

View File

@@ -85,3 +85,6 @@ class SelfReferenceModel(BaseModel):
return _obj
from petstore_api.models.dummy_model import DummyModel
SelfReferenceModel.update_forward_refs()

View File

@@ -80,3 +80,4 @@ class SpecialModelName(BaseModel):
return _obj

View File

@@ -98,3 +98,4 @@ class SpecialName(BaseModel):
return _obj

View File

@@ -82,3 +82,4 @@ class Tag(BaseModel):
return _obj

View File

@@ -94,3 +94,4 @@ class User(BaseModel):
return _obj

View File

@@ -92,3 +92,4 @@ class WithNestedOneOf(BaseModel):
return _obj