From 225204093fa22b6ff1f78bc7b46f8bb3311e4d65 Mon Sep 17 00:00:00 2001 From: Justin Black Date: Wed, 31 Aug 2022 12:16:53 -0700 Subject: [PATCH] [python-experimental] adds NullableX base class mixins, fixes additionalProperties type hint (#13323) * Makes additionalProperties type hint include Unset * Adds 2-class Mixins * unit test sample regenerated * Reverts version files --- ...property_getitems_with_addprops.handlebars | 2 +- .../schema_composed_or_anytype.handlebars | 2 +- .../model_templates/xbase_schema.handlebars | 3 +- .../python-experimental/schemas.handlebars | 73 +++++++++++++++++-- ...s_allows_a_schema_which_should_validate.py | 2 +- ..._allows_a_schema_which_should_validate.pyi | 2 +- ...tionalproperties_are_allowed_by_default.py | 2 +- ...ionalproperties_are_allowed_by_default.pyi | 2 +- ...operties_should_not_look_in_applicators.py | 2 +- ...perties_should_not_look_in_applicators.pyi | 2 +- .../unit_test_api/model/allof.py | 4 +- .../unit_test_api/model/allof.pyi | 4 +- .../model/allof_with_base_schema.py | 6 +- .../model/allof_with_base_schema.pyi | 6 +- .../model/anyof_complex_types.py | 4 +- .../model/anyof_complex_types.pyi | 4 +- .../model/enums_in_properties.py | 2 +- .../model/enums_in_properties.pyi | 2 +- .../unit_test_api/model/forbidden_property.py | 2 +- .../model/forbidden_property.pyi | 2 +- .../model/invalid_string_value_for_default.py | 2 +- .../invalid_string_value_for_default.pyi | 2 +- .../model/not_more_complex_schema.py | 2 +- .../model/not_more_complex_schema.pyi | 2 +- .../model/object_properties_validation.py | 2 +- .../model/object_properties_validation.pyi | 2 +- .../model/oneof_complex_types.py | 4 +- .../model/oneof_complex_types.pyi | 4 +- .../model/oneof_with_required.py | 4 +- .../model/oneof_with_required.pyi | 4 +- .../properties_with_escaped_characters.py | 2 +- .../properties_with_escaped_characters.pyi | 2 +- ...perty_named_ref_that_is_not_a_reference.py | 2 +- ...erty_named_ref_that_is_not_a_reference.pyi | 2 +- .../unit_test_api/model/ref_in_property.py | 2 +- .../unit_test_api/model/ref_in_property.pyi | 2 +- .../model/required_default_validation.py | 2 +- .../model/required_default_validation.pyi | 2 +- .../model/required_validation.py | 2 +- .../model/required_validation.pyi | 2 +- .../model/required_with_empty_array.py | 2 +- .../model/required_with_empty_array.pyi | 2 +- .../model/required_with_escaped_characters.py | 2 +- .../required_with_escaped_characters.pyi | 2 +- ..._do_anything_if_the_property_is_missing.py | 2 +- ...do_anything_if_the_property_is_missing.pyi | 2 +- .../post.py | 2 +- .../post.pyi | 2 +- .../post.py | 2 +- .../post.pyi | 2 +- .../post.py | 2 +- .../post.pyi | 2 +- .../post.py | 2 +- .../post.pyi | 2 +- .../unit_test_api/schemas.py | 73 +++++++++++++++++-- .../model/additional_properties_class.py | 2 +- .../model/additional_properties_class.pyi | 2 +- .../petstore_api/model/animal.py | 2 +- .../petstore_api/model/animal.pyi | 2 +- .../petstore_api/model/api_response.py | 2 +- .../petstore_api/model/api_response.pyi | 2 +- .../petstore_api/model/apple.py | 7 +- .../petstore_api/model/apple.pyi | 7 +- .../model/array_of_array_of_number_only.py | 2 +- .../model/array_of_array_of_number_only.pyi | 2 +- .../model/array_of_number_only.py | 2 +- .../model/array_of_number_only.pyi | 2 +- .../petstore_api/model/array_test.py | 2 +- .../petstore_api/model/array_test.pyi | 2 +- .../petstore_api/model/banana.py | 2 +- .../petstore_api/model/banana.pyi | 2 +- .../petstore_api/model/basque_pig.py | 2 +- .../petstore_api/model/basque_pig.pyi | 2 +- .../petstore_api/model/capitalization.py | 2 +- .../petstore_api/model/capitalization.pyi | 2 +- .../petstore_api/model/cat.py | 2 +- .../petstore_api/model/cat.pyi | 2 +- .../petstore_api/model/category.py | 2 +- .../petstore_api/model/category.pyi | 2 +- .../petstore_api/model/child_cat.py | 2 +- .../petstore_api/model/child_cat.pyi | 2 +- .../petstore_api/model/class_model.py | 2 +- .../petstore_api/model/class_model.pyi | 2 +- .../petstore_api/model/client.py | 2 +- .../petstore_api/model/client.pyi | 2 +- .../model/complex_quadrilateral.py | 2 +- .../model/complex_quadrilateral.pyi | 2 +- .../petstore_api/model/danish_pig.py | 2 +- .../petstore_api/model/danish_pig.pyi | 2 +- .../petstore_api/model/dog.py | 2 +- .../petstore_api/model/dog.pyi | 2 +- .../petstore_api/model/drawing.py | 2 +- .../petstore_api/model/drawing.pyi | 2 +- .../petstore_api/model/enum_arrays.py | 2 +- .../petstore_api/model/enum_arrays.pyi | 2 +- .../petstore_api/model/enum_test.py | 2 +- .../petstore_api/model/enum_test.pyi | 2 +- .../model/equilateral_triangle.py | 2 +- .../model/equilateral_triangle.pyi | 2 +- .../petstore_api/model/file.py | 2 +- .../petstore_api/model/file.pyi | 2 +- .../model/file_schema_test_class.py | 2 +- .../model/file_schema_test_class.pyi | 2 +- .../petstore_api/model/foo.py | 2 +- .../petstore_api/model/foo.pyi | 2 +- .../petstore_api/model/format_test.py | 2 +- .../petstore_api/model/format_test.pyi | 2 +- .../petstore_api/model/fruit.py | 2 +- .../petstore_api/model/fruit.pyi | 2 +- .../petstore_api/model/gm_fruit.py | 2 +- .../petstore_api/model/gm_fruit.pyi | 2 +- .../petstore_api/model/grandparent_animal.py | 2 +- .../petstore_api/model/grandparent_animal.pyi | 2 +- .../petstore_api/model/has_only_read_only.py | 2 +- .../petstore_api/model/has_only_read_only.pyi | 2 +- .../petstore_api/model/health_check_result.py | 5 +- .../model/health_check_result.pyi | 5 +- .../petstore_api/model/isosceles_triangle.py | 2 +- .../petstore_api/model/isosceles_triangle.pyi | 2 +- .../petstore_api/model/map_test.py | 2 +- .../petstore_api/model/map_test.pyi | 2 +- ...perties_and_additional_properties_class.py | 2 +- ...erties_and_additional_properties_class.pyi | 2 +- .../petstore_api/model/model200_response.py | 2 +- .../petstore_api/model/model200_response.pyi | 2 +- .../petstore_api/model/model_return.py | 2 +- .../petstore_api/model/model_return.pyi | 2 +- .../petstore_api/model/money.py | 2 +- .../petstore_api/model/money.pyi | 2 +- .../petstore_api/model/name.py | 2 +- .../petstore_api/model/name.pyi | 2 +- .../petstore_api/model/nullable_class.py | 65 ++++++++++------- .../petstore_api/model/nullable_class.pyi | 65 ++++++++++------- .../petstore_api/model/nullable_string.py | 3 +- .../petstore_api/model/nullable_string.pyi | 3 +- .../petstore_api/model/number_only.py | 2 +- .../petstore_api/model/number_only.pyi | 2 +- .../model/object_model_with_ref_props.py | 2 +- .../model/object_model_with_ref_props.pyi | 2 +- .../model/object_with_decimal_properties.py | 2 +- .../model/object_with_decimal_properties.pyi | 2 +- .../object_with_difficultly_named_props.py | 2 +- .../object_with_difficultly_named_props.pyi | 2 +- ...object_with_inline_composition_property.py | 2 +- ...bject_with_inline_composition_property.pyi | 2 +- .../petstore_api/model/order.py | 2 +- .../petstore_api/model/order.pyi | 2 +- .../petstore_api/model/pet.py | 2 +- .../petstore_api/model/pet.pyi | 2 +- .../petstore_api/model/player.py | 2 +- .../petstore_api/model/player.pyi | 2 +- .../model/quadrilateral_interface.py | 2 +- .../model/quadrilateral_interface.pyi | 2 +- .../petstore_api/model/read_only_first.py | 2 +- .../petstore_api/model/read_only_first.pyi | 2 +- .../petstore_api/model/scalene_triangle.py | 2 +- .../petstore_api/model/scalene_triangle.pyi | 2 +- .../model/simple_quadrilateral.py | 2 +- .../model/simple_quadrilateral.pyi | 2 +- .../petstore_api/model/special_model_name.py | 2 +- .../petstore_api/model/special_model_name.pyi | 2 +- .../petstore_api/model/string_enum.py | 3 +- .../petstore_api/model/string_enum.pyi | 3 +- .../petstore_api/model/tag.py | 2 +- .../petstore_api/model/tag.pyi | 2 +- .../petstore_api/model/triangle_interface.py | 2 +- .../petstore_api/model/triangle_interface.pyi | 2 +- .../petstore_api/model/user.py | 7 +- .../petstore_api/model/user.pyi | 7 +- .../petstore_api/model/whale.py | 2 +- .../petstore_api/model/whale.pyi | 2 +- .../petstore_api/model/zebra.py | 2 +- .../petstore_api/model/zebra.pyi | 2 +- .../petstore_api/paths/fake_1/post.py | 2 +- .../petstore_api/paths/fake_1/post.pyi | 2 +- .../petstore_api/paths/fake_2/get.py | 2 +- .../petstore_api/paths/fake_2/get.pyi | 2 +- .../paths/fake_inline_composition_/post.py | 6 +- .../paths/fake_inline_composition_/post.pyi | 6 +- .../paths/fake_json_form_data/get.py | 2 +- .../paths/fake_json_form_data/get.pyi | 2 +- .../paths/fake_obj_in_query/get.py | 2 +- .../paths/fake_obj_in_query/get.pyi | 2 +- .../post.py | 2 +- .../post.pyi | 2 +- .../paths/fake_upload_file/post.py | 2 +- .../paths/fake_upload_file/post.pyi | 2 +- .../paths/fake_upload_files/post.py | 2 +- .../paths/fake_upload_files/post.pyi | 2 +- .../petstore_api/paths/foo/get.py | 2 +- .../petstore_api/paths/foo/get.pyi | 2 +- .../petstore_api/paths/pet_pet_id_3/post.py | 2 +- .../petstore_api/paths/pet_pet_id_3/post.pyi | 2 +- .../paths/pet_pet_id_upload_image/post.py | 2 +- .../paths/pet_pet_id_upload_image/post.pyi | 2 +- .../petstore_api/schemas.py | 73 +++++++++++++++++-- 196 files changed, 506 insertions(+), 288 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars index 73578ee3b9f..941113953a5 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars @@ -39,7 +39,7 @@ def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> typing.Union[Me {{#or vars getRequiredVarsMap}} @typing.overload -def __getitem__(self, name: str) -> {{#with additionalProperties}}{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/with}}: ... +def __getitem__(self, name: str) -> {{#with additionalProperties}}typing.Union[{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}, schemas.Unset]{{/with}}: ... {{/or}} def __getitem__(self, name: typing.Union[str, {{#each getRequiredVarsMap}}{{#with this}}typing.Literal["{{{baseName}}}"], {{/with}}{{/each}}{{#each vars}}{{#unless required}}typing.Literal["{{{baseName}}}"], {{/unless}}{{/each}}]){{#not vars}}{{#not getRequiredVarsMap}} -> {{#with additionalProperties}}{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/with}}{{/not}}{{/not}}: diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars index 694a09fc70f..c8bdddc4226 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/schema_composed_or_anytype.handlebars @@ -9,7 +9,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}} {{/if}} {{else}} {{#if getHasMultipleTypes}} - schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict.frozendict, {{/if}}{{#if isNull}}schemas.NoneClass, {{/if}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}decimal.Decimal, {{/or}}{{#or isString isByteArray isDate isDateTime isDecimal}}str, {{/or}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isNull}}schemas.NoneClass, {{/if}}{{#if isMap}}frozendict.frozendict, {{/if}}{{#if isArray}}tuple, {{/if}}{{#or isString isByteArray isDate isDateTime isDecimal}}str, {{/or}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}decimal.Decimal, {{/or}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]), {{/if}} {{#if composedSchemas}} schemas.ComposedBase, diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars index 3b3243439c4..2da4124f621 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/xbase_schema.handlebars @@ -50,5 +50,6 @@ schemas.Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} schemas.None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}} {{/if}} {{#if getHasMultipleTypes}} -schemas.Schema +schemas.Schema, +schemas.{{#if isNull}}None{{/if}}{{#if isMap}}FrozenDict{{/if}}{{#if isArray}}Tuple{{/if}}{{#or isString isByteArray isDate isDateTime isDecimal}}Str{{/or}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}Decimal{{/or}}{{#if isBoolean}}Bool{{/if}}Mixin {{/if}} diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars index 68c4a74f863..f568f63563b 100644 --- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars +++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars @@ -478,20 +478,78 @@ class Schema: """ pass +""" +import itertools +data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') +[v for v in itertools.combinations(data_types, 2)] +""" if typing.TYPE_CHECKING: + # qty 1 mixin + NoneMixin = NoneClass + FrozenDictMixin = frozendict.frozendict + TupleMixin = tuple StrMixin = str DecimalMixin = decimal.Decimal BoolMixin = BoolClass - NoneMixin = NoneClass - TupleMixin = tuple - FrozenDictMixin = frozendict.frozendict + # qty 2 mixin + class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): + pass + class NoneTupleMixin(NoneClass, tuple): + pass + class NoneStrMixin(NoneClass, str): + pass + class NoneDecimalMixin(NoneClass, decimal.Decimal): + pass + class NoneBoolMixin(NoneClass, bool): + passs + class FrozenDictTupleMixin(frozendict.frozendict, tuple): + pass + class FrozenDictStrMixin(frozendict.frozendict, str): + pass + class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): + pass + class FrozenDictBoolMixin(frozendict.frozendict, bool): + pass + class TupleStrMixin(tuple, str): + pass + class TupleDecimalMixin(tuple, decimal.Decimal): + pass + class TupleBoolMixin(tuple, bool): + pass + class StrDecimalMixin(str, decimal.Decimal): + pass + class StrBoolMixin(str, bool): + pass + class DecimalBoolMixin(decimal.Decimal, bool): + pass + # qty 6 + class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, bool): + pass else: + # qty 1 mixin + NoneMixin = object + FrozenDictMixin = object + TupleMixin = object StrMixin = object DecimalMixin = object BoolMixin = object - NoneMixin = object - TupleMixin = object - FrozenDictMixin = object + # qty 2 mixin + NoneFrozenDictMixin = object + NoneTupleMixin = object + NoneStrMixin = object + NoneDecimalMixin = object + NoneBoolMixin = object + FrozenDictTupleMixin = object + FrozenDictStrMixin = object + FrozenDictDecimalMixin = object + FrozenDictBoolMixin = object + TupleStrMixin = object + TupleDecimalMixin = object + TupleBoolMixin = object + StrDecimalMixin = object + StrBoolMixin = object + DecimalBoolMixin = object + NoneFrozenDictTupleStrDecimalBoolMixin = object class ValidatorBase: @@ -2077,7 +2135,8 @@ class AnyTypeSchema( StrBase, BoolBase, NoneBase, - Schema + Schema, + NoneFrozenDictTupleStrDecimalBoolMixin ): pass diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py index 6500cb6a5d2..8715c302354 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py @@ -52,7 +52,7 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi index 6500cb6a5d2..8715c302354 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi @@ -52,7 +52,7 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py index ed104d2ede9..4d46823c7c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py @@ -53,7 +53,7 @@ class AdditionalpropertiesAreAllowedByDefault( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi index ed104d2ede9..4d46823c7c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi @@ -53,7 +53,7 @@ class AdditionalpropertiesAreAllowedByDefault( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py index ebbf6125da9..c12bfa4f8b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py @@ -56,7 +56,7 @@ class AdditionalpropertiesShouldNotLookInApplicators( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi index ebbf6125da9..c12bfa4f8b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi @@ -56,7 +56,7 @@ class AdditionalpropertiesShouldNotLookInApplicators( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py index e6b5383248d..630b4fc91e2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py @@ -59,7 +59,7 @@ class Allof( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class Allof( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi index e6b5383248d..630b4fc91e2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi @@ -59,7 +59,7 @@ class Allof( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class Allof( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py index d3679fb088d..b831807ae4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py @@ -67,7 +67,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor @@ -117,7 +117,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["baz"], ]): # dict_instance[name] accessor @@ -166,7 +166,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi index d3679fb088d..b831807ae4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi @@ -67,7 +67,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor @@ -117,7 +117,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["baz"], ]): # dict_instance[name] accessor @@ -166,7 +166,7 @@ class AllofWithBaseSchema( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py index 546e9a1258a..9ac8c92a4c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py @@ -59,7 +59,7 @@ class AnyofComplexTypes( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class AnyofComplexTypes( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi index 546e9a1258a..9ac8c92a4c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi @@ -59,7 +59,7 @@ class AnyofComplexTypes( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class AnyofComplexTypes( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py index 8974bef83b2..7dec2d0b696 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py @@ -83,7 +83,7 @@ class EnumsInProperties( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi index 8974bef83b2..7dec2d0b696 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi @@ -83,7 +83,7 @@ class EnumsInProperties( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py index 5a48883522a..f352a48bc2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py @@ -79,7 +79,7 @@ class ForbiddenProperty( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi index 5a48883522a..f352a48bc2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi @@ -79,7 +79,7 @@ class ForbiddenProperty( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py index 44e73fadc1e..591ac99bd38 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py @@ -55,7 +55,7 @@ class InvalidStringValueForDefault( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi index c2da5b31836..8ab69e1ecc8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi @@ -52,7 +52,7 @@ class InvalidStringValueForDefault( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py index 2934de9b11b..46008bc6ab0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py @@ -55,7 +55,7 @@ class NotMoreComplexSchema( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi index 2934de9b11b..46008bc6ab0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi @@ -55,7 +55,7 @@ class NotMoreComplexSchema( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py index 88845d01ac3..b36d06f132e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py @@ -53,7 +53,7 @@ class ObjectPropertiesValidation( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi index 88845d01ac3..b36d06f132e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi @@ -53,7 +53,7 @@ class ObjectPropertiesValidation( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py index 39b115b0636..90743b45cb6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py @@ -59,7 +59,7 @@ class OneofComplexTypes( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class OneofComplexTypes( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi index 39b115b0636..90743b45cb6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi @@ -59,7 +59,7 @@ class OneofComplexTypes( def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor @@ -109,7 +109,7 @@ class OneofComplexTypes( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py index f62ebf6e54a..3a6074b1945 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py @@ -60,7 +60,7 @@ class OneofWithRequired( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor @@ -108,7 +108,7 @@ class OneofWithRequired( def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["baz"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi index f62ebf6e54a..3a6074b1945 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi @@ -60,7 +60,7 @@ class OneofWithRequired( def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor @@ -108,7 +108,7 @@ class OneofWithRequired( def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["baz"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py index e1e252c7cfc..1f563672018 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py @@ -71,7 +71,7 @@ class PropertiesWithEscapedCharacters( def __getitem__(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\nbar"], typing.Literal["foo\"bar"], typing.Literal["foo\\bar"], typing.Literal["foo\rbar"], typing.Literal["foo\tbar"], typing.Literal["foo\fbar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi index e1e252c7cfc..1f563672018 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi @@ -71,7 +71,7 @@ class PropertiesWithEscapedCharacters( def __getitem__(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\nbar"], typing.Literal["foo\"bar"], typing.Literal["foo\\bar"], typing.Literal["foo\rbar"], typing.Literal["foo\tbar"], typing.Literal["foo\fbar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py index a0efc5414c8..e2b9b41f242 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py @@ -46,7 +46,7 @@ class PropertyNamedRefThatIsNotAReference( def __getitem__(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["$ref"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi index a0efc5414c8..e2b9b41f242 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi @@ -46,7 +46,7 @@ class PropertyNamedRefThatIsNotAReference( def __getitem__(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["$ref"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py index 4460ea43895..7f8046fe168 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py @@ -51,7 +51,7 @@ class RefInProperty( def __getitem__(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi index 4460ea43895..7f8046fe168 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi @@ -51,7 +51,7 @@ class RefInProperty( def __getitem__(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py index 19c7059c787..f9934bcc77a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py @@ -47,7 +47,7 @@ class RequiredDefaultValidation( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi index 19c7059c787..f9934bcc77a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi @@ -47,7 +47,7 @@ class RequiredDefaultValidation( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py index f92ab40956f..62c6abc65fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py @@ -56,7 +56,7 @@ class RequiredValidation( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi index f92ab40956f..62c6abc65fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi @@ -56,7 +56,7 @@ class RequiredValidation( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py index 5837b696c3c..2065caffcab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py @@ -47,7 +47,7 @@ class RequiredWithEmptyArray( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi index 5837b696c3c..2065caffcab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi @@ -47,7 +47,7 @@ class RequiredWithEmptyArray( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py index 44d5a57cb52..fdf708b8da9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py @@ -64,7 +64,7 @@ class RequiredWithEscapedCharacters( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi index 44d5a57cb52..fdf708b8da9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi @@ -64,7 +64,7 @@ class RequiredWithEscapedCharacters( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py index 3b1fff2b2da..eed34c83c77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py @@ -54,7 +54,7 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( def __getitem__(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["alpha"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi index c69a079a1ce..c368777792a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi @@ -51,7 +51,7 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing( def __getitem__(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["alpha"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index 81337e0d909..0bf8e4f38f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -56,7 +56,7 @@ class SchemaForRequestBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi index 19113ee59e3..db0eb21cf2a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi @@ -54,7 +54,7 @@ class SchemaForRequestBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index e8354e980d3..5fe1ab8858c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -65,7 +65,7 @@ class SchemaForRequestBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi index 1d9cc51117b..6a4310ff68b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi @@ -63,7 +63,7 @@ class SchemaForRequestBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index 4646b38ac7c..b6134d3ebba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -55,7 +55,7 @@ class SchemaFor200ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi index d30c51c7702..46cf5681755 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi @@ -53,7 +53,7 @@ class SchemaFor200ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index 6a0627d60ce..36b840445d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -64,7 +64,7 @@ class SchemaFor200ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi index f2fb0c1b6a2..d3373697434 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class SchemaFor200ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py index b200829bbfc..d1607adb002 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py +++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py @@ -485,20 +485,78 @@ class Schema: """ pass +""" +import itertools +data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') +[v for v in itertools.combinations(data_types, 2)] +""" if typing.TYPE_CHECKING: + # qty 1 mixin + NoneMixin = NoneClass + FrozenDictMixin = frozendict.frozendict + TupleMixin = tuple StrMixin = str DecimalMixin = decimal.Decimal BoolMixin = BoolClass - NoneMixin = NoneClass - TupleMixin = tuple - FrozenDictMixin = frozendict.frozendict + # qty 2 mixin + class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): + pass + class NoneTupleMixin(NoneClass, tuple): + pass + class NoneStrMixin(NoneClass, str): + pass + class NoneDecimalMixin(NoneClass, decimal.Decimal): + pass + class NoneBoolMixin(NoneClass, bool): + passs + class FrozenDictTupleMixin(frozendict.frozendict, tuple): + pass + class FrozenDictStrMixin(frozendict.frozendict, str): + pass + class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): + pass + class FrozenDictBoolMixin(frozendict.frozendict, bool): + pass + class TupleStrMixin(tuple, str): + pass + class TupleDecimalMixin(tuple, decimal.Decimal): + pass + class TupleBoolMixin(tuple, bool): + pass + class StrDecimalMixin(str, decimal.Decimal): + pass + class StrBoolMixin(str, bool): + pass + class DecimalBoolMixin(decimal.Decimal, bool): + pass + # qty 6 + class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, bool): + pass else: + # qty 1 mixin + NoneMixin = object + FrozenDictMixin = object + TupleMixin = object StrMixin = object DecimalMixin = object BoolMixin = object - NoneMixin = object - TupleMixin = object - FrozenDictMixin = object + # qty 2 mixin + NoneFrozenDictMixin = object + NoneTupleMixin = object + NoneStrMixin = object + NoneDecimalMixin = object + NoneBoolMixin = object + FrozenDictTupleMixin = object + FrozenDictStrMixin = object + FrozenDictDecimalMixin = object + FrozenDictBoolMixin = object + TupleStrMixin = object + TupleDecimalMixin = object + TupleBoolMixin = object + StrDecimalMixin = object + StrBoolMixin = object + DecimalBoolMixin = object + NoneFrozenDictTupleStrDecimalBoolMixin = object class ValidatorBase: @@ -2084,7 +2142,8 @@ class AnyTypeSchema( StrBase, BoolBase, NoneBase, - Schema + Schema, + NoneFrozenDictTupleStrDecimalBoolMixin ): pass diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py index 7e82d85c150..1d6234a9b55 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py @@ -227,7 +227,7 @@ class AdditionalPropertiesClass( def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["map_property"], typing.Literal["map_of_map_property"], typing.Literal["anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_2"], typing.Literal["map_with_undeclared_properties_anytype_3"], typing.Literal["empty_map"], typing.Literal["map_with_undeclared_properties_string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi index 7e82d85c150..1d6234a9b55 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi @@ -227,7 +227,7 @@ class AdditionalPropertiesClass( def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["map_property"], typing.Literal["map_of_map_property"], typing.Literal["anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_2"], typing.Literal["map_with_undeclared_properties_anytype_3"], typing.Literal["empty_map"], typing.Literal["map_with_undeclared_properties_string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py index 517df714972..3ee46ac5c8c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py @@ -65,7 +65,7 @@ class Animal( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi index 517df714972..3ee46ac5c8c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi @@ -65,7 +65,7 @@ class Animal( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py index 5bab43b5ebe..7ab078eecd2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py @@ -58,7 +58,7 @@ class ApiResponse( def __getitem__(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["code"], typing.Literal["type"], typing.Literal["message"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi index 5bab43b5ebe..7ab078eecd2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi @@ -58,7 +58,7 @@ class ApiResponse( def __getitem__(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["code"], typing.Literal["type"], typing.Literal["message"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py index 92a98a940c7..9969ed9287d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py @@ -23,10 +23,11 @@ from petstore_api import schemas # noqa: F401 class Apple( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -82,7 +83,7 @@ class Apple( def __getitem__(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["cultivar"], typing.Literal["origin"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi index f2c6cd19bc5..0b3bfeb9752 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi @@ -23,10 +23,11 @@ from petstore_api import schemas # noqa: F401 class Apple( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -69,7 +70,7 @@ class Apple( def __getitem__(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["cultivar"], typing.Literal["origin"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py index ec569acae1d..2b16c7b7196 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py @@ -90,7 +90,7 @@ class ArrayOfArrayOfNumberOnly( def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayArrayNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi index ec569acae1d..2b16c7b7196 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi @@ -90,7 +90,7 @@ class ArrayOfArrayOfNumberOnly( def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayArrayNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py index 7dadf618b55..209978459bc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py @@ -68,7 +68,7 @@ class ArrayOfNumberOnly( def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi index 7dadf618b55..209978459bc 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi @@ -68,7 +68,7 @@ class ArrayOfNumberOnly( def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py index c1228a04993..765ebaee24d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py @@ -172,7 +172,7 @@ class ArrayTest( def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["array_of_string"], typing.Literal["array_array_of_integer"], typing.Literal["array_array_of_model"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi index c1228a04993..765ebaee24d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi @@ -172,7 +172,7 @@ class ArrayTest( def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["array_of_string"], typing.Literal["array_array_of_integer"], typing.Literal["array_array_of_model"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py index 0a42cb0cb83..d3c4f3fc4ae 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py @@ -49,7 +49,7 @@ class Banana( def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["lengthCm"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi index 0a42cb0cb83..d3c4f3fc4ae 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi @@ -49,7 +49,7 @@ class Banana( def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["lengthCm"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py index 0eb48cb842a..2fd7c981b47 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py @@ -63,7 +63,7 @@ class BasquePig( def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi index 0eb48cb842a..2fd7c981b47 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi @@ -63,7 +63,7 @@ class BasquePig( def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py index 6438772d5b0..479c99f42b6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py @@ -76,7 +76,7 @@ class Capitalization( def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["smallCamel"], typing.Literal["CapitalCamel"], typing.Literal["small_Snake"], typing.Literal["Capital_Snake"], typing.Literal["SCA_ETH_Flow_Points"], typing.Literal["ATT_NAME"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi index 6438772d5b0..479c99f42b6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi @@ -76,7 +76,7 @@ class Capitalization( def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["smallCamel"], typing.Literal["CapitalCamel"], typing.Literal["small_Snake"], typing.Literal["Capital_Snake"], typing.Literal["SCA_ETH_Flow_Points"], typing.Literal["ATT_NAME"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py index 8648a0be4ce..f8ea71c9da7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py @@ -55,7 +55,7 @@ class Cat( def __getitem__(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["declawed"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi index 8648a0be4ce..f8ea71c9da7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi @@ -55,7 +55,7 @@ class Cat( def __getitem__(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["declawed"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py index 190bc580584..84747a705d0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py @@ -55,7 +55,7 @@ class Category( def __getitem__(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["id"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi index 190bc580584..84747a705d0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi @@ -55,7 +55,7 @@ class Category( def __getitem__(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["id"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py index 8265523b6b2..f53633f2591 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py @@ -55,7 +55,7 @@ class ChildCat( def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi index 8265523b6b2..f53633f2591 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi @@ -55,7 +55,7 @@ class ChildCat( def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py index 4185f94ea2e..ef97f35650d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py @@ -49,7 +49,7 @@ class ClassModel( def __getitem__(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["_class"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi index 4185f94ea2e..ef97f35650d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi @@ -49,7 +49,7 @@ class ClassModel( def __getitem__(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["_class"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py index d16f6aac81c..24536cd26d7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py @@ -46,7 +46,7 @@ class Client( def __getitem__(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["client"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi index d16f6aac81c..24536cd26d7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi @@ -46,7 +46,7 @@ class Client( def __getitem__(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["client"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py index 3d25cd8a94c..654cd878561 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py @@ -69,7 +69,7 @@ class ComplexQuadrilateral( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi index 3d25cd8a94c..654cd878561 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi @@ -69,7 +69,7 @@ class ComplexQuadrilateral( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py index 0cbd72488fe..2084494a948 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py @@ -63,7 +63,7 @@ class DanishPig( def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi index 0cbd72488fe..2084494a948 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi @@ -63,7 +63,7 @@ class DanishPig( def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py index 4d654ca38af..513a99b96a8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py @@ -55,7 +55,7 @@ class Dog( def __getitem__(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["breed"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi index 4d654ca38af..513a99b96a8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi @@ -55,7 +55,7 @@ class Dog( def __getitem__(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["breed"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py index 4bcb43a549e..12661b0cd7f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py @@ -106,7 +106,7 @@ class Drawing( def __getitem__(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> 'Fruit': ... + def __getitem__(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi index 4bcb43a549e..12661b0cd7f 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi @@ -106,7 +106,7 @@ class Drawing( def __getitem__(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> 'Fruit': ... + def __getitem__(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py index b0245d74fd5..76472f40aed 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py @@ -114,7 +114,7 @@ class EnumArrays( def __getitem__(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["just_symbol"], typing.Literal["array_enum"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi index b0245d74fd5..76472f40aed 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi @@ -114,7 +114,7 @@ class EnumArrays( def __getitem__(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["just_symbol"], typing.Literal["array_enum"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py index ed6f7c47629..af481d8c248 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py @@ -209,7 +209,7 @@ class EnumTest( def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["enum_string_required"], typing.Literal["enum_string"], typing.Literal["enum_integer"], typing.Literal["enum_number"], typing.Literal["stringEnum"], typing.Literal["IntegerEnum"], typing.Literal["StringEnumWithDefaultValue"], typing.Literal["IntegerEnumWithDefaultValue"], typing.Literal["IntegerEnumOneValue"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi index ed6f7c47629..af481d8c248 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi @@ -209,7 +209,7 @@ class EnumTest( def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["enum_string_required"], typing.Literal["enum_string"], typing.Literal["enum_integer"], typing.Literal["enum_number"], typing.Literal["stringEnum"], typing.Literal["IntegerEnum"], typing.Literal["StringEnumWithDefaultValue"], typing.Literal["IntegerEnumWithDefaultValue"], typing.Literal["IntegerEnumOneValue"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py index 39800bf5139..fc8f11cbe45 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py @@ -69,7 +69,7 @@ class EquilateralTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi index 39800bf5139..fc8f11cbe45 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi @@ -69,7 +69,7 @@ class EquilateralTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py index 7fdfaf2a996..fac2e4402e1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py @@ -48,7 +48,7 @@ class File( def __getitem__(self, name: typing.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["sourceURI"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi index 7fdfaf2a996..fac2e4402e1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi @@ -48,7 +48,7 @@ class File( def __getitem__(self, name: typing.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["sourceURI"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py index ccb889f0273..eb7c46110c9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py @@ -82,7 +82,7 @@ class FileSchemaTestClass( def __getitem__(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["file"], typing.Literal["files"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi index ccb889f0273..eb7c46110c9 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi @@ -82,7 +82,7 @@ class FileSchemaTestClass( def __getitem__(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["file"], typing.Literal["files"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py index 2f17954a9a2..5d3e94933f4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py @@ -46,7 +46,7 @@ class Foo( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi index 2f17954a9a2..5d3e94933f4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi @@ -46,7 +46,7 @@ class Foo( def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py index 7d05539b2f0..1030ad166a0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py @@ -286,7 +286,7 @@ class FormatTest( def __getitem__(self, name: typing.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["date"], typing.Literal["number"], typing.Literal["password"], typing.Literal["byte"], typing.Literal["integer"], typing.Literal["int32"], typing.Literal["int32withValidations"], typing.Literal["int64"], typing.Literal["float"], typing.Literal["float32"], typing.Literal["double"], typing.Literal["float64"], typing.Literal["arrayWithUniqueItems"], typing.Literal["string"], typing.Literal["binary"], typing.Literal["dateTime"], typing.Literal["uuid"], typing.Literal["uuidNoExample"], typing.Literal["pattern_with_digits"], typing.Literal["pattern_with_digits_and_delimiter"], typing.Literal["noneProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi index f3436513011..981024946b8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi @@ -238,7 +238,7 @@ class FormatTest( def __getitem__(self, name: typing.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["date"], typing.Literal["number"], typing.Literal["password"], typing.Literal["byte"], typing.Literal["integer"], typing.Literal["int32"], typing.Literal["int32withValidations"], typing.Literal["int64"], typing.Literal["float"], typing.Literal["float32"], typing.Literal["double"], typing.Literal["float64"], typing.Literal["arrayWithUniqueItems"], typing.Literal["string"], typing.Literal["binary"], typing.Literal["dateTime"], typing.Literal["uuid"], typing.Literal["uuidNoExample"], typing.Literal["pattern_with_digits"], typing.Literal["pattern_with_digits_and_delimiter"], typing.Literal["noneProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py index 3051e79d67b..f21cc0d077a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py @@ -63,7 +63,7 @@ class Fruit( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi index 3051e79d67b..f21cc0d077a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi @@ -63,7 +63,7 @@ class Fruit( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py index ae974b9a622..fdee0df03c4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py @@ -63,7 +63,7 @@ class GmFruit( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi index ae974b9a622..fdee0df03c4 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi @@ -63,7 +63,7 @@ class GmFruit( def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["color"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py index 8e9703fb794..f980cccd181 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py @@ -59,7 +59,7 @@ class GrandparentAnimal( def __getitem__(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["pet_type"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi index 8e9703fb794..f980cccd181 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi @@ -59,7 +59,7 @@ class GrandparentAnimal( def __getitem__(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["pet_type"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py index cd7996affea..abd6ec67383 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py @@ -52,7 +52,7 @@ class HasOnlyReadOnly( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi index cd7996affea..abd6ec67383 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi @@ -52,7 +52,7 @@ class HasOnlyReadOnly( def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py index fce365ed526..5ef40af0abb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py @@ -42,7 +42,8 @@ class HealthCheckResult( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -67,7 +68,7 @@ class HealthCheckResult( def __getitem__(self, name: typing.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["NullableMessage"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi index fce365ed526..5ef40af0abb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi @@ -42,7 +42,8 @@ class HealthCheckResult( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -67,7 +68,7 @@ class HealthCheckResult( def __getitem__(self, name: typing.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["NullableMessage"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py index c7804f8873b..fd418c5fb9a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py @@ -69,7 +69,7 @@ class IsoscelesTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi index c7804f8873b..fd418c5fb9a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi @@ -69,7 +69,7 @@ class IsoscelesTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py index 762f20830f3..01e26790ec0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py @@ -208,7 +208,7 @@ class MapTest( def __getitem__(self, name: typing.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["map_map_of_string"], typing.Literal["map_of_enum_string"], typing.Literal["direct_map"], typing.Literal["indirect_map"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi index 762f20830f3..01e26790ec0 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi @@ -208,7 +208,7 @@ class MapTest( def __getitem__(self, name: typing.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["map_map_of_string"], typing.Literal["map_of_enum_string"], typing.Literal["direct_map"], typing.Literal["indirect_map"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py index a86119f3f4d..a00aad9c6b8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py @@ -92,7 +92,7 @@ class MixedPropertiesAndAdditionalPropertiesClass( def __getitem__(self, name: typing.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["uuid"], typing.Literal["dateTime"], typing.Literal["map"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi index a86119f3f4d..a00aad9c6b8 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi @@ -92,7 +92,7 @@ class MixedPropertiesAndAdditionalPropertiesClass( def __getitem__(self, name: typing.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["uuid"], typing.Literal["dateTime"], typing.Literal["map"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py index 98a76ed28ad..6f684c48055 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py @@ -54,7 +54,7 @@ class Model200Response( def __getitem__(self, name: typing.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["class"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi index 98a76ed28ad..6f684c48055 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi @@ -54,7 +54,7 @@ class Model200Response( def __getitem__(self, name: typing.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["class"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py index 39615a986f0..ee4bc9c9255 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py @@ -48,7 +48,7 @@ class ModelReturn( def __getitem__(self, name: typing.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["return"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi index 39615a986f0..ee4bc9c9255 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi @@ -48,7 +48,7 @@ class ModelReturn( def __getitem__(self, name: typing.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["return"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py index 9342d2d228b..bc32b908938 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py @@ -60,7 +60,7 @@ class Money( def __getitem__(self, name: typing.Literal["currency"]) -> 'Currency': ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["amount"], typing.Literal["currency"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi index 9342d2d228b..bc32b908938 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi @@ -60,7 +60,7 @@ class Money( def __getitem__(self, name: typing.Literal["currency"]) -> 'Currency': ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["amount"], typing.Literal["currency"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py index 0019eb5c6bc..5e2454414ae 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py @@ -63,7 +63,7 @@ class Name( def __getitem__(self, name: typing.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["snake_case"], typing.Literal["property"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi index 0019eb5c6bc..5e2454414ae 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi @@ -63,7 +63,7 @@ class Name( def __getitem__(self, name: typing.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["snake_case"], typing.Literal["property"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py index e68f292ad1d..9867d1241f3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py @@ -40,7 +40,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), schemas.IntBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneDecimalMixin ): @@ -60,7 +61,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), schemas.NumberBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneDecimalMixin ): @@ -80,7 +82,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, schemas.BoolClass, ]), schemas.BoolBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneBoolMixin ): @@ -100,7 +103,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -120,7 +124,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.DateBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -140,7 +145,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.DateTimeBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -157,10 +163,11 @@ class NullableClass( class array_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, tuple, ]), schemas.ListBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneTupleMixin ): @@ -181,10 +188,11 @@ class NullableClass( class array_and_items_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, tuple, ]), schemas.ListBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneTupleMixin ): @@ -192,10 +200,11 @@ class NullableClass( class items( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -247,10 +256,11 @@ class NullableClass( class items( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -296,10 +306,11 @@ class NullableClass( class object_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -331,10 +342,11 @@ class NullableClass( class object_and_items_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -342,10 +354,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -408,10 +421,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -479,10 +493,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -562,7 +577,7 @@ class NullableClass( def __getitem__(self, name: typing.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi index e68f292ad1d..9867d1241f3 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi @@ -40,7 +40,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), schemas.IntBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneDecimalMixin ): @@ -60,7 +61,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, decimal.Decimal, ]), schemas.NumberBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneDecimalMixin ): @@ -80,7 +82,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, schemas.BoolClass, ]), schemas.BoolBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneBoolMixin ): @@ -100,7 +103,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -120,7 +124,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.DateBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -140,7 +145,8 @@ class NullableClass( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.DateTimeBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): @@ -157,10 +163,11 @@ class NullableClass( class array_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, tuple, ]), schemas.ListBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneTupleMixin ): @@ -181,10 +188,11 @@ class NullableClass( class array_and_items_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[tuple, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, tuple, ]), schemas.ListBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneTupleMixin ): @@ -192,10 +200,11 @@ class NullableClass( class items( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -247,10 +256,11 @@ class NullableClass( class items( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -296,10 +306,11 @@ class NullableClass( class object_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -331,10 +342,11 @@ class NullableClass( class object_and_items_nullable_prop( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -342,10 +354,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -408,10 +421,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -479,10 +493,11 @@ class NullableClass( class additional_properties( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -562,7 +577,7 @@ class NullableClass( def __getitem__(self, name: typing.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py index fc243405ba8..9b84ba96d56 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py @@ -26,7 +26,8 @@ class NullableString( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi index fc243405ba8..9b84ba96d56 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi @@ -26,7 +26,8 @@ class NullableString( schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, str, ]), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py index 1778356d1c2..99b42f92f30 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py @@ -46,7 +46,7 @@ class NumberOnly( def __getitem__(self, name: typing.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["JustNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi index 1778356d1c2..99b42f92f30 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi @@ -46,7 +46,7 @@ class NumberOnly( def __getitem__(self, name: typing.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["JustNumber"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py index 5768b35e1f8..3eb2cbcebf2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py @@ -64,7 +64,7 @@ class ObjectModelWithRefProps( def __getitem__(self, name: typing.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["myNumber"], typing.Literal["myString"], typing.Literal["myBoolean"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi index 5768b35e1f8..3eb2cbcebf2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi @@ -64,7 +64,7 @@ class ObjectModelWithRefProps( def __getitem__(self, name: typing.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["myNumber"], typing.Literal["myString"], typing.Literal["myBoolean"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py index ec116f74a27..6ff366b0c6e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py @@ -62,7 +62,7 @@ class ObjectWithDecimalProperties( def __getitem__(self, name: typing.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["length"], typing.Literal["width"], typing.Literal["cost"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi index ec116f74a27..6ff366b0c6e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi @@ -62,7 +62,7 @@ class ObjectWithDecimalProperties( def __getitem__(self, name: typing.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["length"], typing.Literal["width"], typing.Literal["cost"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py index 1091c312c7a..702906f32bd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py @@ -60,7 +60,7 @@ class ObjectWithDifficultlyNamedProps( def __getitem__(self, name: typing.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["123-list"], typing.Literal["$special[property.name]"], typing.Literal["123Number"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi index 1091c312c7a..702906f32bd 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi @@ -60,7 +60,7 @@ class ObjectWithDifficultlyNamedProps( def __getitem__(self, name: typing.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["123-list"], typing.Literal["$special[property.name]"], typing.Literal["123Number"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py index 0f4030ff044..5ed1a0f44c7 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py @@ -101,7 +101,7 @@ class ObjectWithInlineCompositionProperty( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi index eb75c0d6a1d..482a92f4644 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi @@ -98,7 +98,7 @@ class ObjectWithInlineCompositionProperty( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py index 36e6ad10a77..ed9036a523e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py @@ -102,7 +102,7 @@ class Order( def __getitem__(self, name: typing.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["petId"], typing.Literal["quantity"], typing.Literal["shipDate"], typing.Literal["status"], typing.Literal["complete"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi index 36e6ad10a77..ed9036a523e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi @@ -102,7 +102,7 @@ class Order( def __getitem__(self, name: typing.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["petId"], typing.Literal["quantity"], typing.Literal["shipDate"], typing.Literal["status"], typing.Literal["complete"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py index d66c912285c..c768fc11277 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py @@ -160,7 +160,7 @@ class Pet( def __getitem__(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["photoUrls"], typing.Literal["name"], typing.Literal["id"], typing.Literal["category"], typing.Literal["tags"], typing.Literal["status"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi index d66c912285c..c768fc11277 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi @@ -160,7 +160,7 @@ class Pet( def __getitem__(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["photoUrls"], typing.Literal["name"], typing.Literal["id"], typing.Literal["category"], typing.Literal["tags"], typing.Literal["status"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py index 2cf3dd3d5a3..94be5c559bb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py @@ -58,7 +58,7 @@ class Player( def __getitem__(self, name: typing.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["enemyPlayer"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi index 2cf3dd3d5a3..94be5c559bb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi @@ -58,7 +58,7 @@ class Player( def __getitem__(self, name: typing.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["enemyPlayer"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py index 095c8a4d9a7..b12deeb61ba 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py @@ -71,7 +71,7 @@ class QuadrilateralInterface( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["shapeType"], typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi index 095c8a4d9a7..b12deeb61ba 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi @@ -71,7 +71,7 @@ class QuadrilateralInterface( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["shapeType"], typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py index 59a34b21291..4fccf5035cf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py @@ -52,7 +52,7 @@ class ReadOnlyFirst( def __getitem__(self, name: typing.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["baz"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi index 59a34b21291..4fccf5035cf 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi @@ -52,7 +52,7 @@ class ReadOnlyFirst( def __getitem__(self, name: typing.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["baz"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py index 2d0e458ef4c..6acf0c6d665 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py @@ -69,7 +69,7 @@ class ScaleneTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi index 2d0e458ef4c..6acf0c6d665 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi @@ -69,7 +69,7 @@ class ScaleneTriangle( def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py index 429b019c27c..6be184d7954 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py @@ -69,7 +69,7 @@ class SimpleQuadrilateral( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi index 429b019c27c..6be184d7954 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi @@ -69,7 +69,7 @@ class SimpleQuadrilateral( def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py index b5cdc5ce9a0..08dae21dbf1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py @@ -48,7 +48,7 @@ class SpecialModelName( def __getitem__(self, name: typing.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi index b5cdc5ce9a0..08dae21dbf1 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi @@ -48,7 +48,7 @@ class SpecialModelName( def __getitem__(self, name: typing.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py index 227fcdce346..401b6a0c9ad 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py @@ -37,7 +37,8 @@ class StringEnum( ), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi index 227fcdce346..401b6a0c9ad 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi @@ -37,7 +37,8 @@ class StringEnum( ), schemas.StrBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneStrMixin ): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py index 394242fa66a..d532f9e2f06 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py @@ -52,7 +52,7 @@ class Tag( def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["name"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi index 394242fa66a..d532f9e2f06 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi @@ -52,7 +52,7 @@ class Tag( def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["name"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py index b27482dbdcb..8befb757aca 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py @@ -71,7 +71,7 @@ class TriangleInterface( def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["shapeType"], typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi index b27482dbdcb..8befb757aca 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi @@ -71,7 +71,7 @@ class TriangleInterface( def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["shapeType"], typing.Literal["triangleType"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py index dd9d99be429..48e53c4ec41 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py @@ -46,10 +46,11 @@ class User( class objectWithNoDeclaredPropsNullable( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -184,7 +185,7 @@ class User( def __getitem__(self, name: typing.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["username"], typing.Literal["firstName"], typing.Literal["lastName"], typing.Literal["email"], typing.Literal["password"], typing.Literal["phone"], typing.Literal["userStatus"], typing.Literal["objectWithNoDeclaredProps"], typing.Literal["objectWithNoDeclaredPropsNullable"], typing.Literal["anyTypeProp"], typing.Literal["anyTypeExceptNullProp"], typing.Literal["anyTypePropNullable"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi index dd9d99be429..48e53c4ec41 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi @@ -46,10 +46,11 @@ class User( class objectWithNoDeclaredPropsNullable( - schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]), + schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]), schemas.DictBase, schemas.NoneBase, - schemas.Schema + schemas.Schema, + schemas.NoneFrozenDictMixin ): @@ -184,7 +185,7 @@ class User( def __getitem__(self, name: typing.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["id"], typing.Literal["username"], typing.Literal["firstName"], typing.Literal["lastName"], typing.Literal["email"], typing.Literal["password"], typing.Literal["phone"], typing.Literal["userStatus"], typing.Literal["objectWithNoDeclaredProps"], typing.Literal["objectWithNoDeclaredPropsNullable"], typing.Literal["anyTypeProp"], typing.Literal["anyTypeExceptNullProp"], typing.Literal["anyTypePropNullable"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py index 1a82ec7ca73..9e7f4f0931b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py @@ -75,7 +75,7 @@ class Whale( def __getitem__(self, name: typing.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["hasBaleen"], typing.Literal["hasTeeth"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi index 1a82ec7ca73..9e7f4f0931b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi @@ -75,7 +75,7 @@ class Whale( def __getitem__(self, name: typing.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["hasBaleen"], typing.Literal["hasTeeth"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py index 35f65c5a774..71e5112c3a2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py @@ -95,7 +95,7 @@ class Zebra( def __getitem__(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["type"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi index 35f65c5a774..71e5112c3a2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi @@ -95,7 +95,7 @@ class Zebra( def __getitem__(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["type"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py index 7f250906936..cf215ea6c7e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py @@ -206,7 +206,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["number"], typing.Literal["pattern_without_delimiter"], typing.Literal["byte"], typing.Literal["double"], typing.Literal["integer"], typing.Literal["int32"], typing.Literal["int64"], typing.Literal["float"], typing.Literal["string"], typing.Literal["binary"], typing.Literal["date"], typing.Literal["dateTime"], typing.Literal["password"], typing.Literal["callback"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi index cd999ca84fb..1ac1ac89bee 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi @@ -168,7 +168,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["number"], typing.Literal["pattern_without_delimiter"], typing.Literal["byte"], typing.Literal["double"], typing.Literal["integer"], typing.Literal["int32"], typing.Literal["int64"], typing.Literal["float"], typing.Literal["string"], typing.Literal["binary"], typing.Literal["date"], typing.Literal["dateTime"], typing.Literal["password"], typing.Literal["callback"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py index e5d22f9ab68..b2f992e5d2b 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py @@ -379,7 +379,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["enum_form_string_array"], typing.Literal["enum_form_string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi index e0083004ff0..98acb7f8c65 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi @@ -303,7 +303,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["enum_form_string_array"], typing.Literal["enum_form_string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py index 403d5e0024a..ef2b72e2a05 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py @@ -158,7 +158,7 @@ class CompositionInPropertySchema( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor @@ -347,7 +347,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor @@ -514,7 +514,7 @@ class SchemaFor200ResponseBodyMultipartFormData( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi index a2871eb4a6c..174f922fceb 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi @@ -150,7 +150,7 @@ class CompositionInPropertySchema( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor @@ -302,7 +302,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor @@ -453,7 +453,7 @@ class SchemaFor200ResponseBodyMultipartFormData( def __getitem__(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["someProp"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py index c089b055e5f..64c19786590 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py @@ -57,7 +57,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["param"], typing.Literal["param2"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi index 27f31256642..190f97b8121 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi @@ -55,7 +55,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["param"], typing.Literal["param2"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py index 5af4877cc29..951bc0535d2 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py @@ -46,7 +46,7 @@ class MapBeanSchema( def __getitem__(self, name: typing.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["keyword"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi index 2cecd9c4245..b77f2957fc6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi @@ -44,7 +44,7 @@ class MapBeanSchema( def __getitem__(self, name: typing.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["keyword"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index 65294c592a1..e53a792a055 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -84,7 +84,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["requiredFile"], typing.Literal["additionalMetadata"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index 323f57ea425..d28eeec2f85 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -58,7 +58,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["requiredFile"], typing.Literal["additionalMetadata"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py index d0af4bc4cd2..66471d7d4da 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py @@ -58,7 +58,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["file"], typing.Literal["additionalMetadata"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi index da89d3f5c69..64119df7df6 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi @@ -56,7 +56,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["file"], typing.Literal["additionalMetadata"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py index 0aef11dec7a..b7169462522 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py @@ -71,7 +71,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["files"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi index f2eb96c6938..8c94db7570c 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi @@ -69,7 +69,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["files"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py index 2e94dfcea1e..5c16dfdec5a 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py @@ -52,7 +52,7 @@ class SchemaFor0ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi index 013e9ce0ac4..2d16be94619 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi @@ -50,7 +50,7 @@ class SchemaFor0ResponseBodyApplicationJson( def __getitem__(self, name: typing.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["string"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py index 000178775af..d5ca2de0157 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py @@ -79,7 +79,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["status"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi index e064f4ab042..768980d7f60 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi @@ -53,7 +53,7 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( def __getitem__(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["status"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py index 25b3076b387..f7d0b03035d 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -81,7 +81,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["additionalMetadata"], typing.Literal["file"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 93e7eac1e2c..644d4f65844 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -55,7 +55,7 @@ class SchemaForRequestBodyMultipartFormData( def __getitem__(self, name: typing.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ... @typing.overload - def __getitem__(self, name: str) -> MetaOapg.additional_properties: ... + def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ... def __getitem__(self, name: typing.Union[str, typing.Literal["additionalMetadata"], typing.Literal["file"], ]): # dict_instance[name] accessor diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py index 3f4f770f61f..e79e2b10b4e 100644 --- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py +++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py @@ -485,20 +485,78 @@ class Schema: """ pass +""" +import itertools +data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool') +[v for v in itertools.combinations(data_types, 2)] +""" if typing.TYPE_CHECKING: + # qty 1 mixin + NoneMixin = NoneClass + FrozenDictMixin = frozendict.frozendict + TupleMixin = tuple StrMixin = str DecimalMixin = decimal.Decimal BoolMixin = BoolClass - NoneMixin = NoneClass - TupleMixin = tuple - FrozenDictMixin = frozendict.frozendict + # qty 2 mixin + class NoneFrozenDictMixin(NoneClass, frozendict.frozendict): + pass + class NoneTupleMixin(NoneClass, tuple): + pass + class NoneStrMixin(NoneClass, str): + pass + class NoneDecimalMixin(NoneClass, decimal.Decimal): + pass + class NoneBoolMixin(NoneClass, bool): + passs + class FrozenDictTupleMixin(frozendict.frozendict, tuple): + pass + class FrozenDictStrMixin(frozendict.frozendict, str): + pass + class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal): + pass + class FrozenDictBoolMixin(frozendict.frozendict, bool): + pass + class TupleStrMixin(tuple, str): + pass + class TupleDecimalMixin(tuple, decimal.Decimal): + pass + class TupleBoolMixin(tuple, bool): + pass + class StrDecimalMixin(str, decimal.Decimal): + pass + class StrBoolMixin(str, bool): + pass + class DecimalBoolMixin(decimal.Decimal, bool): + pass + # qty 6 + class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, bool): + pass else: + # qty 1 mixin + NoneMixin = object + FrozenDictMixin = object + TupleMixin = object StrMixin = object DecimalMixin = object BoolMixin = object - NoneMixin = object - TupleMixin = object - FrozenDictMixin = object + # qty 2 mixin + NoneFrozenDictMixin = object + NoneTupleMixin = object + NoneStrMixin = object + NoneDecimalMixin = object + NoneBoolMixin = object + FrozenDictTupleMixin = object + FrozenDictStrMixin = object + FrozenDictDecimalMixin = object + FrozenDictBoolMixin = object + TupleStrMixin = object + TupleDecimalMixin = object + TupleBoolMixin = object + StrDecimalMixin = object + StrBoolMixin = object + DecimalBoolMixin = object + NoneFrozenDictTupleStrDecimalBoolMixin = object class ValidatorBase: @@ -2084,7 +2142,8 @@ class AnyTypeSchema( StrBase, BoolBase, NoneBase, - Schema + Schema, + NoneFrozenDictTupleStrDecimalBoolMixin ): pass