From 3b37edde84883a636b14995a2eff99325d7f21ce Mon Sep 17 00:00:00 2001 From: timonrieger Date: Sun, 8 Feb 2026 00:17:36 +0100 Subject: [PATCH 1/8] restore full python 3.9 support --- .../src/main/resources/python/configuration.mustache | 7 ++++++- .../src/main/resources/python/exceptions.mustache | 7 ++++++- .../src/main/resources/python/model_anyof.mustache | 7 ++++++- .../src/main/resources/python/model_enum.mustache | 6 +++++- .../src/main/resources/python/model_generic.mustache | 7 ++++++- .../src/main/resources/python/model_oneof.mustache | 7 ++++++- .../src/main/resources/python/pyproject.mustache | 4 ++-- .../src/main/resources/python/setup.mustache | 2 +- .../README.md | 2 +- .../openapi_client/configuration.py | 7 ++++++- .../openapi_client/exceptions.py | 7 ++++++- .../openapi_client/models/bird.py | 7 ++++++- .../openapi_client/models/category.py | 7 ++++++- .../openapi_client/models/data_query.py | 7 ++++++- .../openapi_client/models/default_value.py | 7 ++++++- .../openapi_client/models/number_properties_only.py | 7 ++++++- .../openapi_client/models/pet.py | 7 ++++++- .../openapi_client/models/query.py | 7 ++++++- .../openapi_client/models/string_enum_ref.py | 6 +++++- .../openapi_client/models/tag.py | 7 ++++++- .../models/test_form_object_multipart_request_marker.py | 7 ++++++- ...ct_explode_true_object_all_of_query_object_parameter.py | 7 ++++++- ...orm_explode_true_array_string_query_object_parameter.py | 7 ++++++- .../pyproject.toml | 2 +- .../setup.py | 2 +- samples/client/echo_api/python/README.md | 2 +- .../client/echo_api/python/openapi_client/configuration.py | 7 ++++++- .../client/echo_api/python/openapi_client/exceptions.py | 7 ++++++- .../client/echo_api/python/openapi_client/models/bird.py | 7 ++++++- .../echo_api/python/openapi_client/models/category.py | 7 ++++++- .../echo_api/python/openapi_client/models/data_query.py | 7 ++++++- .../echo_api/python/openapi_client/models/default_value.py | 7 ++++++- .../python/openapi_client/models/number_properties_only.py | 7 ++++++- .../client/echo_api/python/openapi_client/models/pet.py | 7 ++++++- .../client/echo_api/python/openapi_client/models/query.py | 7 ++++++- .../python/openapi_client/models/string_enum_ref.py | 6 +++++- .../client/echo_api/python/openapi_client/models/tag.py | 7 ++++++- .../models/test_form_object_multipart_request_marker.py | 7 ++++++- ...ct_explode_true_object_all_of_query_object_parameter.py | 7 ++++++- ...orm_explode_true_array_string_query_object_parameter.py | 7 ++++++- samples/client/echo_api/python/pyproject.toml | 2 +- samples/client/echo_api/python/setup.py | 2 +- samples/openapi3/client/petstore/python-aiohttp/README.md | 2 +- .../petstore/python-aiohttp/petstore_api/configuration.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/exceptions.py | 7 ++++++- .../petstore_api/models/additional_properties_any_type.py | 7 ++++++- .../petstore_api/models/additional_properties_class.py | 7 ++++++- .../petstore_api/models/additional_properties_object.py | 7 ++++++- .../models/additional_properties_with_description_only.py | 7 ++++++- .../petstore_api/models/all_of_super_model.py | 7 ++++++- .../petstore_api/models/all_of_with_single_ref.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/animal.py | 7 ++++++- .../python-aiohttp/petstore_api/models/any_of_color.py | 7 ++++++- .../python-aiohttp/petstore_api/models/any_of_pig.py | 7 ++++++- .../petstore_api/models/array_of_array_of_model.py | 7 ++++++- .../petstore_api/models/array_of_array_of_number_only.py | 7 ++++++- .../petstore_api/models/array_of_number_only.py | 7 ++++++- .../python-aiohttp/petstore_api/models/array_test.py | 7 ++++++- .../petstore_api/models/base_discriminator.py | 7 ++++++- .../python-aiohttp/petstore_api/models/basque_pig.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/bathing.py | 7 ++++++- .../python-aiohttp/petstore_api/models/capitalization.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/cat.py | 7 ++++++- .../python-aiohttp/petstore_api/models/category.py | 7 ++++++- .../petstore_api/models/circular_all_of_ref.py | 7 ++++++- .../petstore_api/models/circular_reference_model.py | 7 ++++++- .../python-aiohttp/petstore_api/models/class_model.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/client.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/color.py | 7 ++++++- .../python-aiohttp/petstore_api/models/creature.py | 7 ++++++- .../python-aiohttp/petstore_api/models/creature_info.py | 7 ++++++- .../python-aiohttp/petstore_api/models/danish_pig.py | 7 ++++++- .../petstore_api/models/data_output_format.py | 6 +++++- .../petstore_api/models/deprecated_object.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_sub.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_super.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/dog.py | 7 ++++++- .../python-aiohttp/petstore_api/models/dummy_model.py | 7 ++++++- .../python-aiohttp/petstore_api/models/enum_arrays.py | 7 ++++++- .../python-aiohttp/petstore_api/models/enum_class.py | 6 +++++- .../petstore_api/models/enum_number_vendor_ext.py | 6 +++++- .../petstore_api/models/enum_ref_with_default_value.py | 7 ++++++- .../python-aiohttp/petstore_api/models/enum_string1.py | 6 +++++- .../python-aiohttp/petstore_api/models/enum_string2.py | 6 +++++- .../petstore_api/models/enum_string_vendor_ext.py | 6 +++++- .../python-aiohttp/petstore_api/models/enum_test.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/feeding.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/file.py | 7 ++++++- .../petstore_api/models/file_schema_test_class.py | 7 ++++++- .../python-aiohttp/petstore_api/models/first_ref.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/foo.py | 7 ++++++- .../petstore_api/models/foo_get_default_response.py | 7 ++++++- .../python-aiohttp/petstore_api/models/format_test.py | 7 ++++++- .../petstore_api/models/has_only_read_only.py | 7 ++++++- .../petstore_api/models/health_check_result.py | 7 ++++++- .../python-aiohttp/petstore_api/models/hunting_dog.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/info.py | 7 ++++++- .../petstore_api/models/inner_dict_with_property.py | 7 ++++++- .../python-aiohttp/petstore_api/models/input_all_of.py | 7 ++++++- .../python-aiohttp/petstore_api/models/int_or_string.py | 7 ++++++- .../python-aiohttp/petstore_api/models/list_class.py | 7 ++++++- .../petstore_api/models/map_of_array_of_model.py | 7 ++++++- .../python-aiohttp/petstore_api/models/map_test.py | 7 ++++++- .../mixed_properties_and_additional_properties_class.py | 7 ++++++- .../petstore_api/models/model200_response.py | 7 ++++++- .../petstore_api/models/model_api_response.py | 7 ++++++- .../python-aiohttp/petstore_api/models/model_field.py | 7 ++++++- .../python-aiohttp/petstore_api/models/model_return.py | 7 ++++++- .../python-aiohttp/petstore_api/models/multi_arrays.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/name.py | 7 ++++++- .../python-aiohttp/petstore_api/models/nullable_class.py | 7 ++++++- .../petstore_api/models/nullable_property.py | 7 ++++++- .../python-aiohttp/petstore_api/models/number_only.py | 7 ++++++- .../models/object_to_test_additional_properties.py | 7 ++++++- .../petstore_api/models/object_with_deprecated_fields.py | 7 ++++++- .../petstore_api/models/one_of_enum_string.py | 6 +++++- .../petstore/python-aiohttp/petstore_api/models/order.py | 7 ++++++- .../python-aiohttp/petstore_api/models/outer_composite.py | 7 ++++++- .../python-aiohttp/petstore_api/models/outer_enum.py | 6 +++++- .../petstore_api/models/outer_enum_default_value.py | 6 +++++- .../petstore_api/models/outer_enum_integer.py | 6 +++++- .../models/outer_enum_integer_default_value.py | 6 +++++- .../petstore_api/models/outer_object_with_enum_property.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/parent.py | 7 ++++++- .../petstore_api/models/parent_with_optional_dict.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/pet.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/pig.py | 7 ++++++- .../python-aiohttp/petstore_api/models/pony_sizes.py | 7 ++++++- .../python-aiohttp/petstore_api/models/poop_cleaning.py | 7 ++++++- .../python-aiohttp/petstore_api/models/primitive_string.py | 7 ++++++- .../python-aiohttp/petstore_api/models/property_map.py | 7 ++++++- .../petstore_api/models/property_name_collision.py | 7 ++++++- .../python-aiohttp/petstore_api/models/read_only_first.py | 7 ++++++- .../petstore_api/models/second_circular_all_of_ref.py | 7 ++++++- .../python-aiohttp/petstore_api/models/second_ref.py | 7 ++++++- .../petstore_api/models/self_reference_model.py | 7 ++++++- .../python-aiohttp/petstore_api/models/single_ref_type.py | 6 +++++- .../petstore_api/models/special_character_enum.py | 6 +++++- .../petstore_api/models/special_model_name.py | 7 ++++++- .../python-aiohttp/petstore_api/models/special_name.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/tag.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/task.py | 7 ++++++- .../python-aiohttp/petstore_api/models/task_activity.py | 7 ++++++- .../python-aiohttp/petstore_api/models/test_enum.py | 6 +++++- .../petstore_api/models/test_enum_with_default.py | 6 +++++- .../models/test_error_responses_with_model400_response.py | 7 ++++++- .../models/test_error_responses_with_model404_response.py | 7 ++++++- .../test_inline_freeform_additional_properties_request.py | 7 ++++++- .../petstore_api/models/test_model_with_enum_default.py | 7 ++++++- .../test_object_for_multipart_requests_request_marker.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/tiger.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/type.py | 6 +++++- .../unnamed_dict_with_additional_model_list_properties.py | 7 ++++++- .../unnamed_dict_with_additional_string_list_properties.py | 7 ++++++- ...pload_file_with_additional_properties_request_object.py | 7 ++++++- .../petstore/python-aiohttp/petstore_api/models/user.py | 7 ++++++- .../petstore_api/models/with_nested_one_of.py | 7 ++++++- .../openapi3/client/petstore/python-aiohttp/pyproject.toml | 2 +- samples/openapi3/client/petstore/python-aiohttp/setup.py | 2 +- samples/openapi3/client/petstore/python-httpx/README.md | 2 +- .../petstore/python-httpx/petstore_api/configuration.py | 7 ++++++- .../petstore/python-httpx/petstore_api/exceptions.py | 7 ++++++- .../petstore_api/models/additional_properties_any_type.py | 7 ++++++- .../petstore_api/models/additional_properties_class.py | 7 ++++++- .../petstore_api/models/additional_properties_object.py | 7 ++++++- .../models/additional_properties_with_description_only.py | 7 ++++++- .../python-httpx/petstore_api/models/all_of_super_model.py | 7 ++++++- .../petstore_api/models/all_of_with_single_ref.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/animal.py | 7 ++++++- .../python-httpx/petstore_api/models/any_of_color.py | 7 ++++++- .../python-httpx/petstore_api/models/any_of_pig.py | 7 ++++++- .../petstore_api/models/array_of_array_of_model.py | 7 ++++++- .../petstore_api/models/array_of_array_of_number_only.py | 7 ++++++- .../petstore_api/models/array_of_number_only.py | 7 ++++++- .../python-httpx/petstore_api/models/array_test.py | 7 ++++++- .../python-httpx/petstore_api/models/base_discriminator.py | 7 ++++++- .../python-httpx/petstore_api/models/basque_pig.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/bathing.py | 7 ++++++- .../python-httpx/petstore_api/models/capitalization.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/cat.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/category.py | 7 ++++++- .../petstore_api/models/circular_all_of_ref.py | 7 ++++++- .../petstore_api/models/circular_reference_model.py | 7 ++++++- .../python-httpx/petstore_api/models/class_model.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/client.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/color.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/creature.py | 7 ++++++- .../python-httpx/petstore_api/models/creature_info.py | 7 ++++++- .../python-httpx/petstore_api/models/danish_pig.py | 7 ++++++- .../python-httpx/petstore_api/models/data_output_format.py | 6 +++++- .../python-httpx/petstore_api/models/deprecated_object.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_sub.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_super.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/dog.py | 7 ++++++- .../python-httpx/petstore_api/models/dummy_model.py | 7 ++++++- .../python-httpx/petstore_api/models/enum_arrays.py | 7 ++++++- .../python-httpx/petstore_api/models/enum_class.py | 6 +++++- .../petstore_api/models/enum_number_vendor_ext.py | 6 +++++- .../petstore_api/models/enum_ref_with_default_value.py | 7 ++++++- .../python-httpx/petstore_api/models/enum_string1.py | 6 +++++- .../python-httpx/petstore_api/models/enum_string2.py | 6 +++++- .../petstore_api/models/enum_string_vendor_ext.py | 6 +++++- .../petstore/python-httpx/petstore_api/models/enum_test.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/feeding.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/file.py | 7 ++++++- .../petstore_api/models/file_schema_test_class.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/first_ref.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/foo.py | 7 ++++++- .../petstore_api/models/foo_get_default_response.py | 7 ++++++- .../python-httpx/petstore_api/models/format_test.py | 7 ++++++- .../python-httpx/petstore_api/models/has_only_read_only.py | 7 ++++++- .../petstore_api/models/health_check_result.py | 7 ++++++- .../python-httpx/petstore_api/models/hunting_dog.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/info.py | 7 ++++++- .../petstore_api/models/inner_dict_with_property.py | 7 ++++++- .../python-httpx/petstore_api/models/input_all_of.py | 7 ++++++- .../python-httpx/petstore_api/models/int_or_string.py | 7 ++++++- .../python-httpx/petstore_api/models/list_class.py | 7 ++++++- .../petstore_api/models/map_of_array_of_model.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/map_test.py | 7 ++++++- .../mixed_properties_and_additional_properties_class.py | 7 ++++++- .../python-httpx/petstore_api/models/model200_response.py | 7 ++++++- .../python-httpx/petstore_api/models/model_api_response.py | 7 ++++++- .../python-httpx/petstore_api/models/model_field.py | 7 ++++++- .../python-httpx/petstore_api/models/model_return.py | 7 ++++++- .../python-httpx/petstore_api/models/multi_arrays.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/name.py | 7 ++++++- .../python-httpx/petstore_api/models/nullable_class.py | 7 ++++++- .../python-httpx/petstore_api/models/nullable_property.py | 7 ++++++- .../python-httpx/petstore_api/models/number_only.py | 7 ++++++- .../models/object_to_test_additional_properties.py | 7 ++++++- .../petstore_api/models/object_with_deprecated_fields.py | 7 ++++++- .../python-httpx/petstore_api/models/one_of_enum_string.py | 6 +++++- .../petstore/python-httpx/petstore_api/models/order.py | 7 ++++++- .../python-httpx/petstore_api/models/outer_composite.py | 7 ++++++- .../python-httpx/petstore_api/models/outer_enum.py | 6 +++++- .../petstore_api/models/outer_enum_default_value.py | 6 +++++- .../python-httpx/petstore_api/models/outer_enum_integer.py | 6 +++++- .../models/outer_enum_integer_default_value.py | 6 +++++- .../petstore_api/models/outer_object_with_enum_property.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/parent.py | 7 ++++++- .../petstore_api/models/parent_with_optional_dict.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/pet.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/pig.py | 7 ++++++- .../python-httpx/petstore_api/models/pony_sizes.py | 7 ++++++- .../python-httpx/petstore_api/models/poop_cleaning.py | 7 ++++++- .../python-httpx/petstore_api/models/primitive_string.py | 7 ++++++- .../python-httpx/petstore_api/models/property_map.py | 7 ++++++- .../petstore_api/models/property_name_collision.py | 7 ++++++- .../python-httpx/petstore_api/models/read_only_first.py | 7 ++++++- .../petstore_api/models/second_circular_all_of_ref.py | 7 ++++++- .../python-httpx/petstore_api/models/second_ref.py | 7 ++++++- .../petstore_api/models/self_reference_model.py | 7 ++++++- .../python-httpx/petstore_api/models/single_ref_type.py | 6 +++++- .../petstore_api/models/special_character_enum.py | 6 +++++- .../python-httpx/petstore_api/models/special_model_name.py | 7 ++++++- .../python-httpx/petstore_api/models/special_name.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/tag.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/task.py | 7 ++++++- .../python-httpx/petstore_api/models/task_activity.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/test_enum.py | 6 +++++- .../petstore_api/models/test_enum_with_default.py | 6 +++++- .../models/test_error_responses_with_model400_response.py | 7 ++++++- .../models/test_error_responses_with_model404_response.py | 7 ++++++- .../test_inline_freeform_additional_properties_request.py | 7 ++++++- .../petstore_api/models/test_model_with_enum_default.py | 7 ++++++- .../test_object_for_multipart_requests_request_marker.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/tiger.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/type.py | 6 +++++- .../unnamed_dict_with_additional_model_list_properties.py | 7 ++++++- .../unnamed_dict_with_additional_string_list_properties.py | 7 ++++++- ...pload_file_with_additional_properties_request_object.py | 7 ++++++- .../petstore/python-httpx/petstore_api/models/user.py | 7 ++++++- .../python-httpx/petstore_api/models/with_nested_one_of.py | 7 ++++++- .../openapi3/client/petstore/python-httpx/pyproject.toml | 2 +- samples/openapi3/client/petstore/python-httpx/setup.py | 2 +- .../openapi3/client/petstore/python-lazyImports/README.md | 2 +- .../python-lazyImports/petstore_api/configuration.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/exceptions.py | 7 ++++++- .../petstore_api/models/additional_properties_any_type.py | 7 ++++++- .../petstore_api/models/additional_properties_class.py | 7 ++++++- .../petstore_api/models/additional_properties_object.py | 7 ++++++- .../models/additional_properties_with_description_only.py | 7 ++++++- .../petstore_api/models/all_of_super_model.py | 7 ++++++- .../petstore_api/models/all_of_with_single_ref.py | 7 ++++++- .../python-lazyImports/petstore_api/models/animal.py | 7 ++++++- .../python-lazyImports/petstore_api/models/any_of_color.py | 7 ++++++- .../python-lazyImports/petstore_api/models/any_of_pig.py | 7 ++++++- .../petstore_api/models/array_of_array_of_model.py | 7 ++++++- .../petstore_api/models/array_of_array_of_number_only.py | 7 ++++++- .../petstore_api/models/array_of_number_only.py | 7 ++++++- .../python-lazyImports/petstore_api/models/array_test.py | 7 ++++++- .../petstore_api/models/base_discriminator.py | 7 ++++++- .../python-lazyImports/petstore_api/models/basque_pig.py | 7 ++++++- .../python-lazyImports/petstore_api/models/bathing.py | 7 ++++++- .../petstore_api/models/capitalization.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/cat.py | 7 ++++++- .../python-lazyImports/petstore_api/models/category.py | 7 ++++++- .../petstore_api/models/circular_all_of_ref.py | 7 ++++++- .../petstore_api/models/circular_reference_model.py | 7 ++++++- .../python-lazyImports/petstore_api/models/class_model.py | 7 ++++++- .../python-lazyImports/petstore_api/models/client.py | 7 ++++++- .../python-lazyImports/petstore_api/models/color.py | 7 ++++++- .../python-lazyImports/petstore_api/models/creature.py | 7 ++++++- .../petstore_api/models/creature_info.py | 7 ++++++- .../python-lazyImports/petstore_api/models/danish_pig.py | 7 ++++++- .../petstore_api/models/data_output_format.py | 6 +++++- .../petstore_api/models/deprecated_object.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_sub.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_super.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/dog.py | 7 ++++++- .../python-lazyImports/petstore_api/models/dummy_model.py | 7 ++++++- .../python-lazyImports/petstore_api/models/enum_arrays.py | 7 ++++++- .../python-lazyImports/petstore_api/models/enum_class.py | 6 +++++- .../petstore_api/models/enum_number_vendor_ext.py | 6 +++++- .../petstore_api/models/enum_ref_with_default_value.py | 7 ++++++- .../python-lazyImports/petstore_api/models/enum_string1.py | 6 +++++- .../python-lazyImports/petstore_api/models/enum_string2.py | 6 +++++- .../petstore_api/models/enum_string_vendor_ext.py | 6 +++++- .../python-lazyImports/petstore_api/models/enum_test.py | 7 ++++++- .../python-lazyImports/petstore_api/models/feeding.py | 7 ++++++- .../python-lazyImports/petstore_api/models/file.py | 7 ++++++- .../petstore_api/models/file_schema_test_class.py | 7 ++++++- .../python-lazyImports/petstore_api/models/first_ref.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/foo.py | 7 ++++++- .../petstore_api/models/foo_get_default_response.py | 7 ++++++- .../python-lazyImports/petstore_api/models/format_test.py | 7 ++++++- .../petstore_api/models/has_only_read_only.py | 7 ++++++- .../petstore_api/models/health_check_result.py | 7 ++++++- .../python-lazyImports/petstore_api/models/hunting_dog.py | 7 ++++++- .../python-lazyImports/petstore_api/models/info.py | 7 ++++++- .../petstore_api/models/inner_dict_with_property.py | 7 ++++++- .../python-lazyImports/petstore_api/models/input_all_of.py | 7 ++++++- .../petstore_api/models/int_or_string.py | 7 ++++++- .../python-lazyImports/petstore_api/models/list_class.py | 7 ++++++- .../petstore_api/models/map_of_array_of_model.py | 7 ++++++- .../python-lazyImports/petstore_api/models/map_test.py | 7 ++++++- .../mixed_properties_and_additional_properties_class.py | 7 ++++++- .../petstore_api/models/model200_response.py | 7 ++++++- .../petstore_api/models/model_api_response.py | 7 ++++++- .../python-lazyImports/petstore_api/models/model_field.py | 7 ++++++- .../python-lazyImports/petstore_api/models/model_return.py | 7 ++++++- .../python-lazyImports/petstore_api/models/multi_arrays.py | 7 ++++++- .../python-lazyImports/petstore_api/models/name.py | 7 ++++++- .../petstore_api/models/nullable_class.py | 7 ++++++- .../petstore_api/models/nullable_property.py | 7 ++++++- .../python-lazyImports/petstore_api/models/number_only.py | 7 ++++++- .../models/object_to_test_additional_properties.py | 7 ++++++- .../petstore_api/models/object_with_deprecated_fields.py | 7 ++++++- .../petstore_api/models/one_of_enum_string.py | 7 ++++++- .../python-lazyImports/petstore_api/models/order.py | 7 ++++++- .../petstore_api/models/outer_composite.py | 7 ++++++- .../python-lazyImports/petstore_api/models/outer_enum.py | 6 +++++- .../petstore_api/models/outer_enum_default_value.py | 6 +++++- .../petstore_api/models/outer_enum_integer.py | 6 +++++- .../models/outer_enum_integer_default_value.py | 6 +++++- .../petstore_api/models/outer_object_with_enum_property.py | 7 ++++++- .../python-lazyImports/petstore_api/models/parent.py | 7 ++++++- .../petstore_api/models/parent_with_optional_dict.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/pet.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/pig.py | 7 ++++++- .../python-lazyImports/petstore_api/models/pony_sizes.py | 7 ++++++- .../petstore_api/models/poop_cleaning.py | 7 ++++++- .../petstore_api/models/primitive_string.py | 7 ++++++- .../python-lazyImports/petstore_api/models/property_map.py | 7 ++++++- .../petstore_api/models/property_name_collision.py | 7 ++++++- .../petstore_api/models/read_only_first.py | 7 ++++++- .../petstore_api/models/second_circular_all_of_ref.py | 7 ++++++- .../python-lazyImports/petstore_api/models/second_ref.py | 7 ++++++- .../petstore_api/models/self_reference_model.py | 7 ++++++- .../petstore_api/models/single_ref_type.py | 6 +++++- .../petstore_api/models/special_character_enum.py | 6 +++++- .../petstore_api/models/special_model_name.py | 7 ++++++- .../python-lazyImports/petstore_api/models/special_name.py | 7 ++++++- .../petstore/python-lazyImports/petstore_api/models/tag.py | 7 ++++++- .../python-lazyImports/petstore_api/models/task.py | 7 ++++++- .../petstore_api/models/task_activity.py | 7 ++++++- .../python-lazyImports/petstore_api/models/test_enum.py | 6 +++++- .../petstore_api/models/test_enum_with_default.py | 6 +++++- .../models/test_error_responses_with_model400_response.py | 7 ++++++- .../models/test_error_responses_with_model404_response.py | 7 ++++++- .../test_inline_freeform_additional_properties_request.py | 7 ++++++- .../petstore_api/models/test_model_with_enum_default.py | 7 ++++++- .../test_object_for_multipart_requests_request_marker.py | 7 ++++++- .../python-lazyImports/petstore_api/models/tiger.py | 7 ++++++- .../python-lazyImports/petstore_api/models/type.py | 6 +++++- .../unnamed_dict_with_additional_model_list_properties.py | 7 ++++++- .../unnamed_dict_with_additional_string_list_properties.py | 7 ++++++- ...pload_file_with_additional_properties_request_object.py | 7 ++++++- .../python-lazyImports/petstore_api/models/user.py | 7 ++++++- .../petstore_api/models/with_nested_one_of.py | 7 ++++++- .../client/petstore/python-lazyImports/pyproject.toml | 2 +- .../openapi3/client/petstore/python-lazyImports/setup.py | 2 +- samples/openapi3/client/petstore/python/README.md | 2 +- .../client/petstore/python/petstore_api/configuration.py | 7 ++++++- .../client/petstore/python/petstore_api/exceptions.py | 7 ++++++- .../petstore_api/models/additional_properties_any_type.py | 7 ++++++- .../petstore_api/models/additional_properties_class.py | 7 ++++++- .../petstore_api/models/additional_properties_object.py | 7 ++++++- .../models/additional_properties_with_description_only.py | 7 ++++++- .../python/petstore_api/models/all_of_super_model.py | 7 ++++++- .../python/petstore_api/models/all_of_with_single_ref.py | 7 ++++++- .../client/petstore/python/petstore_api/models/animal.py | 7 ++++++- .../petstore/python/petstore_api/models/any_of_color.py | 7 ++++++- .../petstore/python/petstore_api/models/any_of_pig.py | 7 ++++++- .../python/petstore_api/models/array_of_array_of_model.py | 7 ++++++- .../petstore_api/models/array_of_array_of_number_only.py | 7 ++++++- .../python/petstore_api/models/array_of_number_only.py | 7 ++++++- .../petstore/python/petstore_api/models/array_test.py | 7 ++++++- .../python/petstore_api/models/base_discriminator.py | 7 ++++++- .../petstore/python/petstore_api/models/basque_pig.py | 7 ++++++- .../client/petstore/python/petstore_api/models/bathing.py | 7 ++++++- .../petstore/python/petstore_api/models/capitalization.py | 7 ++++++- .../client/petstore/python/petstore_api/models/cat.py | 7 ++++++- .../client/petstore/python/petstore_api/models/category.py | 7 ++++++- .../python/petstore_api/models/circular_all_of_ref.py | 7 ++++++- .../python/petstore_api/models/circular_reference_model.py | 7 ++++++- .../petstore/python/petstore_api/models/class_model.py | 7 ++++++- .../client/petstore/python/petstore_api/models/client.py | 7 ++++++- .../client/petstore/python/petstore_api/models/color.py | 7 ++++++- .../client/petstore/python/petstore_api/models/creature.py | 7 ++++++- .../petstore/python/petstore_api/models/creature_info.py | 7 ++++++- .../petstore/python/petstore_api/models/danish_pig.py | 7 ++++++- .../python/petstore_api/models/data_output_format.py | 6 +++++- .../python/petstore_api/models/deprecated_object.py | 7 ++++++- .../python/petstore_api/models/discriminator_all_of_sub.py | 7 ++++++- .../petstore_api/models/discriminator_all_of_super.py | 7 ++++++- .../client/petstore/python/petstore_api/models/dog.py | 7 ++++++- .../petstore/python/petstore_api/models/dummy_model.py | 7 ++++++- .../petstore/python/petstore_api/models/enum_arrays.py | 7 ++++++- .../petstore/python/petstore_api/models/enum_class.py | 6 +++++- .../python/petstore_api/models/enum_number_vendor_ext.py | 6 +++++- .../petstore_api/models/enum_ref_with_default_value.py | 7 ++++++- .../petstore/python/petstore_api/models/enum_string1.py | 6 +++++- .../petstore/python/petstore_api/models/enum_string2.py | 6 +++++- .../python/petstore_api/models/enum_string_vendor_ext.py | 6 +++++- .../petstore/python/petstore_api/models/enum_test.py | 7 ++++++- .../client/petstore/python/petstore_api/models/feeding.py | 7 ++++++- .../client/petstore/python/petstore_api/models/file.py | 7 ++++++- .../python/petstore_api/models/file_schema_test_class.py | 7 ++++++- .../petstore/python/petstore_api/models/first_ref.py | 7 ++++++- .../client/petstore/python/petstore_api/models/foo.py | 7 ++++++- .../python/petstore_api/models/foo_get_default_response.py | 7 ++++++- .../petstore/python/petstore_api/models/format_test.py | 7 ++++++- .../python/petstore_api/models/has_only_read_only.py | 7 ++++++- .../python/petstore_api/models/health_check_result.py | 7 ++++++- .../petstore/python/petstore_api/models/hunting_dog.py | 7 ++++++- .../client/petstore/python/petstore_api/models/info.py | 7 ++++++- .../python/petstore_api/models/inner_dict_with_property.py | 7 ++++++- .../petstore/python/petstore_api/models/input_all_of.py | 7 ++++++- .../petstore/python/petstore_api/models/int_or_string.py | 7 ++++++- .../petstore/python/petstore_api/models/list_class.py | 7 ++++++- .../python/petstore_api/models/map_of_array_of_model.py | 7 ++++++- .../client/petstore/python/petstore_api/models/map_test.py | 7 ++++++- .../mixed_properties_and_additional_properties_class.py | 7 ++++++- .../python/petstore_api/models/model200_response.py | 7 ++++++- .../python/petstore_api/models/model_api_response.py | 7 ++++++- .../petstore/python/petstore_api/models/model_field.py | 7 ++++++- .../petstore/python/petstore_api/models/model_return.py | 7 ++++++- .../petstore/python/petstore_api/models/multi_arrays.py | 7 ++++++- .../client/petstore/python/petstore_api/models/name.py | 7 ++++++- .../petstore/python/petstore_api/models/nullable_class.py | 7 ++++++- .../python/petstore_api/models/nullable_property.py | 7 ++++++- .../petstore/python/petstore_api/models/number_only.py | 7 ++++++- .../models/object_to_test_additional_properties.py | 7 ++++++- .../petstore_api/models/object_with_deprecated_fields.py | 7 ++++++- .../python/petstore_api/models/one_of_enum_string.py | 7 ++++++- .../client/petstore/python/petstore_api/models/order.py | 7 ++++++- .../petstore/python/petstore_api/models/outer_composite.py | 7 ++++++- .../petstore/python/petstore_api/models/outer_enum.py | 6 +++++- .../python/petstore_api/models/outer_enum_default_value.py | 6 +++++- .../python/petstore_api/models/outer_enum_integer.py | 6 +++++- .../models/outer_enum_integer_default_value.py | 6 +++++- .../petstore_api/models/outer_object_with_enum_property.py | 7 ++++++- .../client/petstore/python/petstore_api/models/parent.py | 7 ++++++- .../petstore_api/models/parent_with_optional_dict.py | 7 ++++++- .../client/petstore/python/petstore_api/models/pet.py | 7 ++++++- .../client/petstore/python/petstore_api/models/pig.py | 7 ++++++- .../petstore/python/petstore_api/models/pony_sizes.py | 7 ++++++- .../petstore/python/petstore_api/models/poop_cleaning.py | 7 ++++++- .../python/petstore_api/models/primitive_string.py | 7 ++++++- .../petstore/python/petstore_api/models/property_map.py | 7 ++++++- .../python/petstore_api/models/property_name_collision.py | 7 ++++++- .../petstore/python/petstore_api/models/read_only_first.py | 7 ++++++- .../petstore_api/models/second_circular_all_of_ref.py | 7 ++++++- .../petstore/python/petstore_api/models/second_ref.py | 7 ++++++- .../python/petstore_api/models/self_reference_model.py | 7 ++++++- .../petstore/python/petstore_api/models/single_ref_type.py | 6 +++++- .../python/petstore_api/models/special_character_enum.py | 6 +++++- .../python/petstore_api/models/special_model_name.py | 7 ++++++- .../petstore/python/petstore_api/models/special_name.py | 7 ++++++- .../client/petstore/python/petstore_api/models/tag.py | 7 ++++++- .../client/petstore/python/petstore_api/models/task.py | 7 ++++++- .../petstore/python/petstore_api/models/task_activity.py | 7 ++++++- .../petstore/python/petstore_api/models/test_enum.py | 6 +++++- .../python/petstore_api/models/test_enum_with_default.py | 6 +++++- .../models/test_error_responses_with_model400_response.py | 7 ++++++- .../models/test_error_responses_with_model404_response.py | 7 ++++++- .../test_inline_freeform_additional_properties_request.py | 7 ++++++- .../petstore_api/models/test_model_with_enum_default.py | 7 ++++++- .../test_object_for_multipart_requests_request_marker.py | 7 ++++++- .../client/petstore/python/petstore_api/models/tiger.py | 7 ++++++- .../client/petstore/python/petstore_api/models/type.py | 6 +++++- .../unnamed_dict_with_additional_model_list_properties.py | 7 ++++++- .../unnamed_dict_with_additional_string_list_properties.py | 7 ++++++- ...pload_file_with_additional_properties_request_object.py | 7 ++++++- .../client/petstore/python/petstore_api/models/user.py | 7 ++++++- .../python/petstore_api/models/with_nested_one_of.py | 7 ++++++- samples/openapi3/client/petstore/python/pyproject.toml | 2 +- samples/openapi3/client/petstore/python/setup.py | 2 +- 510 files changed, 2896 insertions(+), 511 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index 62af726c21a1..ae69d74c3138 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -14,7 +14,12 @@ from logging import FileHandler import multiprocessing {{/async}} import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self {{^async}} import urllib3 diff --git a/modules/openapi-generator/src/main/resources/python/exceptions.mustache b/modules/openapi-generator/src/main/resources/python/exceptions.mustache index b9eb827113f9..33bfdb034942 100644 --- a/modules/openapi-generator/src/main/resources/python/exceptions.mustache +++ b/modules/openapi-generator/src/main/resources/python/exceptions.mustache @@ -1,6 +1,11 @@ {{>partial_header}} -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache index b155bb0eca9c..097a5b134ff0 100644 --- a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache @@ -4,7 +4,12 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self {{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ANY_OF_SCHEMAS = [{{#anyOf}}"{{.}}"{{^-last}}, {{/-last}}{{/anyOf}}] diff --git a/modules/openapi-generator/src/main/resources/python/model_enum.mustache b/modules/openapi-generator/src/main/resources/python/model_enum.mustache index 5810ca17293f..e0920a8e3e6a 100644 --- a/modules/openapi-generator/src/main/resources/python/model_enum.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_enum.mustache @@ -1,7 +1,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self {{#vendorExtensions.x-py-other-imports}} {{{.}}} {{/vendorExtensions.x-py-other-imports}} diff --git a/modules/openapi-generator/src/main/resources/python/model_generic.mustache b/modules/openapi-generator/src/main/resources/python/model_generic.mustache index f5fd110903e2..169fe0cffa0f 100644 --- a/modules/openapi-generator/src/main/resources/python/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_generic.mustache @@ -9,7 +9,12 @@ import re # noqa: F401 {{#vendorExtensions.x-py-model-imports}} {{{.}}} {{/vendorExtensions.x-py-model-imports}} -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field {{#hasChildren}} diff --git a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache index a77ea60c8cd9..c39b7e75bbd3 100644 --- a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache @@ -4,7 +4,12 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self {{#lambda.uppercase}}{{{classname}}}{{/lambda.uppercase}}_ONE_OF_SCHEMAS = [{{#oneOf}}"{{.}}"{{^-last}}, {{/-last}}{{/oneOf}}] diff --git a/modules/openapi-generator/src/main/resources/python/pyproject.mustache b/modules/openapi-generator/src/main/resources/python/pyproject.mustache index 547e7648a12b..6602af4a5c4e 100644 --- a/modules/openapi-generator/src/main/resources/python/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python/pyproject.mustache @@ -32,7 +32,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] include = ["{{packageName}}/py.typed"] [tool.poetry.dependencies] -python = "^3.11" +python = "^3.9" urllib3 = ">= 2.1.0, < 3.0.0" python-dateutil = ">= 2.8.2" {{#asyncio}} @@ -56,7 +56,7 @@ lazy-imports = ">= 1, < 2" {{/lazyImports}} {{/poetry1}} {{^poetry1}} -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/modules/openapi-generator/src/main/resources/python/setup.mustache b/modules/openapi-generator/src/main/resources/python/setup.mustache index 998ae2e29b50..614a907e5197 100644 --- a/modules/openapi-generator/src/main/resources/python/setup.mustache +++ b/modules/openapi-generator/src/main/resources/python/setup.mustache @@ -11,7 +11,7 @@ from setuptools import setup, find_packages # noqa: H301 # http://pypi.python.org/pypi/setuptools NAME = "{{{projectName}}}" VERSION = "{{packageVersion}}" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md index f60e13fd5284..cc6f86c14509 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py index dd3d712a41df..a43f82fc576d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py @@ -19,7 +19,12 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self import urllib3 diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py index 0ae1b3ff81f7..56ddebc891a5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/exceptions.py @@ -11,7 +11,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py index d7aa5e622c27..c18d3eb9dfd7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bird(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py index 04e1ec165a93..973750428298 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py index 52bce5955cde..6658f9691359 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py @@ -22,7 +22,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.query import Query -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DataQuery(Query): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py index 9ffa17b813a4..d018b8927a6d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.string_enum_ref import StringEnumRef -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DefaultValue(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py index 23c1a9b7efcc..d35647cbc4f5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberPropertiesOnly(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py index 4c95711c9dcb..5a51a7246ffb 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.category import Category from openapi_client.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py index 48eb8cde3a27..6f9a8b33f47b 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Query(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py index e853e6df8b97..228652f431a7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/string_enum_ref.py @@ -16,7 +16,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class StringEnumRef(StrEnum): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py index ae11ca9cebb3..905c39f0d1d2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py index b8f2bb979855..5401bd990d9d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestFormObjectMultipartRequestMarker(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 600962ca57ac..eb2a6c6201f9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 676d9741dee7..fb0c89eb00cc 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml index 5a646fca20fb..84c2c75e9f88 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "Apache 2.0" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py index e15d7d113db4..f6eb0c722565 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "openapi-client" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/client/echo_api/python/README.md b/samples/client/echo_api/python/README.md index f60e13fd5284..cc6f86c14509 100644 --- a/samples/client/echo_api/python/README.md +++ b/samples/client/echo_api/python/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/client/echo_api/python/openapi_client/configuration.py b/samples/client/echo_api/python/openapi_client/configuration.py index dd3d712a41df..a43f82fc576d 100644 --- a/samples/client/echo_api/python/openapi_client/configuration.py +++ b/samples/client/echo_api/python/openapi_client/configuration.py @@ -19,7 +19,12 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self import urllib3 diff --git a/samples/client/echo_api/python/openapi_client/exceptions.py b/samples/client/echo_api/python/openapi_client/exceptions.py index 0ae1b3ff81f7..56ddebc891a5 100644 --- a/samples/client/echo_api/python/openapi_client/exceptions.py +++ b/samples/client/echo_api/python/openapi_client/exceptions.py @@ -11,7 +11,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/client/echo_api/python/openapi_client/models/bird.py b/samples/client/echo_api/python/openapi_client/models/bird.py index d7aa5e622c27..c18d3eb9dfd7 100644 --- a/samples/client/echo_api/python/openapi_client/models/bird.py +++ b/samples/client/echo_api/python/openapi_client/models/bird.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bird(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/category.py b/samples/client/echo_api/python/openapi_client/models/category.py index 04e1ec165a93..973750428298 100644 --- a/samples/client/echo_api/python/openapi_client/models/category.py +++ b/samples/client/echo_api/python/openapi_client/models/category.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/data_query.py b/samples/client/echo_api/python/openapi_client/models/data_query.py index 52bce5955cde..6658f9691359 100644 --- a/samples/client/echo_api/python/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python/openapi_client/models/data_query.py @@ -22,7 +22,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.query import Query -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DataQuery(Query): diff --git a/samples/client/echo_api/python/openapi_client/models/default_value.py b/samples/client/echo_api/python/openapi_client/models/default_value.py index 9ffa17b813a4..d018b8927a6d 100644 --- a/samples/client/echo_api/python/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python/openapi_client/models/default_value.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.string_enum_ref import StringEnumRef -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DefaultValue(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py index 23c1a9b7efcc..d35647cbc4f5 100644 --- a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberPropertiesOnly(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/pet.py b/samples/client/echo_api/python/openapi_client/models/pet.py index 4c95711c9dcb..5a51a7246ffb 100644 --- a/samples/client/echo_api/python/openapi_client/models/pet.py +++ b/samples/client/echo_api/python/openapi_client/models/pet.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from openapi_client.models.category import Category from openapi_client.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/query.py b/samples/client/echo_api/python/openapi_client/models/query.py index 48eb8cde3a27..6f9a8b33f47b 100644 --- a/samples/client/echo_api/python/openapi_client/models/query.py +++ b/samples/client/echo_api/python/openapi_client/models/query.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Query(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py b/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py index e853e6df8b97..228652f431a7 100644 --- a/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py +++ b/samples/client/echo_api/python/openapi_client/models/string_enum_ref.py @@ -16,7 +16,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class StringEnumRef(StrEnum): diff --git a/samples/client/echo_api/python/openapi_client/models/tag.py b/samples/client/echo_api/python/openapi_client/models/tag.py index ae11ca9cebb3..905c39f0d1d2 100644 --- a/samples/client/echo_api/python/openapi_client/models/tag.py +++ b/samples/client/echo_api/python/openapi_client/models/tag.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py index b8f2bb979855..5401bd990d9d 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestFormObjectMultipartRequestMarker(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index 600962ca57ac..eb2a6c6201f9 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseModel): diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 676d9741dee7..fb0c89eb00cc 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): diff --git a/samples/client/echo_api/python/pyproject.toml b/samples/client/echo_api/python/pyproject.toml index 5a646fca20fb..84c2c75e9f88 100644 --- a/samples/client/echo_api/python/pyproject.toml +++ b/samples/client/echo_api/python/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "Apache 2.0" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/samples/client/echo_api/python/setup.py b/samples/client/echo_api/python/setup.py index e15d7d113db4..f6eb0c722565 100644 --- a/samples/client/echo_api/python/setup.py +++ b/samples/client/echo_api/python/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "openapi-client" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/openapi3/client/petstore/python-aiohttp/README.md b/samples/openapi3/client/petstore/python-aiohttp/README.md index 2d639677cfe5..2b441a18e530 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/README.md +++ b/samples/openapi3/client/petstore/python-aiohttp/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py index b136a2a6d1a7..129093dbd35b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py @@ -18,7 +18,12 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self from petstore_api.signing import HttpSigningConfiguration diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/exceptions.py index a5d2c10c55be..4069eea7b6d4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/exceptions.py @@ -10,7 +10,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py index 605dbfe957ce..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesAnyType(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py index 2a41a569f7e6..368dc3499f1d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py index ca9b42804ae1..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py index 03e45fe3145e..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesWithDescriptionOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py index 53350f4c99e4..15eabda3d922 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfSuperModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py index c2dee95d9832..7e6a596b83df 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.single_ref_type import SingleRefType -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfWithSingleRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py index 73fd11d96623..8d5d174c0f37 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py index 409aa313750f..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py index 436d2f008161..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py index fb23e31ba48c..5f82feb6e2cc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py index 5d3f8c63e368..cc795c789425 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py index a183ed9bd084..a3aa532ef568 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py index 2763a11591cb..29dc2461a1ca 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from petstore_api.models.read_only_first import ReadOnlyFirst -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py index 40c69fc534c0..341b3038a503 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py index 02893546262c..c4a0ec1b97d4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class BasquePig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py index b4cdff20a400..80db24107d70 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bathing(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py index 197ba2645f74..743cd99b2eef 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Capitalization(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py index caa43583452d..fcd75bdff2a0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Cat(Animal): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py index ad71b3d86cbd..fac99d598f00 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py index d0017f6127ff..7223a583ff1e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py index 7712ab85ce5f..99c83abfac01 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py index 421e5a89b18e..400461e02968 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ClassModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py index e642a5133b64..8c63c47da726 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Client(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py index 090044e9000b..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py index 254f5c454c22..6ce833112163 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Union from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py index 3a811b731d8a..cb5f3d2187d3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CreatureInfo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py index 4149310f3131..3a70faaccaed 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DanishPig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/data_output_format.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/data_output_format.py index e32ebe9a5ee4..69b3c8e9c570 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/data_output_format.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/data_output_format.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class DataOutputFormat(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py index ae68e4769d32..61a9f5fc6cdd 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DeprecatedObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py index 2c621fcb4e13..cb3672f8eef9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List from petstore_api.models.discriminator_all_of_super import DiscriminatorAllOfSuper -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py index f0b57e40ee39..f0d823854f2e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py index 08ca643dc764..d430cd28394d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Dog(Animal): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py index 6d3d680f4265..77cf3d22668d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DummyModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py index 17c81fb3b0a2..5c0c559a79b5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_class.py index b4e61d237db8..ebfb6a1989db 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_class.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumClass(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_number_vendor_ext.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_number_vendor_ext.py index 91d2161cbc6d..3cc47a403f43 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_number_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_number_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumNumberVendorExt(IntEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py index ce070b55a4f5..e43bd99a9026 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.data_output_format import DataOutputFormat -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumRefWithDefaultValue(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string1.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string1.py index d6970ff8346f..e980cefe5964 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string1.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string1.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString1(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string2.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string2.py index c4fc722f826a..04fd5902a901 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string2.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string2.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString2(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string_vendor_ext.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string_vendor_ext.py index 175ace79326f..aead473c1c3e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_string_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumStringVendorExt(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py index 7de9efba5e8f..1d8071852220 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py @@ -25,7 +25,12 @@ from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py index 1cdf1f930dd4..4d7607c83e85 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Feeding(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py index 3cacded9ba8b..e09066bc7985 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class File(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py index 1a9cab954603..7f4607d4d11e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FileSchemaTestClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py index 9bd1b7617182..ef5fcf8d1101 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FirstRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py index 8046535f8f2f..d7bf4f0fe4d4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Foo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py index a47649d41882..194aede01f2b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.foo import Foo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FooGetDefaultResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py index 7447228b866b..b4d75b7c3ebb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py @@ -23,7 +23,12 @@ from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from uuid import UUID -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FormatTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py index 413bbc9cac38..8143e6b831e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HasOnlyReadOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py index 724eb3e0d4b0..9b3552b96f50 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HealthCheckResult(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py index b7630d871e7a..e4cfe348fa7a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature import Creature from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HuntingDog(Creature): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py index fbcaae5a5b4c..f5e05e503e6d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Info(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py index b90b99c96142..106ac3338d9d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InnerDictWithProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py index 825e90ba62d9..12dd3cc6d878 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InputAllOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py index d304066f68c0..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self INTORSTRING_ONE_OF_SCHEMAS = ["int", "str"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py index 7ed3257dff36..cb77950831e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ListClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py index 7c4efa39b4ac..7a922a4e0d91 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py index e5fd9b76ca55..cc9bede619cb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py index b935392a362e..dd3070614469 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py index 52bd5486b808..33898410ea6f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Model200Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py index 0fcbc942b627..34259444208a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelApiResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py index f0ed8daff497..b2faf99974e9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelField(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py index 20ff47e4e20f..75a0160edae0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelReturn(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py index 02f7d3e0d3d6..eb8cffe6f8db 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MultiArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py index c331614e1408..23e15b2a27c4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Name(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py index f1e99a04a5ba..c4db84b5d3a7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py @@ -20,7 +20,12 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py index 74e15d8784ed..7910909abf16 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py index 93d907a76b50..0ae8254cc09d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py index 21df5548216b..291effd93c9a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectToTestAdditionalProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py index e3f21d775e4b..87632eabe1c4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.deprecated_object import DeprecatedObject -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectWithDeprecatedFields(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py index eff2055e8a61..5947fd8bb68f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/one_of_enum_string.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OneOfEnumString(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py index 91c90307eab8..4eec70bb3689 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py @@ -20,7 +20,12 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Order(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py index 0ac7f9cb52a6..efa446ba77ac 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterComposite(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum.py index ee5753ebef43..5ec677f92dc5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_default_value.py index 7b013c460e2b..61bb40420506 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumDefaultValue(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer.py index 03ee644405ed..b9c085cc6f0a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumInteger(IntEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py index 55735ba9b13f..9721aad02b08 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumIntegerDefaultValue(IntEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py index 3009a8c138ee..2086db715860 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterObjectWithEnumProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py index d53c977be0aa..726e3791b75f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Parent(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py index 47ca1ce0dfb4..82ad666c7bce 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ParentWithOptionalDict(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py index 298f313dc77a..a7393e9aac07 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py @@ -22,7 +22,12 @@ from typing_extensions import Annotated from petstore_api.models.category import Category from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py index 72dcce5f6eda..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py index db6a65f6e165..b637e2bcbc1e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.type import Type -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PonySizes(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py index d959b41004de..c8cc192b751f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PoopCleaning(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py index 81ffb5b357ba..421cc1b32cb9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PrimitiveString(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py index 00f0ed601be4..78c791c51d9e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyMap(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py index ebd3a4054550..997b1cbe4852 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyNameCollision(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py index 134bf1501ab1..787352f1f1b9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ReadOnlyFirst(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py index 7c3ea1020293..160f92af2556 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondCircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py index 1a01c92d69e6..83eab4671e31 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py index ea225177c35e..109519a79c2c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SelfReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/single_ref_type.py index 32b33b2271fe..7d46ffd18454 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/single_ref_type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SingleRefType(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_character_enum.py index bf8d0a25df90..bcf02d457acb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_character_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SpecialCharacterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py index a99d9e85968e..0e166b85b25e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialModelName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py index 41d0795a8ecb..9020d535a958 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.category import Category -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py index 02c6889b3456..83c168d40b93 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py index 006fb8512b32..fd41f02910d3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List from uuid import UUID from petstore_api.models.task_activity import TaskActivity -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Task(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py index 8eb1262d9014..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py @@ -18,7 +18,12 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self TASKACTIVITY_ONE_OF_SCHEMAS = ["Bathing", "Feeding", "PoopCleaning"] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum.py index 331f0fd597bd..feddb5693db3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum_with_default.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum_with_default.py index 0f3d74610b96..7d800b9bf4d3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum_with_default.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_enum_with_default.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnumWithDefault(StrEnum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py index da679c216f5f..ba4eddceed9d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel400Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py index 4a179acf18bf..f7e0980aab0f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel404Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py index 2b9fab3d655d..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py index 37c3e7a2b0ad..b754467c085a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.test_enum import TestEnum from petstore_api.models.test_enum_with_default import TestEnumWithDefault -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestModelWithEnumDefault(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 5ee754ff793d..fb7159df131c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestObjectForMultipartRequestsRequestMarker(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py index e728afeac368..72373d6525d7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tiger(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/type.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/type.py index 3ab767b6125b..6d3f5693e7f5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/type.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class Type(Enum): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index d37103aeb9d1..68d64953f496 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalModelListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 0340f186acd5..c8a84e8ada0b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalStringListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py index 2478f96a284f..e6579e3773e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py index 7acdcb9f780c..1482cd191d21 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class User(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py index 4f7ddb9ee72a..da7c16de93fc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.one_of_enum_string import OneOfEnumString from petstore_api.models.pig import Pig -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class WithNestedOneOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml index 767476a884d0..fbafbe1e07a2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] include = ["petstore_api/py.typed"] [tool.poetry.dependencies] -python = "^3.11" +python = "^3.9" urllib3 = ">= 2.1.0, < 3.0.0" python-dateutil = ">= 2.8.2" aiohttp = ">= 3.8.4" diff --git a/samples/openapi3/client/petstore/python-aiohttp/setup.py b/samples/openapi3/client/petstore/python-aiohttp/setup.py index 986bb4a5b3af..8f4703b47f50 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/setup.py +++ b/samples/openapi3/client/petstore/python-aiohttp/setup.py @@ -21,7 +21,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/openapi3/client/petstore/python-httpx/README.md b/samples/openapi3/client/petstore/python-httpx/README.md index 2d639677cfe5..2b441a18e530 100644 --- a/samples/openapi3/client/petstore/python-httpx/README.md +++ b/samples/openapi3/client/petstore/python-httpx/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py index b136a2a6d1a7..129093dbd35b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py @@ -18,7 +18,12 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self from petstore_api.signing import HttpSigningConfiguration diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/exceptions.py index a5d2c10c55be..4069eea7b6d4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/exceptions.py @@ -10,7 +10,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py index 605dbfe957ce..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesAnyType(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py index 2a41a569f7e6..368dc3499f1d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py index ca9b42804ae1..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py index 03e45fe3145e..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesWithDescriptionOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py index 53350f4c99e4..15eabda3d922 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfSuperModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py index c2dee95d9832..7e6a596b83df 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.single_ref_type import SingleRefType -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfWithSingleRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py index 73fd11d96623..8d5d174c0f37 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py index 409aa313750f..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py index 436d2f008161..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py index fb23e31ba48c..5f82feb6e2cc 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py index 5d3f8c63e368..cc795c789425 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py index a183ed9bd084..a3aa532ef568 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py index 2763a11591cb..29dc2461a1ca 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from petstore_api.models.read_only_first import ReadOnlyFirst -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py index 40c69fc534c0..341b3038a503 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py index 02893546262c..c4a0ec1b97d4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class BasquePig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py index b4cdff20a400..80db24107d70 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bathing(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py index 197ba2645f74..743cd99b2eef 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Capitalization(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py index caa43583452d..fcd75bdff2a0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Cat(Animal): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py index ad71b3d86cbd..fac99d598f00 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py index d0017f6127ff..7223a583ff1e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py index 7712ab85ce5f..99c83abfac01 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py index 421e5a89b18e..400461e02968 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ClassModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py index e642a5133b64..8c63c47da726 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Client(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py index 090044e9000b..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py index 254f5c454c22..6ce833112163 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Union from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py index 3a811b731d8a..cb5f3d2187d3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CreatureInfo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py index 4149310f3131..3a70faaccaed 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DanishPig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/data_output_format.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/data_output_format.py index e32ebe9a5ee4..69b3c8e9c570 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/data_output_format.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/data_output_format.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class DataOutputFormat(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py index ae68e4769d32..61a9f5fc6cdd 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DeprecatedObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py index 2c621fcb4e13..cb3672f8eef9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List from petstore_api.models.discriminator_all_of_super import DiscriminatorAllOfSuper -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py index f0b57e40ee39..f0d823854f2e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py index 08ca643dc764..d430cd28394d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Dog(Animal): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py index 6d3d680f4265..77cf3d22668d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DummyModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py index 17c81fb3b0a2..5c0c559a79b5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_class.py index b4e61d237db8..ebfb6a1989db 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_class.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumClass(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_number_vendor_ext.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_number_vendor_ext.py index 91d2161cbc6d..3cc47a403f43 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_number_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_number_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumNumberVendorExt(IntEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py index ce070b55a4f5..e43bd99a9026 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.data_output_format import DataOutputFormat -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumRefWithDefaultValue(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string1.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string1.py index d6970ff8346f..e980cefe5964 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string1.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string1.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString1(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string2.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string2.py index c4fc722f826a..04fd5902a901 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string2.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string2.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString2(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string_vendor_ext.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string_vendor_ext.py index 175ace79326f..aead473c1c3e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_string_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumStringVendorExt(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py index 7de9efba5e8f..1d8071852220 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py @@ -25,7 +25,12 @@ from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py index 1cdf1f930dd4..4d7607c83e85 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Feeding(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py index 3cacded9ba8b..e09066bc7985 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class File(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py index 1a9cab954603..7f4607d4d11e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FileSchemaTestClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py index 9bd1b7617182..ef5fcf8d1101 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FirstRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py index 8046535f8f2f..d7bf4f0fe4d4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Foo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py index a47649d41882..194aede01f2b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.foo import Foo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FooGetDefaultResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py index 7447228b866b..b4d75b7c3ebb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py @@ -23,7 +23,12 @@ from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from uuid import UUID -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FormatTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py index 413bbc9cac38..8143e6b831e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HasOnlyReadOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py index 724eb3e0d4b0..9b3552b96f50 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HealthCheckResult(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py index b7630d871e7a..e4cfe348fa7a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature import Creature from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HuntingDog(Creature): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py index fbcaae5a5b4c..f5e05e503e6d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Info(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py index b90b99c96142..106ac3338d9d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InnerDictWithProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py index 825e90ba62d9..12dd3cc6d878 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InputAllOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py index d304066f68c0..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self INTORSTRING_ONE_OF_SCHEMAS = ["int", "str"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py index 7ed3257dff36..cb77950831e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ListClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py index 7c4efa39b4ac..7a922a4e0d91 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py index e5fd9b76ca55..cc9bede619cb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py index b935392a362e..dd3070614469 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py index 52bd5486b808..33898410ea6f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Model200Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py index 0fcbc942b627..34259444208a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelApiResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py index f0ed8daff497..b2faf99974e9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelField(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py index 20ff47e4e20f..75a0160edae0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelReturn(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py index 02f7d3e0d3d6..eb8cffe6f8db 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MultiArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py index c331614e1408..23e15b2a27c4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Name(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py index f1e99a04a5ba..c4db84b5d3a7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py @@ -20,7 +20,12 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py index 74e15d8784ed..7910909abf16 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py index 93d907a76b50..0ae8254cc09d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py index 21df5548216b..291effd93c9a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectToTestAdditionalProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py index e3f21d775e4b..87632eabe1c4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.deprecated_object import DeprecatedObject -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectWithDeprecatedFields(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/one_of_enum_string.py index eff2055e8a61..5947fd8bb68f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/one_of_enum_string.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OneOfEnumString(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py index 91c90307eab8..4eec70bb3689 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py @@ -20,7 +20,12 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Order(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py index 0ac7f9cb52a6..efa446ba77ac 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterComposite(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum.py index ee5753ebef43..5ec677f92dc5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_default_value.py index 7b013c460e2b..61bb40420506 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumDefaultValue(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer.py index 03ee644405ed..b9c085cc6f0a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumInteger(IntEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer_default_value.py index 55735ba9b13f..9721aad02b08 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_enum_integer_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumIntegerDefaultValue(IntEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py index 3009a8c138ee..2086db715860 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterObjectWithEnumProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py index d53c977be0aa..726e3791b75f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Parent(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py index 47ca1ce0dfb4..82ad666c7bce 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ParentWithOptionalDict(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py index 298f313dc77a..a7393e9aac07 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py @@ -22,7 +22,12 @@ from typing_extensions import Annotated from petstore_api.models.category import Category from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py index 72dcce5f6eda..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py index db6a65f6e165..b637e2bcbc1e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.type import Type -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PonySizes(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py index d959b41004de..c8cc192b751f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PoopCleaning(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py index 81ffb5b357ba..421cc1b32cb9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PrimitiveString(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py index 00f0ed601be4..78c791c51d9e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyMap(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py index ebd3a4054550..997b1cbe4852 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyNameCollision(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py index 134bf1501ab1..787352f1f1b9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ReadOnlyFirst(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py index 7c3ea1020293..160f92af2556 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondCircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py index 1a01c92d69e6..83eab4671e31 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py index ea225177c35e..109519a79c2c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SelfReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/single_ref_type.py index 32b33b2271fe..7d46ffd18454 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/single_ref_type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SingleRefType(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_character_enum.py index bf8d0a25df90..bcf02d457acb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_character_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SpecialCharacterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py index a99d9e85968e..0e166b85b25e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialModelName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py index 41d0795a8ecb..9020d535a958 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.category import Category -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py index 02c6889b3456..83c168d40b93 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py index 006fb8512b32..fd41f02910d3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List from uuid import UUID from petstore_api.models.task_activity import TaskActivity -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Task(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py index 8eb1262d9014..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py @@ -18,7 +18,12 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self TASKACTIVITY_ONE_OF_SCHEMAS = ["Bathing", "Feeding", "PoopCleaning"] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum.py index 331f0fd597bd..feddb5693db3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum_with_default.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum_with_default.py index 0f3d74610b96..7d800b9bf4d3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum_with_default.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_enum_with_default.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnumWithDefault(StrEnum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py index da679c216f5f..ba4eddceed9d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel400Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py index 4a179acf18bf..f7e0980aab0f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel404Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py index 2b9fab3d655d..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py index 37c3e7a2b0ad..b754467c085a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.test_enum import TestEnum from petstore_api.models.test_enum_with_default import TestEnumWithDefault -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestModelWithEnumDefault(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 5ee754ff793d..fb7159df131c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestObjectForMultipartRequestsRequestMarker(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py index e728afeac368..72373d6525d7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tiger(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/type.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/type.py index 3ab767b6125b..6d3f5693e7f5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/type.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class Type(Enum): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index d37103aeb9d1..68d64953f496 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalModelListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 0340f186acd5..c8a84e8ada0b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalStringListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py index 2478f96a284f..e6579e3773e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py index 7acdcb9f780c..1482cd191d21 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class User(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py index 4f7ddb9ee72a..da7c16de93fc 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.one_of_enum_string import OneOfEnumString from petstore_api.models.pig import Pig -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class WithNestedOneOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-httpx/pyproject.toml b/samples/openapi3/client/petstore/python-httpx/pyproject.toml index a4ee37d24b50..eed3d1a1ac49 100644 --- a/samples/openapi3/client/petstore/python-httpx/pyproject.toml +++ b/samples/openapi3/client/petstore/python-httpx/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "Apache-2.0" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/samples/openapi3/client/petstore/python-httpx/setup.py b/samples/openapi3/client/petstore/python-httpx/setup.py index 6fcb284b3ad3..812fa06657ad 100644 --- a/samples/openapi3/client/petstore/python-httpx/setup.py +++ b/samples/openapi3/client/petstore/python-httpx/setup.py @@ -21,7 +21,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/openapi3/client/petstore/python-lazyImports/README.md b/samples/openapi3/client/petstore/python-lazyImports/README.md index 1878ef1cf9e6..a60c05ad93ef 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/README.md +++ b/samples/openapi3/client/petstore/python-lazyImports/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py index 5a5242c4ea31..2d009246937e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py @@ -18,7 +18,12 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self import urllib3 diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/exceptions.py index a5d2c10c55be..4069eea7b6d4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/exceptions.py @@ -10,7 +10,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py index 605dbfe957ce..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesAnyType(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py index c8e836e83b9b..b5e08aa86a4f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py index ca9b42804ae1..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py index 03e45fe3145e..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesWithDescriptionOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py index c9724286626e..8db6944f75ff 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfSuperModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py index 96d83a781d49..120572007721 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.single_ref_type import SingleRefType -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfWithSingleRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py index 17bcc87c4c70..8568510ee341 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py index 409aa313750f..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py index 436d2f008161..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py index 0c9abb82837e..de8ba7802883 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py index fb1a13ff5df0..1e1d7f9045b0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py index 4652fb95c82d..85841f097156 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py index 1341fa16f859..45c6534000d4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from petstore_api.models.read_only_first import ReadOnlyFirst -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py index 51f5634d71f5..0f0e7cd5fb49 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py index d65730f3b7f0..c2cd8dbbb1e1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class BasquePig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py index e0d15ccedc0b..93ac4500d0fe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bathing(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py index 14146467839c..805fe4108b51 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Capitalization(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py index 79737d663326..b68c93781b91 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Cat(Animal): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py index a5a72f2fa830..1ea75403b948 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py index 4af91602323d..e6f645e0a24c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py index f5b84746fe7d..892d9711402f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py index 2ba2c0cc5a2f..0853fb65bad8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ClassModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py index d77512715f81..183726d18db3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Client(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py index 090044e9000b..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py index 5a4df05de344..2fc7149a5d87 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Union from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py index 3c640faf6d77..2f4938fe02a0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CreatureInfo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py index 0479861b0089..89f884552e9f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DanishPig(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/data_output_format.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/data_output_format.py index e32ebe9a5ee4..69b3c8e9c570 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/data_output_format.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/data_output_format.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class DataOutputFormat(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py index f778ca7f03f4..dd6cd83d3837 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DeprecatedObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py index ba59592faee2..868f74dcb5c7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List from petstore_api.models.discriminator_all_of_super import DiscriminatorAllOfSuper -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py index 3cac28252bf3..6278ab30f2d3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py index 1c825e89365a..f5d54fc52e02 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Dog(Animal): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py index 0d2f3614105c..8046e431efcc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DummyModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py index 12746c83c7db..9058e733f38d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_class.py index b4e61d237db8..ebfb6a1989db 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_class.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumClass(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_number_vendor_ext.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_number_vendor_ext.py index 91d2161cbc6d..3cc47a403f43 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_number_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_number_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumNumberVendorExt(IntEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py index 957a552e2fc5..3e449adf0e6f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.data_output_format import DataOutputFormat -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumRefWithDefaultValue(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string1.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string1.py index d6970ff8346f..e980cefe5964 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string1.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string1.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString1(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string2.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string2.py index c4fc722f826a..04fd5902a901 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string2.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string2.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString2(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string_vendor_ext.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string_vendor_ext.py index 175ace79326f..aead473c1c3e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string_vendor_ext.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_string_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumStringVendorExt(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py index b77c620e4bcb..073dedc9bdc6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py @@ -25,7 +25,12 @@ from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py index 64142278a50b..e09011847472 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Feeding(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py index f3dd8d6d43d4..eac2fc3fa75f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class File(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py index 6072cd162b67..87305783132d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FileSchemaTestClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py index c12dba8d76ed..aa09b8fc35d1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FirstRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py index ec196e9ea2d3..54b789dc9898 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Foo(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py index b102224ce946..57b8300cf68a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.foo import Foo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FooGetDefaultResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py index 78cdcb46795b..0a0d3f749467 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py @@ -23,7 +23,12 @@ from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from uuid import UUID -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FormatTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py index 92d96ff14304..c257362d962c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HasOnlyReadOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py index 079807b36794..ee3556ed4bd9 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HealthCheckResult(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py index dd855c334259..ed6f42ca5e72 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature import Creature from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HuntingDog(Creature): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py index ac665215b6b9..eb39bdbbf9b3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Info(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py index e04313b90a30..8f9dccae1049 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InnerDictWithProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py index 68d41d1161b5..6efebc64bb8e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InputAllOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py index d304066f68c0..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self INTORSTRING_ONE_OF_SCHEMAS = ["int", "str"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py index a8ffddde3e7e..dbb29d6bb664 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ListClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py index 97bdaf031b75..a126c9d91a52 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py index ef7c87f5129f..46761c0c152c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py index 0937fd7279b2..f48e64f4d4e1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py index 37e2cb8437bc..0c8d37878e27 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Model200Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py index fe0b0c205528..7f8083a2c723 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelApiResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py index 5e2648982263..ade9abbc7c5a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelField(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py index e55be39e9ea5..dd0b7c0543db 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelReturn(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py index 609239f47642..f6a8d5f85471 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MultiArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py index c20b05eb1242..789ef0f1d4a3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Name(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py index 4dd721d81d76..3a45254f66e8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py @@ -20,7 +20,12 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py index b719c5d2fbfc..02b7aad029f2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py index 6d2ad59bea24..212c773d7c2c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py index 2c52932810c9..b7f82ceecb7f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectToTestAdditionalProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py index e717aca9f840..58177ea3b446 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.deprecated_object import DeprecatedObject -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectWithDeprecatedFields(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py index 296305139b24..14c2747d90f2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,12 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ONEOFENUMSTRING_ONE_OF_SCHEMAS = ["EnumString1", "EnumString2"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py index bedc245834de..f041cc53d7ee 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py @@ -20,7 +20,12 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Order(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py index dc5c6e2ce918..3e3f8b2c937a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterComposite(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum.py index ee5753ebef43..5ec677f92dc5 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_default_value.py index 7b013c460e2b..61bb40420506 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumDefaultValue(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer.py index 03ee644405ed..b9c085cc6f0a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumInteger(IntEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer_default_value.py index 55735ba9b13f..9721aad02b08 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_enum_integer_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumIntegerDefaultValue(IntEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py index 9f87402e6872..e57f5bced289 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterObjectWithEnumProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py index f73c90b585e8..ad733ac8da5d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Parent(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py index 3c6dabd2622e..4478538d6f3d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ParentWithOptionalDict(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py index 72b735cfc4a5..c3a7db673d05 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py @@ -22,7 +22,12 @@ from typing_extensions import Annotated from petstore_api.models.category import Category from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py index 72dcce5f6eda..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py index 3d8dd39f423d..dd567f0fe33a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.type import Type -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PonySizes(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py index f3ee4b1beeab..66989c9df600 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PoopCleaning(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py index 73cf769c420f..fbea28277e65 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PrimitiveString(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py index 1a88be774cff..76ea44f26a87 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyMap(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py index fa03a8d6a2dc..057c7f6c1a4b 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyNameCollision(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py index 83a979697427..2cf760a02076 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ReadOnlyFirst(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py index 60995a2f86e4..be7983dc2f20 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondCircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py index 0f5def8cd63b..a10a60ccf21f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py index c7d8d05de11e..4343e2220413 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SelfReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/single_ref_type.py index 32b33b2271fe..7d46ffd18454 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/single_ref_type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SingleRefType(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_character_enum.py index bf8d0a25df90..bcf02d457acb 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_character_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SpecialCharacterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py index 415b1a3cfc70..8c015def6b52 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialModelName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py index 37f1dbc0a145..8b975e1994c0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.category import Category -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialName(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py index 45ddf84f09c0..2ef47be87be6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py index 3facc2817f37..663316edfa32 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List from uuid import UUID from petstore_api.models.task_activity import TaskActivity -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Task(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py index 8eb1262d9014..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py @@ -18,7 +18,12 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self TASKACTIVITY_ONE_OF_SCHEMAS = ["Bathing", "Feeding", "PoopCleaning"] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum.py index 331f0fd597bd..feddb5693db3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum_with_default.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum_with_default.py index 0f3d74610b96..7d800b9bf4d3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum_with_default.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_enum_with_default.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnumWithDefault(StrEnum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py index f044de875d5a..5fee02f6f074 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel400Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py index a2fc98ccef6b..667c21b33ee7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel404Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py index 2b9fab3d655d..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py index b88a6db05c88..11a7f8d8be53 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.test_enum import TestEnum from petstore_api.models.test_enum_with_default import TestEnumWithDefault -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestModelWithEnumDefault(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 5e9aa624e3ef..b1903937130e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestObjectForMultipartRequestsRequestMarker(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py index e460c28ba072..2fa9f7b85517 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tiger(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/type.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/type.py index 3ab767b6125b..6d3f5693e7f5 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/type.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class Type(Enum): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 02fa163400ac..025fbcecb0a3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalModelListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index cece847fccd8..c8aa25e7e51f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalStringListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py index 90e3548352f1..9c861c822ea2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py index 11c2fee0b58e..3c1d1f299a0c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class User(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py index b0c0c9509e18..732dcf720ecc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.one_of_enum_string import OneOfEnumString from petstore_api.models.pig import Pig -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class WithNestedOneOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python-lazyImports/pyproject.toml b/samples/openapi3/client/petstore/python-lazyImports/pyproject.toml index 238f4e671ac6..a466656e8b6e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/pyproject.toml +++ b/samples/openapi3/client/petstore/python-lazyImports/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "Apache-2.0" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/samples/openapi3/client/petstore/python-lazyImports/setup.py b/samples/openapi3/client/petstore/python-lazyImports/setup.py index 0a454926a270..9151759e1fda 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/setup.py +++ b/samples/openapi3/client/petstore/python-lazyImports/setup.py @@ -21,7 +21,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index 1878ef1cf9e6..a60c05ad93ef 100755 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.9+ +Python 3.11+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index 5a5242c4ea31..2d009246937e 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -18,7 +18,12 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, NotRequired, Optional, TypedDict, Union, Self +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import NotRequired, Self +except ImportError: + from typing_extensions import NotRequired, Self import urllib3 diff --git a/samples/openapi3/client/petstore/python/petstore_api/exceptions.py b/samples/openapi3/client/petstore/python/petstore_api/exceptions.py index a5d2c10c55be..4069eea7b6d4 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/exceptions.py +++ b/samples/openapi3/client/petstore/python/petstore_api/exceptions.py @@ -10,7 +10,12 @@ """ # noqa: E501 -from typing import Any, Optional, Self +from typing import Any, Optional +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py index 605dbfe957ce..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesAnyType(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py index c8e836e83b9b..b5e08aa86a4f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py index ca9b42804ae1..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py index 03e45fe3145e..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AdditionalPropertiesWithDescriptionOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py index c9724286626e..8db6944f75ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfSuperModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py index 96d83a781d49..120572007721 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.single_ref_type import SingleRefType -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class AllOfWithSingleRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py index 17bcc87c4c70..8568510ee341 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py index 409aa313750f..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFCOLOR_ANY_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py index 436d2f008161..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ANYOFPIG_ANY_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py index 0c9abb82837e..de8ba7802883 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py index fb1a13ff5df0..1e1d7f9045b0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py index 4652fb95c82d..85841f097156 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayOfNumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py index 1341fa16f859..45c6534000d4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from petstore_api.models.read_only_first import ReadOnlyFirst -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ArrayTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py index 51f5634d71f5..0f0e7cd5fb49 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py index d65730f3b7f0..c2cd8dbbb1e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class BasquePig(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py index e0d15ccedc0b..93ac4500d0fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Bathing(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py index 14146467839c..805fe4108b51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Capitalization(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py index 79737d663326..b68c93781b91 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictBool from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Cat(Animal): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/category.py b/samples/openapi3/client/petstore/python/petstore_api/models/category.py index a5a72f2fa830..1ea75403b948 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/category.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Category(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py index 4af91602323d..e6f645e0a24c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py index f5b84746fe7d..892d9711402f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CircularReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py index 2ba2c0cc5a2f..0853fb65bad8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ClassModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/client.py b/samples/openapi3/client/petstore/python/petstore_api/models/client.py index d77512715f81..183726d18db3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/client.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Client(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/color.py b/samples/openapi3/client/petstore/python/petstore_api/models/color.py index 090044e9000b..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/color.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self COLOR_ONE_OF_SCHEMAS = ["List[int]", "str"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py index 5a4df05de344..2fc7149a5d87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py @@ -21,7 +21,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Union from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py index 3c640faf6d77..2f4938fe02a0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class CreatureInfo(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py index 0479861b0089..89f884552e9f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DanishPig(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/data_output_format.py b/samples/openapi3/client/petstore/python/petstore_api/models/data_output_format.py index e32ebe9a5ee4..69b3c8e9c570 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/data_output_format.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/data_output_format.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class DataOutputFormat(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py index f778ca7f03f4..dd6cd83d3837 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DeprecatedObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py index ba59592faee2..868f74dcb5c7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List from petstore_api.models.discriminator_all_of_super import DiscriminatorAllOfSuper -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py index 3cac28252bf3..6278ab30f2d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py @@ -20,7 +20,12 @@ from importlib import import_module from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Union -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field from typing import TYPE_CHECKING diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py index 1c825e89365a..f5d54fc52e02 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Dog(Animal): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py index 0d2f3614105c..8046e431efcc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class DummyModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py index 12746c83c7db..9058e733f38d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_class.py index b4e61d237db8..ebfb6a1989db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_class.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumClass(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_number_vendor_ext.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_number_vendor_ext.py index 91d2161cbc6d..3cc47a403f43 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_number_vendor_ext.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_number_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumNumberVendorExt(IntEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py index 957a552e2fc5..3e449adf0e6f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.data_output_format import DataOutputFormat -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumRefWithDefaultValue(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string1.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string1.py index d6970ff8346f..e980cefe5964 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string1.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string1.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString1(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string2.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string2.py index c4fc722f826a..04fd5902a901 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string2.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string2.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumString2(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string_vendor_ext.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string_vendor_ext.py index 175ace79326f..aead473c1c3e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_string_vendor_ext.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_string_vendor_ext.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class EnumStringVendorExt(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py index b77c620e4bcb..073dedc9bdc6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py @@ -25,7 +25,12 @@ from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue from petstore_api.models.outer_enum_integer import OuterEnumInteger from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class EnumTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py index 64142278a50b..e09011847472 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Feeding(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file.py b/samples/openapi3/client/petstore/python/petstore_api/models/file.py index f3dd8d6d43d4..eac2fc3fa75f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class File(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py index 6072cd162b67..87305783132d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FileSchemaTestClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py index c12dba8d76ed..aa09b8fc35d1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FirstRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py index ec196e9ea2d3..54b789dc9898 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Foo(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py index b102224ce946..57b8300cf68a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.foo import Foo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FooGetDefaultResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py index 78cdcb46795b..0a0d3f749467 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py @@ -23,7 +23,12 @@ from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from uuid import UUID -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class FormatTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py index 92d96ff14304..c257362d962c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HasOnlyReadOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py index 079807b36794..ee3556ed4bd9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HealthCheckResult(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py index dd855c334259..ed6f42ca5e72 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature import Creature from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class HuntingDog(Creature): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/info.py b/samples/openapi3/client/petstore/python/petstore_api/models/info.py index ac665215b6b9..eb39bdbbf9b3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/info.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Info(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py index e04313b90a30..8f9dccae1049 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InnerDictWithProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py index 68d41d1161b5..6efebc64bb8e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class InputAllOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py index d304066f68c0..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py @@ -15,7 +15,12 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self INTORSTRING_ONE_OF_SCHEMAS = ["int", "str"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py index a8ffddde3e7e..dbb29d6bb664 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ListClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py index 97bdaf031b75..a126c9d91a52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapOfArrayOfModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py index ef7c87f5129f..46761c0c152c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MapTest(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py index 0937fd7279b2..f48e64f4d4e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -22,7 +22,12 @@ from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID from petstore_api.models.animal import Animal -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py index 37e2cb8437bc..0c8d37878e27 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Model200Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py index fe0b0c205528..7f8083a2c723 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelApiResponse(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py index 5e2648982263..ade9abbc7c5a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelField(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py index e55be39e9ea5..dd0b7c0543db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ModelReturn(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py index 609239f47642..f6a8d5f85471 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.file import File from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class MultiArrays(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/name.py b/samples/openapi3/client/petstore/python/petstore_api/models/name.py index c20b05eb1242..789ef0f1d4a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Name(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py index 4dd721d81d76..3a45254f66e8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py @@ -20,7 +20,12 @@ from datetime import date, datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableClass(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py index b719c5d2fbfc..02b7aad029f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NullableProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py index 6d2ad59bea24..212c773d7c2c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class NumberOnly(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py index 2c52932810c9..b7f82ceecb7f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectToTestAdditionalProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py index e717aca9f840..58177ea3b446 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.deprecated_object import DeprecatedObject -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ObjectWithDeprecatedFields(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py index 296305139b24..14c2747d90f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,12 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self ONEOFENUMSTRING_ONE_OF_SCHEMAS = ["EnumString1", "EnumString2"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/order.py b/samples/openapi3/client/petstore/python/petstore_api/models/order.py index bedc245834de..f041cc53d7ee 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/order.py @@ -20,7 +20,12 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Order(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py index dc5c6e2ce918..3e3f8b2c937a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterComposite(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum.py index ee5753ebef43..5ec677f92dc5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_default_value.py index 7b013c460e2b..61bb40420506 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumDefaultValue(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer.py index 03ee644405ed..b9c085cc6f0a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumInteger(IntEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py index 55735ba9b13f..9721aad02b08 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class OuterEnumIntegerDefaultValue(IntEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py index 9f87402e6872..e57f5bced289 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.outer_enum import OuterEnum from petstore_api.models.outer_enum_integer import OuterEnumInteger -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class OuterObjectWithEnumProperty(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py index f73c90b585e8..ad733ac8da5d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Parent(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py index 3c6dabd2622e..4478538d6f3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.inner_dict_with_property import InnerDictWithProperty -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ParentWithOptionalDict(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py index 72b735cfc4a5..c3a7db673d05 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py @@ -22,7 +22,12 @@ from typing_extensions import Annotated from petstore_api.models.category import Category from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Pet(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py index 72dcce5f6eda..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py @@ -17,7 +17,12 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self PIG_ONE_OF_SCHEMAS = ["BasquePig", "DanishPig"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py index 3d8dd39f423d..dd567f0fe33a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.type import Type -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PonySizes(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py index f3ee4b1beeab..66989c9df600 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PoopCleaning(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py index 73cf769c420f..fbea28277e65 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py @@ -20,7 +20,12 @@ from pydantic import ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.base_discriminator import BaseDiscriminator -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PrimitiveString(BaseDiscriminator): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py index 1a88be774cff..76ea44f26a87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.tag import Tag -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyMap(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py index fa03a8d6a2dc..057c7f6c1a4b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class PropertyNameCollision(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py index 83a979697427..2cf760a02076 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class ReadOnlyFirst(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py index 60995a2f86e4..be7983dc2f20 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondCircularAllOfRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py index 0f5def8cd63b..a10a60ccf21f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SecondRef(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py index c7d8d05de11e..4343e2220413 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SelfReferenceModel(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/single_ref_type.py b/samples/openapi3/client/petstore/python/petstore_api/models/single_ref_type.py index 32b33b2271fe..7d46ffd18454 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/single_ref_type.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/single_ref_type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SingleRefType(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_character_enum.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_character_enum.py index bf8d0a25df90..bcf02d457acb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_character_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_character_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class SpecialCharacterEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py index 415b1a3cfc70..8c015def6b52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialModelName(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py index 37f1dbc0a145..8b975e1994c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.category import Category -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class SpecialName(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py index 45ddf84f09c0..2ef47be87be6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tag(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task.py b/samples/openapi3/client/petstore/python/petstore_api/models/task.py index 3facc2817f37..663316edfa32 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List from uuid import UUID from petstore_api.models.task_activity import TaskActivity -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Task(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py index 8eb1262d9014..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py @@ -18,7 +18,12 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union, Self +from typing import Any, Dict, List, Union +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self TASKACTIVITY_ONE_OF_SCHEMAS = ["Bathing", "Feeding", "PoopCleaning"] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_enum.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_enum.py index 331f0fd597bd..feddb5693db3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_enum.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_enum.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnum(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_enum_with_default.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_enum_with_default.py index 0f3d74610b96..7d800b9bf4d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_enum_with_default.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_enum_with_default.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class TestEnumWithDefault(StrEnum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py index f044de875d5a..5fee02f6f074 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel400Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py index a2fc98ccef6b..667c21b33ee7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestErrorResponsesWithModel404Response(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py index 2b9fab3d655d..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py index b88a6db05c88..11a7f8d8be53 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.test_enum import TestEnum from petstore_api.models.test_enum_with_default import TestEnumWithDefault -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestModelWithEnumDefault(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 5e9aa624e3ef..b1903937130e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class TestObjectForMultipartRequestsRequestMarker(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py index e460c28ba072..2fa9f7b85517 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class Tiger(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/type.py b/samples/openapi3/client/petstore/python/petstore_api/models/type.py index 3ab767b6125b..6d3f5693e7f5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/type.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/type.py @@ -15,7 +15,11 @@ from __future__ import annotations import json from enum import Enum, StrEnum, IntEnum -from typing import Self +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self class Type(Enum): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 02fa163400ac..025fbcecb0a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -20,7 +20,12 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.creature_info import CreatureInfo -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalModelListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index cece847fccd8..c8aa25e7e51f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UnnamedDictWithAdditionalStringListProperties(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py index 90e3548352f1..9c861c822ea2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/user.py b/samples/openapi3/client/petstore/python/petstore_api/models/user.py index 11c2fee0b58e..3c1d1f299a0c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/user.py @@ -19,7 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class User(BaseModel): diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py index b0c0c9509e18..732dcf720ecc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py @@ -21,7 +21,12 @@ from typing import Any, ClassVar, Dict, List, Optional from petstore_api.models.one_of_enum_string import OneOfEnumString from petstore_api.models.pig import Pig -from typing import Literal, Self +from typing import Literal +# TODO: When dropping Python 3.10 support, remove fallback +try: + from typing import Self +except ImportError: + from typing_extensions import Self from pydantic import Field class WithNestedOneOf(BaseModel): diff --git a/samples/openapi3/client/petstore/python/pyproject.toml b/samples/openapi3/client/petstore/python/pyproject.toml index a4ee37d24b50..eed3d1a1ac49 100644 --- a/samples/openapi3/client/petstore/python/pyproject.toml +++ b/samples/openapi3/client/petstore/python/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "Apache-2.0" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] -requires-python = ">=3.11" +requires-python = ">=3.9" dependencies = [ "urllib3 (>=2.1.0,<3.0.0)", diff --git a/samples/openapi3/client/petstore/python/setup.py b/samples/openapi3/client/petstore/python/setup.py index 5f62e953eef2..8c014ad79605 100755 --- a/samples/openapi3/client/petstore/python/setup.py +++ b/samples/openapi3/client/petstore/python/setup.py @@ -21,7 +21,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">= 3.11" +PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", From 82b29dc6cec1cf9de2225bd375790861f8f7780b Mon Sep 17 00:00:00 2001 From: timonrieger Date: Sun, 8 Feb 2026 00:24:13 +0100 Subject: [PATCH 2/8] use built in types these are supported from3.9 onwards, matching the current python constraint, so non-breaking --- .../src/main/resources/python/api.mustache | 19 +- .../main/resources/python/api_client.mustache | 30 +- .../resources/python/configuration.mustache | 26 +- .../resources/python/model_anyof.mustache | 8 +- .../resources/python/model_generic.mustache | 18 +- .../resources/python/model_oneof.mustache | 8 +- .../resources/python/partial_api.mustache | 2 +- .../python/partial_api_args.mustache | 6 +- .../main/resources/python/signing.mustache | 4 +- .../openapi_client/api/auth_api.py | 83 +- .../openapi_client/api/body_api.py | 403 +++-- .../openapi_client/api/form_api.py | 123 +- .../openapi_client/api/header_api.py | 43 +- .../openapi_client/api/path_api.py | 43 +- .../openapi_client/api/query_api.py | 443 +++-- .../openapi_client/api_client.py | 30 +- .../openapi_client/configuration.py | 26 +- .../openapi_client/models/bird.py | 8 +- .../openapi_client/models/category.py | 8 +- .../openapi_client/models/data_query.py | 8 +- .../openapi_client/models/default_value.py | 10 +- .../models/number_properties_only.py | 8 +- .../openapi_client/models/pet.py | 8 +- .../openapi_client/models/query.py | 10 +- .../openapi_client/models/tag.py | 8 +- ...st_form_object_multipart_request_marker.py | 8 +- ...ue_object_all_of_query_object_parameter.py | 8 +- ...rue_array_string_query_object_parameter.py | 8 +- .../python/openapi_client/api/auth_api.py | 83 +- .../python/openapi_client/api/body_api.py | 403 +++-- .../python/openapi_client/api/form_api.py | 123 +- .../python/openapi_client/api/header_api.py | 43 +- .../python/openapi_client/api/path_api.py | 43 +- .../python/openapi_client/api/query_api.py | 443 +++-- .../python/openapi_client/api_client.py | 30 +- .../python/openapi_client/configuration.py | 26 +- .../python/openapi_client/models/bird.py | 8 +- .../python/openapi_client/models/category.py | 8 +- .../openapi_client/models/data_query.py | 8 +- .../openapi_client/models/default_value.py | 10 +- .../models/number_properties_only.py | 8 +- .../python/openapi_client/models/pet.py | 8 +- .../python/openapi_client/models/query.py | 10 +- .../python/openapi_client/models/tag.py | 8 +- ...st_form_object_multipart_request_marker.py | 8 +- ...ue_object_all_of_query_object_parameter.py | 8 +- ...rue_array_string_query_object_parameter.py | 8 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../petstore_api/api/fake_api.py | 1483 ++++++++--------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../petstore_api/api/user_api.py | 323 ++-- .../python-aiohttp/petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 8 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 8 +- .../models/all_of_with_single_ref.py | 8 +- .../petstore_api/models/animal.py | 12 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 8 +- .../models/array_of_array_of_number_only.py | 8 +- .../models/array_of_number_only.py | 8 +- .../petstore_api/models/array_test.py | 8 +- .../petstore_api/models/base_discriminator.py | 12 +- .../petstore_api/models/basque_pig.py | 8 +- .../petstore_api/models/bathing.py | 8 +- .../petstore_api/models/capitalization.py | 8 +- .../python-aiohttp/petstore_api/models/cat.py | 8 +- .../petstore_api/models/category.py | 8 +- .../models/circular_all_of_ref.py | 8 +- .../models/circular_reference_model.py | 8 +- .../petstore_api/models/class_model.py | 8 +- .../petstore_api/models/client.py | 8 +- .../petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 12 +- .../petstore_api/models/creature_info.py | 8 +- .../petstore_api/models/danish_pig.py | 8 +- .../petstore_api/models/deprecated_object.py | 8 +- .../models/discriminator_all_of_sub.py | 8 +- .../models/discriminator_all_of_super.py | 12 +- .../python-aiohttp/petstore_api/models/dog.py | 8 +- .../petstore_api/models/dummy_model.py | 8 +- .../petstore_api/models/enum_arrays.py | 10 +- .../models/enum_ref_with_default_value.py | 8 +- .../petstore_api/models/enum_test.py | 8 +- .../petstore_api/models/feeding.py | 8 +- .../petstore_api/models/file.py | 8 +- .../models/file_schema_test_class.py | 8 +- .../petstore_api/models/first_ref.py | 8 +- .../python-aiohttp/petstore_api/models/foo.py | 8 +- .../models/foo_get_default_response.py | 8 +- .../petstore_api/models/format_test.py | 8 +- .../petstore_api/models/has_only_read_only.py | 8 +- .../models/health_check_result.py | 8 +- .../petstore_api/models/hunting_dog.py | 8 +- .../petstore_api/models/info.py | 8 +- .../models/inner_dict_with_property.py | 8 +- .../petstore_api/models/input_all_of.py | 8 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 8 +- .../models/map_of_array_of_model.py | 8 +- .../petstore_api/models/map_test.py | 8 +- ...perties_and_additional_properties_class.py | 8 +- .../petstore_api/models/model200_response.py | 8 +- .../petstore_api/models/model_api_response.py | 8 +- .../petstore_api/models/model_field.py | 8 +- .../petstore_api/models/model_return.py | 8 +- .../petstore_api/models/multi_arrays.py | 8 +- .../petstore_api/models/name.py | 8 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 8 +- .../petstore_api/models/number_only.py | 8 +- .../object_to_test_additional_properties.py | 8 +- .../models/object_with_deprecated_fields.py | 8 +- .../petstore_api/models/order.py | 8 +- .../petstore_api/models/outer_composite.py | 8 +- .../models/outer_object_with_enum_property.py | 8 +- .../petstore_api/models/parent.py | 8 +- .../models/parent_with_optional_dict.py | 8 +- .../python-aiohttp/petstore_api/models/pet.py | 8 +- .../python-aiohttp/petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 8 +- .../petstore_api/models/poop_cleaning.py | 8 +- .../petstore_api/models/primitive_string.py | 8 +- .../petstore_api/models/property_map.py | 8 +- .../models/property_name_collision.py | 8 +- .../petstore_api/models/read_only_first.py | 8 +- .../models/second_circular_all_of_ref.py | 8 +- .../petstore_api/models/second_ref.py | 8 +- .../models/self_reference_model.py | 8 +- .../petstore_api/models/special_model_name.py | 8 +- .../petstore_api/models/special_name.py | 8 +- .../python-aiohttp/petstore_api/models/tag.py | 8 +- .../petstore_api/models/task.py | 8 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 8 +- ..._error_responses_with_model404_response.py | 8 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 8 +- ...t_for_multipart_requests_request_marker.py | 8 +- .../petstore_api/models/tiger.py | 8 +- ...t_with_additional_model_list_properties.py | 8 +- ..._with_additional_string_list_properties.py | 8 +- ...th_additional_properties_request_object.py | 8 +- .../petstore_api/models/user.py | 8 +- .../petstore_api/models/with_nested_one_of.py | 8 +- .../python-aiohttp/petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../python-httpx/petstore_api/api/fake_api.py | 1483 ++++++++--------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../python-httpx/petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../python-httpx/petstore_api/api/user_api.py | 323 ++-- .../python-httpx/petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 8 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 8 +- .../models/all_of_with_single_ref.py | 8 +- .../petstore_api/models/animal.py | 12 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 8 +- .../models/array_of_array_of_number_only.py | 8 +- .../models/array_of_number_only.py | 8 +- .../petstore_api/models/array_test.py | 8 +- .../petstore_api/models/base_discriminator.py | 12 +- .../petstore_api/models/basque_pig.py | 8 +- .../petstore_api/models/bathing.py | 8 +- .../petstore_api/models/capitalization.py | 8 +- .../python-httpx/petstore_api/models/cat.py | 8 +- .../petstore_api/models/category.py | 8 +- .../models/circular_all_of_ref.py | 8 +- .../models/circular_reference_model.py | 8 +- .../petstore_api/models/class_model.py | 8 +- .../petstore_api/models/client.py | 8 +- .../python-httpx/petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 12 +- .../petstore_api/models/creature_info.py | 8 +- .../petstore_api/models/danish_pig.py | 8 +- .../petstore_api/models/deprecated_object.py | 8 +- .../models/discriminator_all_of_sub.py | 8 +- .../models/discriminator_all_of_super.py | 12 +- .../python-httpx/petstore_api/models/dog.py | 8 +- .../petstore_api/models/dummy_model.py | 8 +- .../petstore_api/models/enum_arrays.py | 10 +- .../models/enum_ref_with_default_value.py | 8 +- .../petstore_api/models/enum_test.py | 8 +- .../petstore_api/models/feeding.py | 8 +- .../python-httpx/petstore_api/models/file.py | 8 +- .../models/file_schema_test_class.py | 8 +- .../petstore_api/models/first_ref.py | 8 +- .../python-httpx/petstore_api/models/foo.py | 8 +- .../models/foo_get_default_response.py | 8 +- .../petstore_api/models/format_test.py | 8 +- .../petstore_api/models/has_only_read_only.py | 8 +- .../models/health_check_result.py | 8 +- .../petstore_api/models/hunting_dog.py | 8 +- .../python-httpx/petstore_api/models/info.py | 8 +- .../models/inner_dict_with_property.py | 8 +- .../petstore_api/models/input_all_of.py | 8 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 8 +- .../models/map_of_array_of_model.py | 8 +- .../petstore_api/models/map_test.py | 8 +- ...perties_and_additional_properties_class.py | 8 +- .../petstore_api/models/model200_response.py | 8 +- .../petstore_api/models/model_api_response.py | 8 +- .../petstore_api/models/model_field.py | 8 +- .../petstore_api/models/model_return.py | 8 +- .../petstore_api/models/multi_arrays.py | 8 +- .../python-httpx/petstore_api/models/name.py | 8 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 8 +- .../petstore_api/models/number_only.py | 8 +- .../object_to_test_additional_properties.py | 8 +- .../models/object_with_deprecated_fields.py | 8 +- .../python-httpx/petstore_api/models/order.py | 8 +- .../petstore_api/models/outer_composite.py | 8 +- .../models/outer_object_with_enum_property.py | 8 +- .../petstore_api/models/parent.py | 8 +- .../models/parent_with_optional_dict.py | 8 +- .../python-httpx/petstore_api/models/pet.py | 8 +- .../python-httpx/petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 8 +- .../petstore_api/models/poop_cleaning.py | 8 +- .../petstore_api/models/primitive_string.py | 8 +- .../petstore_api/models/property_map.py | 8 +- .../models/property_name_collision.py | 8 +- .../petstore_api/models/read_only_first.py | 8 +- .../models/second_circular_all_of_ref.py | 8 +- .../petstore_api/models/second_ref.py | 8 +- .../models/self_reference_model.py | 8 +- .../petstore_api/models/special_model_name.py | 8 +- .../petstore_api/models/special_name.py | 8 +- .../python-httpx/petstore_api/models/tag.py | 8 +- .../python-httpx/petstore_api/models/task.py | 8 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 8 +- ..._error_responses_with_model404_response.py | 8 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 8 +- ...t_for_multipart_requests_request_marker.py | 8 +- .../python-httpx/petstore_api/models/tiger.py | 8 +- ...t_with_additional_model_list_properties.py | 8 +- ..._with_additional_string_list_properties.py | 8 +- ...th_additional_properties_request_object.py | 8 +- .../python-httpx/petstore_api/models/user.py | 8 +- .../petstore_api/models/with_nested_one_of.py | 8 +- .../python-httpx/petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../petstore_api/api/fake_api.py | 1483 ++++++++--------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../petstore_api/api/user_api.py | 323 ++-- .../petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 10 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 10 +- .../models/all_of_with_single_ref.py | 10 +- .../petstore_api/models/animal.py | 14 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 10 +- .../models/array_of_array_of_number_only.py | 10 +- .../models/array_of_number_only.py | 10 +- .../petstore_api/models/array_test.py | 10 +- .../petstore_api/models/base_discriminator.py | 14 +- .../petstore_api/models/basque_pig.py | 10 +- .../petstore_api/models/bathing.py | 10 +- .../petstore_api/models/capitalization.py | 10 +- .../petstore_api/models/cat.py | 10 +- .../petstore_api/models/category.py | 10 +- .../models/circular_all_of_ref.py | 10 +- .../models/circular_reference_model.py | 10 +- .../petstore_api/models/class_model.py | 10 +- .../petstore_api/models/client.py | 10 +- .../petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 14 +- .../petstore_api/models/creature_info.py | 10 +- .../petstore_api/models/danish_pig.py | 10 +- .../petstore_api/models/deprecated_object.py | 10 +- .../models/discriminator_all_of_sub.py | 10 +- .../models/discriminator_all_of_super.py | 14 +- .../petstore_api/models/dog.py | 10 +- .../petstore_api/models/dummy_model.py | 10 +- .../petstore_api/models/enum_arrays.py | 12 +- .../models/enum_ref_with_default_value.py | 10 +- .../petstore_api/models/enum_test.py | 10 +- .../petstore_api/models/feeding.py | 10 +- .../petstore_api/models/file.py | 10 +- .../models/file_schema_test_class.py | 10 +- .../petstore_api/models/first_ref.py | 10 +- .../petstore_api/models/foo.py | 10 +- .../models/foo_get_default_response.py | 10 +- .../petstore_api/models/format_test.py | 10 +- .../petstore_api/models/has_only_read_only.py | 10 +- .../models/health_check_result.py | 10 +- .../petstore_api/models/hunting_dog.py | 10 +- .../petstore_api/models/info.py | 10 +- .../models/inner_dict_with_property.py | 10 +- .../petstore_api/models/input_all_of.py | 10 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 10 +- .../models/map_of_array_of_model.py | 10 +- .../petstore_api/models/map_test.py | 10 +- ...perties_and_additional_properties_class.py | 10 +- .../petstore_api/models/model200_response.py | 10 +- .../petstore_api/models/model_api_response.py | 10 +- .../petstore_api/models/model_field.py | 10 +- .../petstore_api/models/model_return.py | 10 +- .../petstore_api/models/multi_arrays.py | 10 +- .../petstore_api/models/name.py | 10 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 10 +- .../petstore_api/models/number_only.py | 10 +- .../object_to_test_additional_properties.py | 10 +- .../models/object_with_deprecated_fields.py | 10 +- .../petstore_api/models/one_of_enum_string.py | 8 +- .../petstore_api/models/order.py | 10 +- .../petstore_api/models/outer_composite.py | 10 +- .../models/outer_object_with_enum_property.py | 10 +- .../petstore_api/models/parent.py | 10 +- .../models/parent_with_optional_dict.py | 10 +- .../petstore_api/models/pet.py | 10 +- .../petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 10 +- .../petstore_api/models/poop_cleaning.py | 10 +- .../petstore_api/models/primitive_string.py | 10 +- .../petstore_api/models/property_map.py | 10 +- .../models/property_name_collision.py | 10 +- .../petstore_api/models/read_only_first.py | 10 +- .../models/second_circular_all_of_ref.py | 10 +- .../petstore_api/models/second_ref.py | 10 +- .../models/self_reference_model.py | 10 +- .../petstore_api/models/special_model_name.py | 10 +- .../petstore_api/models/special_name.py | 10 +- .../petstore_api/models/tag.py | 10 +- .../petstore_api/models/task.py | 10 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 10 +- ..._error_responses_with_model404_response.py | 10 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 10 +- ...t_for_multipart_requests_request_marker.py | 10 +- .../petstore_api/models/tiger.py | 10 +- ...t_with_additional_model_list_properties.py | 10 +- ..._with_additional_string_list_properties.py | 10 +- ...th_additional_properties_request_object.py | 10 +- .../petstore_api/models/user.py | 10 +- .../petstore_api/models/with_nested_one_of.py | 10 +- .../petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../python/petstore_api/api/default_api.py | 43 +- .../python/petstore_api/api/fake_api.py | 1483 ++++++++--------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../python/petstore_api/api/pet_api.py | 363 ++-- .../python/petstore_api/api/store_api.py | 163 +- .../python/petstore_api/api/user_api.py | 323 ++-- .../python/petstore_api/api_client.py | 30 +- .../python/petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 10 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 10 +- .../models/all_of_with_single_ref.py | 10 +- .../python/petstore_api/models/animal.py | 14 +- .../petstore_api/models/any_of_color.py | 8 +- .../python/petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 10 +- .../models/array_of_array_of_number_only.py | 10 +- .../models/array_of_number_only.py | 10 +- .../python/petstore_api/models/array_test.py | 10 +- .../petstore_api/models/base_discriminator.py | 14 +- .../python/petstore_api/models/basque_pig.py | 10 +- .../python/petstore_api/models/bathing.py | 10 +- .../petstore_api/models/capitalization.py | 10 +- .../python/petstore_api/models/cat.py | 10 +- .../python/petstore_api/models/category.py | 10 +- .../models/circular_all_of_ref.py | 10 +- .../models/circular_reference_model.py | 10 +- .../python/petstore_api/models/class_model.py | 10 +- .../python/petstore_api/models/client.py | 10 +- .../python/petstore_api/models/color.py | 8 +- .../python/petstore_api/models/creature.py | 14 +- .../petstore_api/models/creature_info.py | 10 +- .../python/petstore_api/models/danish_pig.py | 10 +- .../petstore_api/models/deprecated_object.py | 10 +- .../models/discriminator_all_of_sub.py | 10 +- .../models/discriminator_all_of_super.py | 14 +- .../python/petstore_api/models/dog.py | 10 +- .../python/petstore_api/models/dummy_model.py | 10 +- .../python/petstore_api/models/enum_arrays.py | 12 +- .../models/enum_ref_with_default_value.py | 10 +- .../python/petstore_api/models/enum_test.py | 10 +- .../python/petstore_api/models/feeding.py | 10 +- .../python/petstore_api/models/file.py | 10 +- .../models/file_schema_test_class.py | 10 +- .../python/petstore_api/models/first_ref.py | 10 +- .../python/petstore_api/models/foo.py | 10 +- .../models/foo_get_default_response.py | 10 +- .../python/petstore_api/models/format_test.py | 10 +- .../petstore_api/models/has_only_read_only.py | 10 +- .../models/health_check_result.py | 10 +- .../python/petstore_api/models/hunting_dog.py | 10 +- .../python/petstore_api/models/info.py | 10 +- .../models/inner_dict_with_property.py | 10 +- .../petstore_api/models/input_all_of.py | 10 +- .../petstore_api/models/int_or_string.py | 8 +- .../python/petstore_api/models/list_class.py | 10 +- .../models/map_of_array_of_model.py | 10 +- .../python/petstore_api/models/map_test.py | 10 +- ...perties_and_additional_properties_class.py | 10 +- .../petstore_api/models/model200_response.py | 10 +- .../petstore_api/models/model_api_response.py | 10 +- .../python/petstore_api/models/model_field.py | 10 +- .../petstore_api/models/model_return.py | 10 +- .../petstore_api/models/multi_arrays.py | 10 +- .../python/petstore_api/models/name.py | 10 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 10 +- .../python/petstore_api/models/number_only.py | 10 +- .../object_to_test_additional_properties.py | 10 +- .../models/object_with_deprecated_fields.py | 10 +- .../petstore_api/models/one_of_enum_string.py | 8 +- .../python/petstore_api/models/order.py | 10 +- .../petstore_api/models/outer_composite.py | 10 +- .../models/outer_object_with_enum_property.py | 10 +- .../python/petstore_api/models/parent.py | 10 +- .../models/parent_with_optional_dict.py | 10 +- .../python/petstore_api/models/pet.py | 10 +- .../python/petstore_api/models/pig.py | 8 +- .../python/petstore_api/models/pony_sizes.py | 10 +- .../petstore_api/models/poop_cleaning.py | 10 +- .../petstore_api/models/primitive_string.py | 10 +- .../petstore_api/models/property_map.py | 10 +- .../models/property_name_collision.py | 10 +- .../petstore_api/models/read_only_first.py | 10 +- .../models/second_circular_all_of_ref.py | 10 +- .../python/petstore_api/models/second_ref.py | 10 +- .../models/self_reference_model.py | 10 +- .../petstore_api/models/special_model_name.py | 10 +- .../petstore_api/models/special_name.py | 10 +- .../python/petstore_api/models/tag.py | 10 +- .../python/petstore_api/models/task.py | 10 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 10 +- ..._error_responses_with_model404_response.py | 10 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 10 +- ...t_for_multipart_requests_request_marker.py | 10 +- .../python/petstore_api/models/tiger.py | 10 +- ...t_with_additional_model_list_properties.py | 10 +- ..._with_additional_string_list_properties.py | 10 +- ...th_additional_properties_request_object.py | 10 +- .../python/petstore_api/models/user.py | 10 +- .../petstore_api/models/with_nested_one_of.py | 10 +- .../petstore/python/petstore_api/signing.py | 4 +- 477 files changed, 8222 insertions(+), 8267 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/api.mustache b/modules/openapi-generator/src/main/resources/python/api.mustache index 3dde3f1dd0b3..085dbb685277 100644 --- a/modules/openapi-generator/src/main/resources/python/api.mustache +++ b/modules/openapi-generator/src/main/resources/python/api.mustache @@ -4,8 +4,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated {{#imports}} {{import}} @@ -93,7 +92,7 @@ class {{classname}}: _host = None {{/servers.0}} - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { {{#allParams}} {{#isArray}} '{{baseName}}': '{{collectionFormat}}', @@ -101,12 +100,12 @@ class {{classname}}: {{/allParams}} } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -220,7 +219,7 @@ class {{classname}}: {{/hasConsumes}} # authentication setting - _auth_settings: List[str] = [{{#authMethods}} + _auth_settings: list[str] = [{{#authMethods}} '{{name}}'{{^-last}}, {{/-last}}{{/authMethods}} ] diff --git a/modules/openapi-generator/src/main/resources/python/api_client.mustache b/modules/openapi-generator/src/main/resources/python/api_client.mustache index e72c8eac71b8..2d5b80fafd7e 100644 --- a/modules/openapi-generator/src/main/resources/python/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_client.mustache @@ -15,7 +15,7 @@ import tempfile import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr {{#tornado}} import tornado.gen @@ -35,7 +35,7 @@ from {{packageName}}.exceptions import ( ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -295,7 +295,7 @@ class ApiClient: def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -444,16 +444,16 @@ class ApiClient: return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -486,7 +486,7 @@ class ApiClient: :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -516,7 +516,7 @@ class ApiClient: :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -550,7 +550,7 @@ class ApiClient: def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -583,10 +583,10 @@ class ApiClient: ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -601,7 +601,7 @@ class ApiClient: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index ae69d74c3138..d60f7c0822b2 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -14,7 +14,7 @@ from logging import FileHandler import multiprocessing {{/async}} import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -150,13 +150,13 @@ AuthSettings = TypedDict( class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -166,11 +166,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -288,8 +288,8 @@ conf = {{{packageName}}}.Configuration( def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, @@ -298,8 +298,8 @@ conf = {{{packageName}}}.Configuration( {{/hasHttpSignatureMethods}} server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -453,7 +453,7 @@ conf = {{{packageName}}}.Configuration( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -713,7 +713,7 @@ conf = {{{packageName}}}.Configuration( "SDK Package Version: {{packageVersion}}".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -757,7 +757,7 @@ conf = {{{packageName}}}.Configuration( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache index 097a5b134ff0..412eb4667ae7 100644 --- a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache @@ -4,7 +4,7 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -39,8 +39,8 @@ class {{classname}}(RootModel[Union[{{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyO raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -52,7 +52,7 @@ class {{classname}}(RootModel[Union[{{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyO """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/model_generic.mustache b/modules/openapi-generator/src/main/resources/python/model_generic.mustache index 169fe0cffa0f..4100eb80d777 100644 --- a/modules/openapi-generator/src/main/resources/python/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_generic.mustache @@ -57,8 +57,8 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/values}} {{/isArray}} {{#isArray}} - {{! Array enum - use List[Literal] }} - {{name}}: {{#required}}List[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]{{/required}}{{^required}}Optional[List[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]]{{/required}} = Field( + {{! Array enum - use list[Literal] }} + {{name}}: {{#required}}list[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]{{/required}}{{^required}}Optional[list[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]]{{/required}} = Field( {{#required}}...{{/required}}{{^required}}None{{/required}}, description="{{description}}{{^description}}{{{name}}} of the {{classname}}{{/description}}" ) @@ -70,9 +70,9 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/isEnum}} {{/vars}} {{#isAdditionalPropertiesTrue}} - additional_properties: Dict[str, Any] = {} + additional_properties: dict[str, Any] = {} {{/isAdditionalPropertiesTrue}} - __properties: ClassVar[List[str]] = [{{#allVars}}"{{baseName}}"{{^-last}}, {{/-last}}{{/allVars}}] + __properties: ClassVar[list[str]] = [{{#allVars}}"{{baseName}}"{{^-last}}, {{/-last}}{{/allVars}}] {{#vars}} {{#vendorExtensions.x-regex}} @@ -145,12 +145,12 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} __discriminator_property_name: ClassVar[str] = '{{discriminator.propertyBaseName}}' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { {{#mappedModels}}'{{{mappingName}}}': '{{{modelName}}}'{{^-last}},{{/-last}}{{/mappedModels}} } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -161,8 +161,8 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/discriminator}} {{/hasChildren}} @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -174,7 +174,7 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache index c39b7e75bbd3..2f263884fba2 100644 --- a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache @@ -4,7 +4,7 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -39,8 +39,8 @@ class {{classname}}(RootModel[Union[{{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/on raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -52,7 +52,7 @@ class {{classname}}(RootModel[Union[{{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/on """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/partial_api.mustache b/modules/openapi-generator/src/main/resources/python/partial_api.mustache index dd3a9a1fa12b..0d2b9191f808 100644 --- a/modules/openapi-generator/src/main/resources/python/partial_api.mustache +++ b/modules/openapi-generator/src/main/resources/python/partial_api.mustache @@ -43,7 +43,7 @@ _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { {{#responses}} {{^isWildcard}} '{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}}, diff --git a/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache b/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache index 379b67de9875..01282e8feed0 100644 --- a/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache +++ b/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache @@ -6,13 +6,13 @@ _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le={{#servers.size}}{{servers.size}}{{/servers.size}}{{^servers.size}}1{{/servers.size}})] = 0, ) \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/python/signing.mustache b/modules/openapi-generator/src/main/resources/python/signing.mustache index 4d00424ea48f..4b5119be9a97 100644 --- a/modules/openapi-generator/src/main/resources/python/signing.mustache +++ b/modules/openapi-generator/src/main/resources/python/signing.mustache @@ -12,7 +12,7 @@ from email.utils import formatdate import os import re from time import time -from typing import List, Optional, Union +from typing import Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -118,7 +118,7 @@ class HttpSigningConfiguration: signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[List[str]]=None, + signed_headers: Optional[list[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py index c9a8552ff76f..75361e205438 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictStr @@ -43,14 +42,14 @@ def test_auth_http_basic( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP basic authentication @@ -86,7 +85,7 @@ def test_auth_http_basic( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -106,14 +105,14 @@ def test_auth_http_basic_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP basic authentication @@ -149,7 +148,7 @@ def test_auth_http_basic_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -169,14 +168,14 @@ def test_auth_http_basic_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP basic authentication @@ -212,7 +211,7 @@ def test_auth_http_basic_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -232,15 +231,15 @@ def _test_auth_http_basic_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -261,7 +260,7 @@ def _test_auth_http_basic_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_auth' ] @@ -289,14 +288,14 @@ def test_auth_http_bearer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP bearer authentication @@ -332,7 +331,7 @@ def test_auth_http_bearer( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -352,14 +351,14 @@ def test_auth_http_bearer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP bearer authentication @@ -395,7 +394,7 @@ def test_auth_http_bearer_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -415,14 +414,14 @@ def test_auth_http_bearer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP bearer authentication @@ -458,7 +457,7 @@ def test_auth_http_bearer_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -478,15 +477,15 @@ def _test_auth_http_bearer_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -507,7 +506,7 @@ def _test_auth_http_bearer_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_bearer_auth' ] diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py index f70ceeffddc5..247e4ed81d55 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictStr from typing import Any, Dict, List, Optional, Tuple, Union @@ -48,14 +47,14 @@ def test_binary_gif( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """Test binary (gif) response body @@ -91,7 +90,7 @@ def test_binary_gif( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -111,14 +110,14 @@ def test_binary_gif_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """Test binary (gif) response body @@ -154,7 +153,7 @@ def test_binary_gif_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -174,14 +173,14 @@ def test_binary_gif_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test binary (gif) response body @@ -217,7 +216,7 @@ def test_binary_gif_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -237,15 +236,15 @@ def _test_binary_gif_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -266,7 +265,7 @@ def _test_binary_gif_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -294,14 +293,14 @@ def test_body_application_octetstream_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test body parameter(s) @@ -340,7 +339,7 @@ def test_body_application_octetstream_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -361,14 +360,14 @@ def test_body_application_octetstream_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test body parameter(s) @@ -407,7 +406,7 @@ def test_body_application_octetstream_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -428,14 +427,14 @@ def test_body_application_octetstream_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -474,7 +473,7 @@ def test_body_application_octetstream_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -495,15 +494,15 @@ def _test_body_application_octetstream_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +546,7 @@ def _test_body_application_octetstream_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ def test_body_multipart_formdata_array_of_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test array of binary in multipart mime @@ -621,7 +620,7 @@ def test_body_multipart_formdata_array_of_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -642,14 +641,14 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test array of binary in multipart mime @@ -688,7 +687,7 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -709,14 +708,14 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test array of binary in multipart mime @@ -755,7 +754,7 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -776,16 +775,16 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'files': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -821,7 +820,7 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -849,14 +848,14 @@ def test_body_multipart_formdata_single_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test single binary in multipart mime @@ -895,7 +894,7 @@ def test_body_multipart_formdata_single_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -916,14 +915,14 @@ def test_body_multipart_formdata_single_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test single binary in multipart mime @@ -962,7 +961,7 @@ def test_body_multipart_formdata_single_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -983,14 +982,14 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test single binary in multipart mime @@ -1029,7 +1028,7 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1050,15 +1049,15 @@ def _test_body_multipart_formdata_single_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1094,7 +1093,7 @@ def _test_body_multipart_formdata_single_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1122,14 +1121,14 @@ def test_echo_body_all_of_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1168,7 +1167,7 @@ def test_echo_body_all_of_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1189,14 +1188,14 @@ def test_echo_body_all_of_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1235,7 +1234,7 @@ def test_echo_body_all_of_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1256,14 +1255,14 @@ def test_echo_body_all_of_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1302,7 +1301,7 @@ def test_echo_body_all_of_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1323,15 +1322,15 @@ def _test_echo_body_all_of_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1367,7 +1366,7 @@ def _test_echo_body_all_of_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1395,14 +1394,14 @@ def test_echo_body_free_form_object_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test free form object @@ -1441,7 +1440,7 @@ def test_echo_body_free_form_object_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1462,14 +1461,14 @@ def test_echo_body_free_form_object_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test free form object @@ -1508,7 +1507,7 @@ def test_echo_body_free_form_object_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1529,14 +1528,14 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test free form object @@ -1575,7 +1574,7 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1596,15 +1595,15 @@ def _test_echo_body_free_form_object_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1640,7 +1639,7 @@ def _test_echo_body_free_form_object_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1668,14 +1667,14 @@ def test_echo_body_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1714,7 +1713,7 @@ def test_echo_body_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1735,14 +1734,14 @@ def test_echo_body_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1781,7 +1780,7 @@ def test_echo_body_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1802,14 +1801,14 @@ def test_echo_body_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1848,7 +1847,7 @@ def test_echo_body_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1869,15 +1868,15 @@ def _test_echo_body_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1913,7 +1912,7 @@ def _test_echo_body_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1941,14 +1940,14 @@ def test_echo_body_pet_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty response body @@ -1987,7 +1986,7 @@ def test_echo_body_pet_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2008,14 +2007,14 @@ def test_echo_body_pet_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty response body @@ -2054,7 +2053,7 @@ def test_echo_body_pet_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2075,14 +2074,14 @@ def test_echo_body_pet_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty response body @@ -2121,7 +2120,7 @@ def test_echo_body_pet_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2142,15 +2141,15 @@ def _test_echo_body_pet_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2186,7 +2185,7 @@ def _test_echo_body_pet_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2214,14 +2213,14 @@ def test_echo_body_string_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> StringEnumRef: """Test string enum response body @@ -2260,7 +2259,7 @@ def test_echo_body_string_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2281,14 +2280,14 @@ def test_echo_body_string_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[StringEnumRef]: """Test string enum response body @@ -2327,7 +2326,7 @@ def test_echo_body_string_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2348,14 +2347,14 @@ def test_echo_body_string_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test string enum response body @@ -2394,7 +2393,7 @@ def test_echo_body_string_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2415,15 +2414,15 @@ def _test_echo_body_string_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2459,7 +2458,7 @@ def _test_echo_body_string_enum_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2487,14 +2486,14 @@ def test_echo_body_tag_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty json (request body) @@ -2533,7 +2532,7 @@ def test_echo_body_tag_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2554,14 +2553,14 @@ def test_echo_body_tag_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty json (request body) @@ -2600,7 +2599,7 @@ def test_echo_body_tag_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2621,14 +2620,14 @@ def test_echo_body_tag_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty json (request body) @@ -2667,7 +2666,7 @@ def test_echo_body_tag_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2688,15 +2687,15 @@ def _test_echo_body_tag_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2732,7 +2731,7 @@ def _test_echo_body_tag_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py index 19a216188386..c247557197d0 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictBool, StrictInt, StrictStr from typing import Optional @@ -48,14 +47,14 @@ def test_form_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) @@ -100,7 +99,7 @@ def test_form_integer_boolean_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -123,14 +122,14 @@ def test_form_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) @@ -175,7 +174,7 @@ def test_form_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -198,14 +197,14 @@ def test_form_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) @@ -250,7 +249,7 @@ def test_form_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -273,15 +272,15 @@ def _test_form_integer_boolean_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -321,7 +320,7 @@ def _test_form_integer_boolean_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -349,14 +348,14 @@ def test_form_object_multipart( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for multipart schema @@ -395,7 +394,7 @@ def test_form_object_multipart( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -416,14 +415,14 @@ def test_form_object_multipart_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for multipart schema @@ -462,7 +461,7 @@ def test_form_object_multipart_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -483,14 +482,14 @@ def test_form_object_multipart_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for multipart schema @@ -529,7 +528,7 @@ def test_form_object_multipart_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -550,15 +549,15 @@ def _test_form_object_multipart_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -594,7 +593,7 @@ def _test_form_object_multipart_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -627,14 +626,14 @@ def test_form_oneof( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for oneOf schema @@ -688,7 +687,7 @@ def test_form_oneof( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -714,14 +713,14 @@ def test_form_oneof_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for oneOf schema @@ -775,7 +774,7 @@ def test_form_oneof_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -801,14 +800,14 @@ def test_form_oneof_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for oneOf schema @@ -862,7 +861,7 @@ def test_form_oneof_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -888,15 +887,15 @@ def _test_form_oneof_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -942,7 +941,7 @@ def _test_form_oneof_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py index 85e88dead22d..e39172db7909 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictBool, StrictInt, StrictStr, field_validator from typing import Optional @@ -50,14 +49,14 @@ def test_header_integer_boolean_string_enums( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test header parameter(s) @@ -108,7 +107,7 @@ def test_header_integer_boolean_string_enums( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -133,14 +132,14 @@ def test_header_integer_boolean_string_enums_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test header parameter(s) @@ -191,7 +190,7 @@ def test_header_integer_boolean_string_enums_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -216,14 +215,14 @@ def test_header_integer_boolean_string_enums_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test header parameter(s) @@ -274,7 +273,7 @@ def test_header_integer_boolean_string_enums_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -299,15 +298,15 @@ def _test_header_integer_boolean_string_enums_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -338,7 +337,7 @@ def _test_header_integer_boolean_string_enums_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py index c34887fda5d3..d796a43dd397 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictInt, StrictStr, field_validator from openapi_client.models.string_enum_ref import StringEnumRef @@ -48,14 +47,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test path parameter(s) @@ -103,7 +102,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -127,14 +126,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test path parameter(s) @@ -182,7 +181,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -206,14 +205,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test path parameter(s) @@ -261,7 +260,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -285,15 +284,15 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -322,7 +321,7 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py index da67b25c2b35..3bfa04388622 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import StrictBool, StrictInt, StrictStr, field_validator @@ -50,14 +49,14 @@ def test_enum_ref_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -99,7 +98,7 @@ def test_enum_ref_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -121,14 +120,14 @@ def test_enum_ref_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -170,7 +169,7 @@ def test_enum_ref_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -192,14 +191,14 @@ def test_enum_ref_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -241,7 +240,7 @@ def test_enum_ref_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -263,15 +262,15 @@ def _test_enum_ref_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -300,7 +299,7 @@ def _test_enum_ref_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -330,14 +329,14 @@ def test_query_datetime_date_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -382,7 +381,7 @@ def test_query_datetime_date_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -405,14 +404,14 @@ def test_query_datetime_date_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -457,7 +456,7 @@ def test_query_datetime_date_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -480,14 +479,14 @@ def test_query_datetime_date_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -532,7 +531,7 @@ def test_query_datetime_date_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -555,15 +554,15 @@ def _test_query_datetime_date_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -614,7 +613,7 @@ def _test_query_datetime_date_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -644,14 +643,14 @@ def test_query_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -696,7 +695,7 @@ def test_query_integer_boolean_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -719,14 +718,14 @@ def test_query_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -771,7 +770,7 @@ def test_query_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -794,14 +793,14 @@ def test_query_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -846,7 +845,7 @@ def test_query_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -869,15 +868,15 @@ def _test_query_integer_boolean_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -910,7 +909,7 @@ def _test_query_integer_boolean_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -938,14 +937,14 @@ def test_query_style_deep_object_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -984,7 +983,7 @@ def test_query_style_deep_object_explode_true_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1005,14 +1004,14 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1051,7 +1050,7 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1072,14 +1071,14 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1118,7 +1117,7 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1139,15 +1138,15 @@ def _test_query_style_deep_object_explode_true_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1172,7 +1171,7 @@ def _test_query_style_deep_object_explode_true_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1200,14 +1199,14 @@ def test_query_style_deep_object_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1246,7 +1245,7 @@ def test_query_style_deep_object_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1267,14 +1266,14 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1313,7 +1312,7 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1334,14 +1333,14 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1380,7 +1379,7 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1401,15 +1400,15 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1434,7 +1433,7 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1462,14 +1461,14 @@ def test_query_style_form_explode_false_array_integer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1508,7 +1507,7 @@ def test_query_style_form_explode_false_array_integer( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1529,14 +1528,14 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1575,7 +1574,7 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1596,14 +1595,14 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1642,7 +1641,7 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1663,16 +1662,16 @@ def _test_query_style_form_explode_false_array_integer_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'query_object': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1697,7 +1696,7 @@ def _test_query_style_form_explode_false_array_integer_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1725,14 +1724,14 @@ def test_query_style_form_explode_false_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1771,7 +1770,7 @@ def test_query_style_form_explode_false_array_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1792,14 +1791,14 @@ def test_query_style_form_explode_false_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1838,7 +1837,7 @@ def test_query_style_form_explode_false_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1859,14 +1858,14 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1905,7 +1904,7 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1926,16 +1925,16 @@ def _test_query_style_form_explode_false_array_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'query_object': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1960,7 +1959,7 @@ def _test_query_style_form_explode_false_array_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1988,14 +1987,14 @@ def test_query_style_form_explode_true_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2034,7 +2033,7 @@ def test_query_style_form_explode_true_array_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2055,14 +2054,14 @@ def test_query_style_form_explode_true_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2101,7 +2100,7 @@ def test_query_style_form_explode_true_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2122,14 +2121,14 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2168,7 +2167,7 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2189,15 +2188,15 @@ def _test_query_style_form_explode_true_array_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2222,7 +2221,7 @@ def _test_query_style_form_explode_true_array_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2250,14 +2249,14 @@ def test_query_style_form_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2296,7 +2295,7 @@ def test_query_style_form_explode_true_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2317,14 +2316,14 @@ def test_query_style_form_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2363,7 +2362,7 @@ def test_query_style_form_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2384,14 +2383,14 @@ def test_query_style_form_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2430,7 +2429,7 @@ def test_query_style_form_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2451,15 +2450,15 @@ def _test_query_style_form_explode_true_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2484,7 +2483,7 @@ def _test_query_style_form_explode_true_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2512,14 +2511,14 @@ def test_query_style_form_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2558,7 +2557,7 @@ def test_query_style_form_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2579,14 +2578,14 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2625,7 +2624,7 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2646,14 +2645,14 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2692,7 +2691,7 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2713,15 +2712,15 @@ def _test_query_style_form_explode_true_object_all_of_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2746,7 +2745,7 @@ def _test_query_style_form_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2775,14 +2774,14 @@ def test_query_style_json_serialization_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2824,7 +2823,7 @@ def test_query_style_json_serialization_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2846,14 +2845,14 @@ def test_query_style_json_serialization_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2895,7 +2894,7 @@ def test_query_style_json_serialization_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2917,14 +2916,14 @@ def test_query_style_json_serialization_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2966,7 +2965,7 @@ def test_query_style_json_serialization_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2988,16 +2987,16 @@ def _test_query_style_json_serialization_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'json_serialized_object_array_ref_string_query': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3026,7 +3025,7 @@ def _test_query_style_json_serialization_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py index b89f71f6aba8..94ee3de89422 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py @@ -25,7 +25,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from openapi_client.configuration import Configuration @@ -42,7 +42,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -287,7 +287,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -436,16 +436,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -478,7 +478,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -508,7 +508,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -542,7 +542,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -575,10 +575,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -593,7 +593,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py index a43f82fc576d..c4c87aadc00c 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -128,13 +128,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -144,11 +144,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -196,15 +196,15 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -341,7 +341,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -547,7 +547,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -563,7 +563,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py index c18d3eb9dfd7..9982ad8c720a 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py @@ -34,7 +34,7 @@ class Bird(BaseModel): """ # noqa: E501 size: Optional[StrictStr] = None color: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "color"] + __properties: ClassVar[list[str]] = ["size", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Bird(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py index 973750428298..df32cfd8cdfa 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py @@ -34,7 +34,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py index 6658f9691359..86451a3de490 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py @@ -37,7 +37,7 @@ class DataQuery(Query): suffix: Optional[StrictStr] = Field(default=None, description="test suffix") text: Optional[StrictStr] = Field(default=None, description="Some text containing white spaces") var_date: Optional[datetime] = Field(default=None, description="A date", alias="date") - __properties: ClassVar[List[str]] = ["id", "outcomes", "suffix", "text", "date"] + __properties: ClassVar[list[str]] = ["id", "outcomes", "suffix", "text", "date"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class DataQuery(Query): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py index d018b8927a6d..b77066ea5dbd 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py @@ -34,7 +34,7 @@ class DefaultValue(BaseModel): to test the default value of properties """ # noqa: E501 array_string_enum_ref_default: Optional[List[StringEnumRef]] = None - array_string_enum_default: Optional[List[Literal['success', 'failure', 'unclassified']]] = Field( + array_string_enum_default: Optional[list[Literal['success', 'failure', 'unclassified']]] = Field( None, description="array_string_enum_default of the DefaultValue" ) @@ -44,7 +44,7 @@ class DefaultValue(BaseModel): array_string_nullable: Optional[List[StrictStr]] = None array_string_extension_nullable: Optional[List[StrictStr]] = None string_nullable: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] + __properties: ClassVar[list[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] @field_validator('array_string_enum_default') def array_string_enum_default_validate_enum(cls, value): @@ -65,8 +65,8 @@ def array_string_enum_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py index d35647cbc4f5..550c6db4baac 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py @@ -36,7 +36,7 @@ class NumberPropertiesOnly(BaseModel): number: Optional[Union[StrictFloat, StrictInt]] = None var_float: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="float") double: Optional[Union[Annotated[float, Field(le=50.2, strict=True, ge=0.8)], Annotated[int, Field(le=50, strict=True, ge=1)]]] = None - __properties: ClassVar[List[str]] = ["number", "float", "double"] + __properties: ClassVar[list[str]] = ["number", "float", "double"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class NumberPropertiesOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py index 5a51a7246ffb..b77e9a8a8d79 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] + __properties: ClassVar[list[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py index 6f9a8b33f47b..a9030f64deeb 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py @@ -33,11 +33,11 @@ class Query(BaseModel): Query """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Query") - outcomes: Optional[List[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( + outcomes: Optional[list[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( None, description="outcomes of the Query" ) - __properties: ClassVar[List[str]] = ["id", "outcomes"] + __properties: ClassVar[list[str]] = ["id", "outcomes"] @field_validator('outcomes') def outcomes_validate_enum(cls, value): @@ -58,8 +58,8 @@ def outcomes_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py index 905c39f0d1d2..a7d8a798c442 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py @@ -34,7 +34,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py index 5401bd990d9d..651c474e24d6 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py @@ -33,7 +33,7 @@ class TestFormObjectMultipartRequestMarker(BaseModel): TestFormObjectMultipartRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestFormObjectMultipartRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index eb2a6c6201f9..e197eed27dd5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -36,7 +36,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod color: Optional[StrictStr] = None id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "color", "id", "name"] + __properties: ClassVar[list[str]] = ["size", "color", "id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index fb0c89eb00cc..6bb448a448f6 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -33,7 +33,7 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter """ # noqa: E501 values: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["values"] + __properties: ClassVar[list[str]] = ["values"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/api/auth_api.py b/samples/client/echo_api/python/openapi_client/api/auth_api.py index c9a8552ff76f..75361e205438 100644 --- a/samples/client/echo_api/python/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python/openapi_client/api/auth_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictStr @@ -43,14 +42,14 @@ def test_auth_http_basic( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP basic authentication @@ -86,7 +85,7 @@ def test_auth_http_basic( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -106,14 +105,14 @@ def test_auth_http_basic_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP basic authentication @@ -149,7 +148,7 @@ def test_auth_http_basic_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -169,14 +168,14 @@ def test_auth_http_basic_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP basic authentication @@ -212,7 +211,7 @@ def test_auth_http_basic_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -232,15 +231,15 @@ def _test_auth_http_basic_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -261,7 +260,7 @@ def _test_auth_http_basic_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_auth' ] @@ -289,14 +288,14 @@ def test_auth_http_bearer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP bearer authentication @@ -332,7 +331,7 @@ def test_auth_http_bearer( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -352,14 +351,14 @@ def test_auth_http_bearer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP bearer authentication @@ -395,7 +394,7 @@ def test_auth_http_bearer_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -415,14 +414,14 @@ def test_auth_http_bearer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP bearer authentication @@ -458,7 +457,7 @@ def test_auth_http_bearer_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -478,15 +477,15 @@ def _test_auth_http_bearer_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -507,7 +506,7 @@ def _test_auth_http_bearer_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_bearer_auth' ] diff --git a/samples/client/echo_api/python/openapi_client/api/body_api.py b/samples/client/echo_api/python/openapi_client/api/body_api.py index f70ceeffddc5..247e4ed81d55 100644 --- a/samples/client/echo_api/python/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python/openapi_client/api/body_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictStr from typing import Any, Dict, List, Optional, Tuple, Union @@ -48,14 +47,14 @@ def test_binary_gif( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """Test binary (gif) response body @@ -91,7 +90,7 @@ def test_binary_gif( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -111,14 +110,14 @@ def test_binary_gif_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """Test binary (gif) response body @@ -154,7 +153,7 @@ def test_binary_gif_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -174,14 +173,14 @@ def test_binary_gif_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test binary (gif) response body @@ -217,7 +216,7 @@ def test_binary_gif_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -237,15 +236,15 @@ def _test_binary_gif_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -266,7 +265,7 @@ def _test_binary_gif_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -294,14 +293,14 @@ def test_body_application_octetstream_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test body parameter(s) @@ -340,7 +339,7 @@ def test_body_application_octetstream_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -361,14 +360,14 @@ def test_body_application_octetstream_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test body parameter(s) @@ -407,7 +406,7 @@ def test_body_application_octetstream_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -428,14 +427,14 @@ def test_body_application_octetstream_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -474,7 +473,7 @@ def test_body_application_octetstream_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -495,15 +494,15 @@ def _test_body_application_octetstream_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +546,7 @@ def _test_body_application_octetstream_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ def test_body_multipart_formdata_array_of_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test array of binary in multipart mime @@ -621,7 +620,7 @@ def test_body_multipart_formdata_array_of_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -642,14 +641,14 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test array of binary in multipart mime @@ -688,7 +687,7 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -709,14 +708,14 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test array of binary in multipart mime @@ -755,7 +754,7 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -776,16 +775,16 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'files': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -821,7 +820,7 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -849,14 +848,14 @@ def test_body_multipart_formdata_single_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test single binary in multipart mime @@ -895,7 +894,7 @@ def test_body_multipart_formdata_single_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -916,14 +915,14 @@ def test_body_multipart_formdata_single_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test single binary in multipart mime @@ -962,7 +961,7 @@ def test_body_multipart_formdata_single_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -983,14 +982,14 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test single binary in multipart mime @@ -1029,7 +1028,7 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1050,15 +1049,15 @@ def _test_body_multipart_formdata_single_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1094,7 +1093,7 @@ def _test_body_multipart_formdata_single_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1122,14 +1121,14 @@ def test_echo_body_all_of_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1168,7 +1167,7 @@ def test_echo_body_all_of_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1189,14 +1188,14 @@ def test_echo_body_all_of_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1235,7 +1234,7 @@ def test_echo_body_all_of_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1256,14 +1255,14 @@ def test_echo_body_all_of_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1302,7 +1301,7 @@ def test_echo_body_all_of_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1323,15 +1322,15 @@ def _test_echo_body_all_of_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1367,7 +1366,7 @@ def _test_echo_body_all_of_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1395,14 +1394,14 @@ def test_echo_body_free_form_object_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test free form object @@ -1441,7 +1440,7 @@ def test_echo_body_free_form_object_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1462,14 +1461,14 @@ def test_echo_body_free_form_object_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test free form object @@ -1508,7 +1507,7 @@ def test_echo_body_free_form_object_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1529,14 +1528,14 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test free form object @@ -1575,7 +1574,7 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1596,15 +1595,15 @@ def _test_echo_body_free_form_object_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1640,7 +1639,7 @@ def _test_echo_body_free_form_object_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1668,14 +1667,14 @@ def test_echo_body_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1714,7 +1713,7 @@ def test_echo_body_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1735,14 +1734,14 @@ def test_echo_body_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1781,7 +1780,7 @@ def test_echo_body_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1802,14 +1801,14 @@ def test_echo_body_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1848,7 +1847,7 @@ def test_echo_body_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1869,15 +1868,15 @@ def _test_echo_body_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1913,7 +1912,7 @@ def _test_echo_body_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1941,14 +1940,14 @@ def test_echo_body_pet_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty response body @@ -1987,7 +1986,7 @@ def test_echo_body_pet_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2008,14 +2007,14 @@ def test_echo_body_pet_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty response body @@ -2054,7 +2053,7 @@ def test_echo_body_pet_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2075,14 +2074,14 @@ def test_echo_body_pet_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty response body @@ -2121,7 +2120,7 @@ def test_echo_body_pet_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2142,15 +2141,15 @@ def _test_echo_body_pet_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2186,7 +2185,7 @@ def _test_echo_body_pet_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2214,14 +2213,14 @@ def test_echo_body_string_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> StringEnumRef: """Test string enum response body @@ -2260,7 +2259,7 @@ def test_echo_body_string_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2281,14 +2280,14 @@ def test_echo_body_string_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[StringEnumRef]: """Test string enum response body @@ -2327,7 +2326,7 @@ def test_echo_body_string_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2348,14 +2347,14 @@ def test_echo_body_string_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test string enum response body @@ -2394,7 +2393,7 @@ def test_echo_body_string_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2415,15 +2414,15 @@ def _test_echo_body_string_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2459,7 +2458,7 @@ def _test_echo_body_string_enum_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2487,14 +2486,14 @@ def test_echo_body_tag_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty json (request body) @@ -2533,7 +2532,7 @@ def test_echo_body_tag_response_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2554,14 +2553,14 @@ def test_echo_body_tag_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty json (request body) @@ -2600,7 +2599,7 @@ def test_echo_body_tag_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2621,14 +2620,14 @@ def test_echo_body_tag_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty json (request body) @@ -2667,7 +2666,7 @@ def test_echo_body_tag_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2688,15 +2687,15 @@ def _test_echo_body_tag_response_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2732,7 +2731,7 @@ def _test_echo_body_tag_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/form_api.py b/samples/client/echo_api/python/openapi_client/api/form_api.py index 19a216188386..c247557197d0 100644 --- a/samples/client/echo_api/python/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python/openapi_client/api/form_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictBool, StrictInt, StrictStr from typing import Optional @@ -48,14 +47,14 @@ def test_form_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) @@ -100,7 +99,7 @@ def test_form_integer_boolean_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -123,14 +122,14 @@ def test_form_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) @@ -175,7 +174,7 @@ def test_form_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -198,14 +197,14 @@ def test_form_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) @@ -250,7 +249,7 @@ def test_form_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -273,15 +272,15 @@ def _test_form_integer_boolean_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -321,7 +320,7 @@ def _test_form_integer_boolean_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -349,14 +348,14 @@ def test_form_object_multipart( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for multipart schema @@ -395,7 +394,7 @@ def test_form_object_multipart( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -416,14 +415,14 @@ def test_form_object_multipart_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for multipart schema @@ -462,7 +461,7 @@ def test_form_object_multipart_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -483,14 +482,14 @@ def test_form_object_multipart_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for multipart schema @@ -529,7 +528,7 @@ def test_form_object_multipart_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -550,15 +549,15 @@ def _test_form_object_multipart_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -594,7 +593,7 @@ def _test_form_object_multipart_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -627,14 +626,14 @@ def test_form_oneof( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for oneOf schema @@ -688,7 +687,7 @@ def test_form_oneof( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -714,14 +713,14 @@ def test_form_oneof_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for oneOf schema @@ -775,7 +774,7 @@ def test_form_oneof_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -801,14 +800,14 @@ def test_form_oneof_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for oneOf schema @@ -862,7 +861,7 @@ def test_form_oneof_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -888,15 +887,15 @@ def _test_form_oneof_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -942,7 +941,7 @@ def _test_form_oneof_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/header_api.py b/samples/client/echo_api/python/openapi_client/api/header_api.py index 85e88dead22d..e39172db7909 100644 --- a/samples/client/echo_api/python/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python/openapi_client/api/header_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictBool, StrictInt, StrictStr, field_validator from typing import Optional @@ -50,14 +49,14 @@ def test_header_integer_boolean_string_enums( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test header parameter(s) @@ -108,7 +107,7 @@ def test_header_integer_boolean_string_enums( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -133,14 +132,14 @@ def test_header_integer_boolean_string_enums_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test header parameter(s) @@ -191,7 +190,7 @@ def test_header_integer_boolean_string_enums_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -216,14 +215,14 @@ def test_header_integer_boolean_string_enums_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test header parameter(s) @@ -274,7 +273,7 @@ def test_header_integer_boolean_string_enums_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -299,15 +298,15 @@ def _test_header_integer_boolean_string_enums_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -338,7 +337,7 @@ def _test_header_integer_boolean_string_enums_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/path_api.py b/samples/client/echo_api/python/openapi_client/api/path_api.py index c34887fda5d3..d796a43dd397 100644 --- a/samples/client/echo_api/python/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python/openapi_client/api/path_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import StrictInt, StrictStr, field_validator from openapi_client.models.string_enum_ref import StringEnumRef @@ -48,14 +47,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test path parameter(s) @@ -103,7 +102,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -127,14 +126,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test path parameter(s) @@ -182,7 +181,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -206,14 +205,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test path parameter(s) @@ -261,7 +260,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -285,15 +284,15 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -322,7 +321,7 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/query_api.py b/samples/client/echo_api/python/openapi_client/api/query_api.py index da67b25c2b35..3bfa04388622 100644 --- a/samples/client/echo_api/python/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python/openapi_client/api/query_api.py @@ -14,8 +14,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import StrictBool, StrictInt, StrictStr, field_validator @@ -50,14 +49,14 @@ def test_enum_ref_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -99,7 +98,7 @@ def test_enum_ref_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -121,14 +120,14 @@ def test_enum_ref_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -170,7 +169,7 @@ def test_enum_ref_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -192,14 +191,14 @@ def test_enum_ref_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -241,7 +240,7 @@ def test_enum_ref_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -263,15 +262,15 @@ def _test_enum_ref_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -300,7 +299,7 @@ def _test_enum_ref_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -330,14 +329,14 @@ def test_query_datetime_date_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -382,7 +381,7 @@ def test_query_datetime_date_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -405,14 +404,14 @@ def test_query_datetime_date_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -457,7 +456,7 @@ def test_query_datetime_date_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -480,14 +479,14 @@ def test_query_datetime_date_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -532,7 +531,7 @@ def test_query_datetime_date_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -555,15 +554,15 @@ def _test_query_datetime_date_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -614,7 +613,7 @@ def _test_query_datetime_date_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -644,14 +643,14 @@ def test_query_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -696,7 +695,7 @@ def test_query_integer_boolean_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -719,14 +718,14 @@ def test_query_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -771,7 +770,7 @@ def test_query_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -794,14 +793,14 @@ def test_query_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -846,7 +845,7 @@ def test_query_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -869,15 +868,15 @@ def _test_query_integer_boolean_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -910,7 +909,7 @@ def _test_query_integer_boolean_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -938,14 +937,14 @@ def test_query_style_deep_object_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -984,7 +983,7 @@ def test_query_style_deep_object_explode_true_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1005,14 +1004,14 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1051,7 +1050,7 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1072,14 +1071,14 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1118,7 +1117,7 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1139,15 +1138,15 @@ def _test_query_style_deep_object_explode_true_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1172,7 +1171,7 @@ def _test_query_style_deep_object_explode_true_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1200,14 +1199,14 @@ def test_query_style_deep_object_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1246,7 +1245,7 @@ def test_query_style_deep_object_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1267,14 +1266,14 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1313,7 +1312,7 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1334,14 +1333,14 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1380,7 +1379,7 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1401,15 +1400,15 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1434,7 +1433,7 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1462,14 +1461,14 @@ def test_query_style_form_explode_false_array_integer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1508,7 +1507,7 @@ def test_query_style_form_explode_false_array_integer( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1529,14 +1528,14 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1575,7 +1574,7 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1596,14 +1595,14 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1642,7 +1641,7 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1663,16 +1662,16 @@ def _test_query_style_form_explode_false_array_integer_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'query_object': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1697,7 +1696,7 @@ def _test_query_style_form_explode_false_array_integer_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1725,14 +1724,14 @@ def test_query_style_form_explode_false_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1771,7 +1770,7 @@ def test_query_style_form_explode_false_array_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1792,14 +1791,14 @@ def test_query_style_form_explode_false_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1838,7 +1837,7 @@ def test_query_style_form_explode_false_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1859,14 +1858,14 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1905,7 +1904,7 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1926,16 +1925,16 @@ def _test_query_style_form_explode_false_array_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'query_object': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1960,7 +1959,7 @@ def _test_query_style_form_explode_false_array_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1988,14 +1987,14 @@ def test_query_style_form_explode_true_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2034,7 +2033,7 @@ def test_query_style_form_explode_true_array_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2055,14 +2054,14 @@ def test_query_style_form_explode_true_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2101,7 +2100,7 @@ def test_query_style_form_explode_true_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2122,14 +2121,14 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2168,7 +2167,7 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2189,15 +2188,15 @@ def _test_query_style_form_explode_true_array_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2222,7 +2221,7 @@ def _test_query_style_form_explode_true_array_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2250,14 +2249,14 @@ def test_query_style_form_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2296,7 +2295,7 @@ def test_query_style_form_explode_true_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2317,14 +2316,14 @@ def test_query_style_form_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2363,7 +2362,7 @@ def test_query_style_form_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2384,14 +2383,14 @@ def test_query_style_form_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2430,7 +2429,7 @@ def test_query_style_form_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2451,15 +2450,15 @@ def _test_query_style_form_explode_true_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2484,7 +2483,7 @@ def _test_query_style_form_explode_true_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2512,14 +2511,14 @@ def test_query_style_form_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2558,7 +2557,7 @@ def test_query_style_form_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2579,14 +2578,14 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2625,7 +2624,7 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2646,14 +2645,14 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2692,7 +2691,7 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2713,15 +2712,15 @@ def _test_query_style_form_explode_true_object_all_of_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2746,7 +2745,7 @@ def _test_query_style_form_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2775,14 +2774,14 @@ def test_query_style_json_serialization_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2824,7 +2823,7 @@ def test_query_style_json_serialization_object( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2846,14 +2845,14 @@ def test_query_style_json_serialization_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2895,7 +2894,7 @@ def test_query_style_json_serialization_object_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2917,14 +2916,14 @@ def test_query_style_json_serialization_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2966,7 +2965,7 @@ def test_query_style_json_serialization_object_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2988,16 +2987,16 @@ def _test_query_style_json_serialization_object_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'json_serialized_object_array_ref_string_query': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3026,7 +3025,7 @@ def _test_query_style_json_serialization_object_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api_client.py b/samples/client/echo_api/python/openapi_client/api_client.py index b89f71f6aba8..94ee3de89422 100644 --- a/samples/client/echo_api/python/openapi_client/api_client.py +++ b/samples/client/echo_api/python/openapi_client/api_client.py @@ -25,7 +25,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from openapi_client.configuration import Configuration @@ -42,7 +42,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -287,7 +287,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -436,16 +436,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -478,7 +478,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -508,7 +508,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -542,7 +542,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -575,10 +575,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -593,7 +593,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/client/echo_api/python/openapi_client/configuration.py b/samples/client/echo_api/python/openapi_client/configuration.py index a43f82fc576d..c4c87aadc00c 100644 --- a/samples/client/echo_api/python/openapi_client/configuration.py +++ b/samples/client/echo_api/python/openapi_client/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -128,13 +128,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -144,11 +144,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -196,15 +196,15 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -341,7 +341,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -547,7 +547,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -563,7 +563,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/client/echo_api/python/openapi_client/models/bird.py b/samples/client/echo_api/python/openapi_client/models/bird.py index c18d3eb9dfd7..9982ad8c720a 100644 --- a/samples/client/echo_api/python/openapi_client/models/bird.py +++ b/samples/client/echo_api/python/openapi_client/models/bird.py @@ -34,7 +34,7 @@ class Bird(BaseModel): """ # noqa: E501 size: Optional[StrictStr] = None color: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "color"] + __properties: ClassVar[list[str]] = ["size", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Bird(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/category.py b/samples/client/echo_api/python/openapi_client/models/category.py index 973750428298..df32cfd8cdfa 100644 --- a/samples/client/echo_api/python/openapi_client/models/category.py +++ b/samples/client/echo_api/python/openapi_client/models/category.py @@ -34,7 +34,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/data_query.py b/samples/client/echo_api/python/openapi_client/models/data_query.py index 6658f9691359..86451a3de490 100644 --- a/samples/client/echo_api/python/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python/openapi_client/models/data_query.py @@ -37,7 +37,7 @@ class DataQuery(Query): suffix: Optional[StrictStr] = Field(default=None, description="test suffix") text: Optional[StrictStr] = Field(default=None, description="Some text containing white spaces") var_date: Optional[datetime] = Field(default=None, description="A date", alias="date") - __properties: ClassVar[List[str]] = ["id", "outcomes", "suffix", "text", "date"] + __properties: ClassVar[list[str]] = ["id", "outcomes", "suffix", "text", "date"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class DataQuery(Query): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/default_value.py b/samples/client/echo_api/python/openapi_client/models/default_value.py index d018b8927a6d..b77066ea5dbd 100644 --- a/samples/client/echo_api/python/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python/openapi_client/models/default_value.py @@ -34,7 +34,7 @@ class DefaultValue(BaseModel): to test the default value of properties """ # noqa: E501 array_string_enum_ref_default: Optional[List[StringEnumRef]] = None - array_string_enum_default: Optional[List[Literal['success', 'failure', 'unclassified']]] = Field( + array_string_enum_default: Optional[list[Literal['success', 'failure', 'unclassified']]] = Field( None, description="array_string_enum_default of the DefaultValue" ) @@ -44,7 +44,7 @@ class DefaultValue(BaseModel): array_string_nullable: Optional[List[StrictStr]] = None array_string_extension_nullable: Optional[List[StrictStr]] = None string_nullable: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] + __properties: ClassVar[list[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] @field_validator('array_string_enum_default') def array_string_enum_default_validate_enum(cls, value): @@ -65,8 +65,8 @@ def array_string_enum_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py index d35647cbc4f5..550c6db4baac 100644 --- a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py @@ -36,7 +36,7 @@ class NumberPropertiesOnly(BaseModel): number: Optional[Union[StrictFloat, StrictInt]] = None var_float: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="float") double: Optional[Union[Annotated[float, Field(le=50.2, strict=True, ge=0.8)], Annotated[int, Field(le=50, strict=True, ge=1)]]] = None - __properties: ClassVar[List[str]] = ["number", "float", "double"] + __properties: ClassVar[list[str]] = ["number", "float", "double"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class NumberPropertiesOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/pet.py b/samples/client/echo_api/python/openapi_client/models/pet.py index 5a51a7246ffb..b77e9a8a8d79 100644 --- a/samples/client/echo_api/python/openapi_client/models/pet.py +++ b/samples/client/echo_api/python/openapi_client/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] + __properties: ClassVar[list[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/query.py b/samples/client/echo_api/python/openapi_client/models/query.py index 6f9a8b33f47b..a9030f64deeb 100644 --- a/samples/client/echo_api/python/openapi_client/models/query.py +++ b/samples/client/echo_api/python/openapi_client/models/query.py @@ -33,11 +33,11 @@ class Query(BaseModel): Query """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Query") - outcomes: Optional[List[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( + outcomes: Optional[list[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( None, description="outcomes of the Query" ) - __properties: ClassVar[List[str]] = ["id", "outcomes"] + __properties: ClassVar[list[str]] = ["id", "outcomes"] @field_validator('outcomes') def outcomes_validate_enum(cls, value): @@ -58,8 +58,8 @@ def outcomes_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/tag.py b/samples/client/echo_api/python/openapi_client/models/tag.py index 905c39f0d1d2..a7d8a798c442 100644 --- a/samples/client/echo_api/python/openapi_client/models/tag.py +++ b/samples/client/echo_api/python/openapi_client/models/tag.py @@ -34,7 +34,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py index 5401bd990d9d..651c474e24d6 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py @@ -33,7 +33,7 @@ class TestFormObjectMultipartRequestMarker(BaseModel): TestFormObjectMultipartRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestFormObjectMultipartRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index eb2a6c6201f9..e197eed27dd5 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -36,7 +36,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod color: Optional[StrictStr] = None id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["size", "color", "id", "name"] + __properties: ClassVar[list[str]] = ["size", "color", "id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index fb0c89eb00cc..6bb448a448f6 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -33,7 +33,7 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter """ # noqa: E501 values: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["values"] + __properties: ClassVar[list[str]] = ["values"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py index 0d456a35c3a4..9d400f72eb9a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ async def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -91,7 +90,7 @@ async def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -112,14 +111,14 @@ async def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -158,7 +157,7 @@ async def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -179,14 +178,14 @@ async def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -225,7 +224,7 @@ async def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -246,15 +245,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py index 4bca18df4343..e6b8039808a5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -42,14 +41,14 @@ async def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -84,7 +83,7 @@ async def foo_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -103,14 +102,14 @@ async def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -145,7 +144,7 @@ async def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -164,14 +163,14 @@ async def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -206,7 +205,7 @@ async def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -225,15 +224,15 @@ def _foo_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -254,7 +253,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py index 04b92f2c140d..0055783b2166 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator @@ -61,14 +60,14 @@ async def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -106,7 +105,7 @@ async def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -127,14 +126,14 @@ async def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -172,7 +171,7 @@ async def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -193,14 +192,14 @@ async def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -238,7 +237,7 @@ async def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -259,15 +258,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -296,7 +295,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -324,14 +323,14 @@ async def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -369,7 +368,7 @@ async def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -390,14 +389,14 @@ async def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -435,7 +434,7 @@ async def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -456,14 +455,14 @@ async def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -501,7 +500,7 @@ async def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -522,15 +521,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -548,7 +547,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ async def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -617,7 +616,7 @@ async def fake_health_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -637,14 +636,14 @@ async def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -679,7 +678,7 @@ async def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -699,14 +698,14 @@ async def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -741,7 +740,7 @@ async def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -761,15 +760,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -790,7 +789,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -820,14 +819,14 @@ async def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -871,7 +870,7 @@ async def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -894,14 +893,14 @@ async def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -945,7 +944,7 @@ async def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -968,14 +967,14 @@ async def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1019,7 +1018,7 @@ async def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -1042,15 +1041,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1086,7 +1085,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_signature_test' ] @@ -1115,14 +1114,14 @@ async def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1161,7 +1160,7 @@ async def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1182,14 +1181,14 @@ async def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1228,7 +1227,7 @@ async def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1249,14 +1248,14 @@ async def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1295,7 +1294,7 @@ async def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1316,15 +1315,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1360,7 +1359,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1388,14 +1387,14 @@ async def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1434,7 +1433,7 @@ async def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1455,14 +1454,14 @@ async def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1501,7 +1500,7 @@ async def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1522,14 +1521,14 @@ async def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1568,7 +1567,7 @@ async def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1589,15 +1588,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1633,7 +1632,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1661,14 +1660,14 @@ async def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1707,7 +1706,7 @@ async def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1728,14 +1727,14 @@ async def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1774,7 +1773,7 @@ async def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1795,14 +1794,14 @@ async def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1841,7 +1840,7 @@ async def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1862,15 +1861,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1906,7 +1905,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1934,14 +1933,14 @@ async def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1980,7 +1979,7 @@ async def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2001,14 +2000,14 @@ async def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2047,7 +2046,7 @@ async def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2068,14 +2067,14 @@ async def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2114,7 +2113,7 @@ async def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2135,15 +2134,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2179,7 +2178,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2208,14 +2207,14 @@ async def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2257,7 +2256,7 @@ async def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2279,14 +2278,14 @@ async def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2328,7 +2327,7 @@ async def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2350,14 +2349,14 @@ async def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2399,7 +2398,7 @@ async def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2421,16 +2420,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'param': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2470,7 +2469,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2497,14 +2496,14 @@ async def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2539,7 +2538,7 @@ async def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2559,14 +2558,14 @@ async def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2601,7 +2600,7 @@ async def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2621,14 +2620,14 @@ async def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2663,7 +2662,7 @@ async def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2683,15 +2682,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2712,7 +2711,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2739,14 +2738,14 @@ async def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2781,7 +2780,7 @@ async def fake_return_boolean( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2801,14 +2800,14 @@ async def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2843,7 +2842,7 @@ async def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2863,14 +2862,14 @@ async def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2905,7 +2904,7 @@ async def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2925,15 +2924,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2954,7 +2953,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2981,14 +2980,14 @@ async def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3023,7 +3022,7 @@ async def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3043,14 +3042,14 @@ async def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3085,7 +3084,7 @@ async def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3105,14 +3104,14 @@ async def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3147,7 +3146,7 @@ async def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3167,15 +3166,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3196,7 +3195,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3223,14 +3222,14 @@ async def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3265,7 +3264,7 @@ async def fake_return_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3285,14 +3284,14 @@ async def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3327,7 +3326,7 @@ async def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3347,14 +3346,14 @@ async def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3389,7 +3388,7 @@ async def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3409,15 +3408,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3438,7 +3437,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3465,14 +3464,14 @@ async def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3507,7 +3506,7 @@ async def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3527,14 +3526,14 @@ async def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3569,7 +3568,7 @@ async def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3589,14 +3588,14 @@ async def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3631,7 +3630,7 @@ async def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3651,15 +3650,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3680,7 +3679,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3707,14 +3706,14 @@ async def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3749,7 +3748,7 @@ async def fake_return_float( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3769,14 +3768,14 @@ async def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3811,7 +3810,7 @@ async def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3831,14 +3830,14 @@ async def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3873,7 +3872,7 @@ async def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3893,15 +3892,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3922,7 +3921,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3949,14 +3948,14 @@ async def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3991,7 +3990,7 @@ async def fake_return_int( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4011,14 +4010,14 @@ async def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4053,7 +4052,7 @@ async def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4073,14 +4072,14 @@ async def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4115,7 +4114,7 @@ async def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4135,15 +4134,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4164,7 +4163,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4191,14 +4190,14 @@ async def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4233,7 +4232,7 @@ async def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4253,14 +4252,14 @@ async def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4295,7 +4294,7 @@ async def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4315,14 +4314,14 @@ async def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4357,7 +4356,7 @@ async def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4377,15 +4376,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4406,7 +4405,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4433,14 +4432,14 @@ async def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4475,7 +4474,7 @@ async def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4495,14 +4494,14 @@ async def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4537,7 +4536,7 @@ async def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4557,14 +4556,14 @@ async def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4599,7 +4598,7 @@ async def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4619,15 +4618,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4648,7 +4647,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4675,14 +4674,14 @@ async def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4717,7 +4716,7 @@ async def fake_return_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4737,14 +4736,14 @@ async def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4779,7 +4778,7 @@ async def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4799,14 +4798,14 @@ async def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4841,7 +4840,7 @@ async def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4861,15 +4860,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4890,7 +4889,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4918,14 +4917,14 @@ async def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4963,7 +4962,7 @@ async def fake_uuid_example( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -4984,14 +4983,14 @@ async def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5029,7 +5028,7 @@ async def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5050,14 +5049,14 @@ async def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5095,7 +5094,7 @@ async def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5116,15 +5115,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5142,7 +5141,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5170,14 +5169,14 @@ async def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5216,7 +5215,7 @@ async def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5237,14 +5236,14 @@ async def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5283,7 +5282,7 @@ async def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5304,14 +5303,14 @@ async def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5350,7 +5349,7 @@ async def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5371,15 +5370,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5408,7 +5407,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5436,14 +5435,14 @@ async def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5482,7 +5481,7 @@ async def test_body_with_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5503,14 +5502,14 @@ async def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5549,7 +5548,7 @@ async def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5570,14 +5569,14 @@ async def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5616,7 +5615,7 @@ async def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5637,15 +5636,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5682,7 +5681,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5710,14 +5709,14 @@ async def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5756,7 +5755,7 @@ async def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5777,14 +5776,14 @@ async def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5823,7 +5822,7 @@ async def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5844,14 +5843,14 @@ async def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5890,7 +5889,7 @@ async def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5911,15 +5910,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5948,7 +5947,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5977,14 +5976,14 @@ async def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6025,7 +6024,7 @@ async def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6047,14 +6046,14 @@ async def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6095,7 +6094,7 @@ async def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6117,14 +6116,14 @@ async def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6165,7 +6164,7 @@ async def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6187,15 +6186,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6228,7 +6227,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6256,14 +6255,14 @@ async def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6302,7 +6301,7 @@ async def test_client_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6323,14 +6322,14 @@ async def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6369,7 +6368,7 @@ async def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6390,14 +6389,14 @@ async def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6436,7 +6435,7 @@ async def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6457,15 +6456,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6501,7 +6500,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6530,14 +6529,14 @@ async def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6578,7 +6577,7 @@ async def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6600,14 +6599,14 @@ async def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6648,7 +6647,7 @@ async def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6670,14 +6669,14 @@ async def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6718,7 +6717,7 @@ async def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6740,15 +6739,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6779,7 +6778,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6806,14 +6805,14 @@ async def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6849,7 +6848,7 @@ async def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6870,14 +6869,14 @@ async def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6913,7 +6912,7 @@ async def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6934,14 +6933,14 @@ async def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6977,7 +6976,7 @@ async def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6998,15 +6997,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7027,7 +7026,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7069,14 +7068,14 @@ async def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7157,7 +7156,7 @@ async def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7193,14 +7192,14 @@ async def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7281,7 +7280,7 @@ async def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7317,14 +7316,14 @@ async def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7405,7 +7404,7 @@ async def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7441,15 +7440,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7506,7 +7505,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_basic_test' ] @@ -7534,14 +7533,14 @@ async def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7576,7 +7575,7 @@ async def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7598,14 +7597,14 @@ async def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7640,7 +7639,7 @@ async def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7662,14 +7661,14 @@ async def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7704,7 +7703,7 @@ async def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7726,15 +7725,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7755,7 +7754,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7788,14 +7787,14 @@ async def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7849,7 +7848,7 @@ async def test_group_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7875,14 +7874,14 @@ async def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7936,7 +7935,7 @@ async def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7962,14 +7961,14 @@ async def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8023,7 +8022,7 @@ async def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -8049,15 +8048,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8091,7 +8090,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'bearer_test' ] @@ -8120,14 +8119,14 @@ async def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8166,7 +8165,7 @@ async def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8187,14 +8186,14 @@ async def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8233,7 +8232,7 @@ async def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8254,14 +8253,14 @@ async def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8300,7 +8299,7 @@ async def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8321,15 +8320,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8358,7 +8357,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8386,14 +8385,14 @@ async def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8432,7 +8431,7 @@ async def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8453,14 +8452,14 @@ async def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8499,7 +8498,7 @@ async def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8520,14 +8519,14 @@ async def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8566,7 +8565,7 @@ async def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8587,15 +8586,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8624,7 +8623,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8653,14 +8652,14 @@ async def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8702,7 +8701,7 @@ async def test_json_form_data( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8724,14 +8723,14 @@ async def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8773,7 +8772,7 @@ async def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8795,14 +8794,14 @@ async def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8844,7 +8843,7 @@ async def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8866,15 +8865,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8905,7 +8904,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8933,14 +8932,14 @@ async def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8978,7 +8977,7 @@ async def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8999,14 +8998,14 @@ async def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9044,7 +9043,7 @@ async def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9065,14 +9064,14 @@ async def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9110,7 +9109,7 @@ async def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9131,15 +9130,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9168,7 +9167,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9202,14 +9201,14 @@ async def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9266,7 +9265,7 @@ async def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9293,14 +9292,14 @@ async def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9357,7 +9356,7 @@ async def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9384,14 +9383,14 @@ async def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9448,7 +9447,7 @@ async def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9475,7 +9474,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9483,12 +9482,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9530,7 +9529,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9558,14 +9557,14 @@ async def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9604,7 +9603,7 @@ async def test_string_map_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9625,14 +9624,14 @@ async def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9671,7 +9670,7 @@ async def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9692,14 +9691,14 @@ async def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9738,7 +9737,7 @@ async def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9759,15 +9758,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9796,7 +9795,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9826,14 +9825,14 @@ async def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9878,7 +9877,7 @@ async def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9901,14 +9900,14 @@ async def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9953,7 +9952,7 @@ async def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9976,14 +9975,14 @@ async def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10028,7 +10027,7 @@ async def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -10051,15 +10050,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10099,7 +10098,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py index 53fb3b184e87..21a312243695 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ async def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -91,7 +90,7 @@ async def test_classname( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -112,14 +111,14 @@ async def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -158,7 +157,7 @@ async def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -179,14 +178,14 @@ async def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -225,7 +224,7 @@ async def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -246,15 +245,15 @@ def _test_classname_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py index bf38df779595..276ddaf96a25 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import datetime @@ -42,14 +41,14 @@ async def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -84,7 +83,7 @@ async def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -104,14 +103,14 @@ async def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -146,7 +145,7 @@ async def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -166,14 +165,14 @@ async def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -208,7 +207,7 @@ async def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -228,15 +227,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -257,7 +256,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py index f4058216394b..f020789ead77 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -47,14 +46,14 @@ async def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -93,7 +92,7 @@ async def add_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -115,14 +114,14 @@ async def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -161,7 +160,7 @@ async def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -183,14 +182,14 @@ async def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -229,7 +228,7 @@ async def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -251,15 +250,15 @@ def _add_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +288,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -320,14 +319,14 @@ async def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -369,7 +368,7 @@ async def delete_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -392,14 +391,14 @@ async def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -441,7 +440,7 @@ async def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -464,14 +463,14 @@ async def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -513,7 +512,7 @@ async def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -536,15 +535,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -562,7 +561,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -591,14 +590,14 @@ async def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -637,7 +636,7 @@ async def find_pets_by_status( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -659,14 +658,14 @@ async def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -705,7 +704,7 @@ async def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -727,14 +726,14 @@ async def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -773,7 +772,7 @@ async def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -795,16 +794,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'status': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -830,7 +829,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -860,14 +859,14 @@ async def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -907,7 +906,7 @@ async def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -929,14 +928,14 @@ async def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -976,7 +975,7 @@ async def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -998,14 +997,14 @@ async def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1045,7 +1044,7 @@ async def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1067,16 +1066,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'tags': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1102,7 +1101,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1132,14 +1131,14 @@ async def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1178,7 +1177,7 @@ async def get_pet_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1201,14 +1200,14 @@ async def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1247,7 +1246,7 @@ async def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1270,14 +1269,14 @@ async def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1316,7 +1315,7 @@ async def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1339,15 +1338,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1371,7 +1370,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -1400,14 +1399,14 @@ async def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1446,7 +1445,7 @@ async def update_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1470,14 +1469,14 @@ async def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1516,7 +1515,7 @@ async def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1540,14 +1539,14 @@ async def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1586,7 +1585,7 @@ async def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1610,15 +1609,15 @@ def _update_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1648,7 +1647,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1680,14 +1679,14 @@ async def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1732,7 +1731,7 @@ async def update_pet_with_form( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1756,14 +1755,14 @@ async def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1808,7 +1807,7 @@ async def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1832,14 +1831,14 @@ async def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1884,7 +1883,7 @@ async def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1908,15 +1907,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1949,7 +1948,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -1980,14 +1979,14 @@ async def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2032,7 +2031,7 @@ async def upload_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2055,14 +2054,14 @@ async def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2107,7 +2106,7 @@ async def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2130,14 +2129,14 @@ async def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2182,7 +2181,7 @@ async def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2205,15 +2204,15 @@ def _upload_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2253,7 +2252,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -2284,14 +2283,14 @@ async def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2336,7 +2335,7 @@ async def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2359,14 +2358,14 @@ async def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2411,7 +2410,7 @@ async def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2434,14 +2433,14 @@ async def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2486,7 +2485,7 @@ async def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2509,15 +2508,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2557,7 +2556,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py index 48eedc258b3d..ca23debdd037 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -46,14 +45,14 @@ async def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -92,7 +91,7 @@ async def delete_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -114,14 +113,14 @@ async def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -160,7 +159,7 @@ async def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -182,14 +181,14 @@ async def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -228,7 +227,7 @@ async def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -250,15 +249,15 @@ def _delete_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -274,7 +273,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -301,14 +300,14 @@ async def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -344,7 +343,7 @@ async def get_inventory( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -364,14 +363,14 @@ async def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -407,7 +406,7 @@ async def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -427,14 +426,14 @@ async def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -470,7 +469,7 @@ async def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -490,15 +489,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -519,7 +518,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -548,14 +547,14 @@ async def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -594,7 +593,7 @@ async def get_order_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -617,14 +616,14 @@ async def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -663,7 +662,7 @@ async def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -686,14 +685,14 @@ async def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -732,7 +731,7 @@ async def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -755,15 +754,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -787,7 +786,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -815,14 +814,14 @@ async def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -861,7 +860,7 @@ async def place_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -883,14 +882,14 @@ async def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -929,7 +928,7 @@ async def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -951,14 +950,14 @@ async def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -997,7 +996,7 @@ async def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1019,15 +1018,15 @@ def _place_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1064,7 +1063,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py index 683dfadd5e3b..b904f4ebe22c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictStr from typing import List @@ -46,14 +45,14 @@ async def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -92,7 +91,7 @@ async def create_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -112,14 +111,14 @@ async def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -158,7 +157,7 @@ async def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -178,14 +177,14 @@ async def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -224,7 +223,7 @@ async def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -250,15 +249,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -287,7 +286,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -315,14 +314,14 @@ async def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -361,7 +360,7 @@ async def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -381,14 +380,14 @@ async def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -427,7 +426,7 @@ async def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -447,14 +446,14 @@ async def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -493,7 +492,7 @@ async def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -513,16 +512,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -551,7 +550,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -579,14 +578,14 @@ async def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -625,7 +624,7 @@ async def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -645,14 +644,14 @@ async def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -691,7 +690,7 @@ async def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -711,14 +710,14 @@ async def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -757,7 +756,7 @@ async def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -777,16 +776,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -815,7 +814,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -843,14 +842,14 @@ async def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -889,7 +888,7 @@ async def delete_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -911,14 +910,14 @@ async def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -957,7 +956,7 @@ async def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -979,14 +978,14 @@ async def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1025,7 +1024,7 @@ async def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1047,15 +1046,15 @@ def _delete_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1071,7 +1070,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1099,14 +1098,14 @@ async def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1145,7 +1144,7 @@ async def get_user_by_name( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1168,14 +1167,14 @@ async def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1214,7 +1213,7 @@ async def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1237,14 +1236,14 @@ async def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1283,7 +1282,7 @@ async def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1306,15 +1305,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1338,7 +1337,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1367,14 +1366,14 @@ async def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1416,7 +1415,7 @@ async def login_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1439,14 +1438,14 @@ async def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1488,7 +1487,7 @@ async def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1511,14 +1510,14 @@ async def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1560,7 +1559,7 @@ async def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1583,15 +1582,15 @@ def _login_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1621,7 +1620,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1648,14 +1647,14 @@ async def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1691,7 +1690,7 @@ async def logout_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1710,14 +1709,14 @@ async def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1753,7 +1752,7 @@ async def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1772,14 +1771,14 @@ async def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1815,7 +1814,7 @@ async def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1834,15 +1833,15 @@ def _logout_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1856,7 +1855,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1885,14 +1884,14 @@ async def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1934,7 +1933,7 @@ async def update_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1957,14 +1956,14 @@ async def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2006,7 +2005,7 @@ async def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2029,14 +2028,14 @@ async def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2078,7 +2077,7 @@ async def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2101,15 +2100,15 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2140,7 +2139,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py index 44c7239cded3..f214d4109692 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -289,7 +289,7 @@ async def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -438,16 +438,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -480,7 +480,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -510,7 +510,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -544,7 +544,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -577,10 +577,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -595,7 +595,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py index 129093dbd35b..b00dab9134a7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py @@ -18,7 +18,7 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -34,7 +34,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -131,13 +131,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -147,11 +147,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -259,16 +259,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -406,7 +406,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -649,7 +649,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -702,7 +702,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py index 85df560d9f37..e4860d83a3a2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py index 368dc3499f1d..8ddebcba91df 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py @@ -33,7 +33,7 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] + __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py index 4acc98cef6d8..4426dc91ba3c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py index 276fe21f1876..e9cc738c41e1 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py index 15eabda3d922..65cb4ef65da2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py @@ -32,7 +32,7 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - __properties: ClassVar[List[str]] = ["_name"] + __properties: ClassVar[list[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py index 7e6a596b83df..13a654098ceb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py @@ -34,7 +34,7 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - __properties: ClassVar[List[str]] = ["username", "SingleRefType"] + __properties: ClassVar[list[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py index 8d5d174c0f37..e39c276224f5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py @@ -39,7 +39,7 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - __properties: ClassVar[List[str]] = ["className", "color"] + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py index e37e6f0d046e..f817350224d6 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py index 9b54902cf4f7..796377e20aa4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py index 5f82feb6e2cc..9a9f44848efc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py @@ -33,7 +33,7 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - __properties: ClassVar[List[str]] = ["another_property"] + __properties: ClassVar[list[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py index cc795c789425..55cc5344436b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[float]]] = Field(default=None, alias="ArrayArrayNumber") - __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] + __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py index a3aa532ef568..02444ceb7546 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[float]] = Field(default=None, alias="ArrayNumber") - __properties: ClassVar[List[str]] = ["ArrayNumber"] + __properties: ClassVar[list[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py index 29dc2461a1ca..bb578ee0eb84 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py @@ -37,7 +37,7 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[float]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py index 341b3038a503..674367a16f20 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py @@ -38,7 +38,7 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - __properties: ClassVar[List[str]] = ["_typeName"] + __properties: ClassVar[list[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py index c4a0ec1b97d4..9376880841b2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py @@ -33,7 +33,7 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - __properties: ClassVar[List[str]] = ["className", "color"] + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py index 80db24107d70..a6ad58c02154 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py @@ -42,7 +42,7 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py index 743cd99b2eef..e0adedf4ddc2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py @@ -37,7 +37,7 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py index fcd75bdff2a0..6f48cc9c244a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py @@ -33,7 +33,7 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["className", "color", "declawed"] + __properties: ClassVar[list[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py index fac99d598f00..66ac9311ddf3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py @@ -33,7 +33,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py index 7223a583ff1e..6a07e6712238 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py @@ -33,7 +33,7 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] + __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py index 99c83abfac01..1ee597534aa3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py @@ -33,7 +33,7 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - __properties: ClassVar[List[str]] = ["size", "nested"] + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py index 400461e02968..5edb03876a7b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py @@ -32,7 +32,7 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - __properties: ClassVar[List[str]] = ["_class"] + __properties: ClassVar[list[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py index 8c63c47da726..1f843c808685 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py @@ -32,7 +32,7 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["client"] + __properties: ClassVar[list[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py index ec7cc5950048..0e177f19497f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py index 6ce833112163..55b03577baa3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py @@ -39,7 +39,7 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - __properties: ClassVar[List[str]] = ["info", "type"] + __properties: ClassVar[list[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py index cb5f3d2187d3..7950cbbfa909 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py @@ -32,7 +32,7 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py index 3a70faaccaed..bbc6b2b14fe9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py @@ -33,7 +33,7 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - __properties: ClassVar[List[str]] = ["className", "size"] + __properties: ClassVar[list[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py index 61a9f5fc6cdd..10607d6d2430 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py @@ -32,7 +32,7 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py index cb3672f8eef9..9c8d433b1a88 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py @@ -32,7 +32,7 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - __properties: ClassVar[List[str]] = ["elementType"] + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py index f0d823854f2e..7fc88262bf00 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py @@ -37,7 +37,7 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - __properties: ClassVar[List[str]] = ["elementType"] + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -50,12 +50,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -64,8 +64,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py index d430cd28394d..ecc649284b64 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py @@ -33,7 +33,7 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["className", "color", "breed"] + __properties: ClassVar[list[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py index 77cf3d22668d..8fb0002b4d4c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py @@ -33,7 +33,7 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - __properties: ClassVar[List[str]] = ["category", "self_ref"] + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py index 5c0c559a79b5..4353916ea658 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py @@ -35,11 +35,11 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[List[Literal['fish', 'crab']]] = Field( + array_enum: Optional[list[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] + __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -70,8 +70,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -83,7 +83,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py index e43bd99a9026..8647c70a3ab7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py @@ -33,7 +33,7 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - __properties: ClassVar[List[str]] = ["report_format"] + __properties: ClassVar[list[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py index 1d8071852220..226c027206f0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py @@ -73,7 +73,7 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -150,8 +150,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -163,7 +163,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py index 4d7607c83e85..6cca8fe89479 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py @@ -42,7 +42,7 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py index e09066bc7985..d4853e15fb8a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py @@ -32,7 +32,7 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - __properties: ClassVar[List[str]] = ["sourceURI"] + __properties: ClassVar[list[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py index 7f4607d4d11e..fc1fdefcf1a2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py @@ -34,7 +34,7 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - __properties: ClassVar[List[str]] = ["file", "files"] + __properties: ClassVar[list[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py index ef5fcf8d1101..d9d28a80eece 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py @@ -33,7 +33,7 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - __properties: ClassVar[List[str]] = ["category", "self_ref"] + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py index d7bf4f0fe4d4..4c3bb8c51570 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py @@ -32,7 +32,7 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - __properties: ClassVar[List[str]] = ["bar"] + __properties: ClassVar[list[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py index 194aede01f2b..9381fbebb463 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py @@ -33,7 +33,7 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - __properties: ClassVar[List[str]] = ["string"] + __properties: ClassVar[list[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py index b4d75b7c3ebb..a4fdd51063d9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py @@ -52,7 +52,7 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -102,8 +102,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -115,7 +115,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py index 8143e6b831e0..8da99d2f77ba 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py @@ -33,7 +33,7 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["bar", "foo"] + __properties: ClassVar[list[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py index 9b3552b96f50..5b1dbf7e31b9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py @@ -32,7 +32,7 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - __properties: ClassVar[List[str]] = ["NullableMessage"] + __properties: ClassVar[list[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py index e4cfe348fa7a..3a67af555ed8 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py @@ -34,7 +34,7 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] + __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py index f5e05e503e6d..bfc2466f84d2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py @@ -33,7 +33,7 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - __properties: ClassVar[List[str]] = ["_typeName", "val"] + __properties: ClassVar[list[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py index 106ac3338d9d..0bb2fde1d2b9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py @@ -32,7 +32,7 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - __properties: ClassVar[List[str]] = ["aProperty"] + __properties: ClassVar[list[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py index 12dd3cc6d878..877c67c18150 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py @@ -33,7 +33,7 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[List[str]] = ["some_data"] + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py index 56f950d30c70..041480fc4454 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py index cb77950831e0..916381450b7c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py @@ -32,7 +32,7 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - __properties: ClassVar[List[str]] = ["123-list"] + __properties: ClassVar[list[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py index 7a922a4e0d91..095be98919d2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py @@ -33,7 +33,7 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] + __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py index cc9bede619cb..03384b4d53cd 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py @@ -38,7 +38,7 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -59,8 +59,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py index dd3070614469..8f7e07e50785 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,7 +37,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] + __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py index 33898410ea6f..4e36a2cb3892 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py @@ -33,7 +33,7 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - __properties: ClassVar[List[str]] = ["name", "class"] + __properties: ClassVar[list[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py index 34259444208a..b579f36f1109 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py @@ -34,7 +34,7 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["code", "type", "message"] + __properties: ClassVar[list[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py index b2faf99974e9..e497ca984b7b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py @@ -32,7 +32,7 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - __properties: ClassVar[List[str]] = ["field"] + __properties: ClassVar[list[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py index 75a0160edae0..123588033b17 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py @@ -32,7 +32,7 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - __properties: ClassVar[List[str]] = ["return"] + __properties: ClassVar[list[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py index eb8cffe6f8db..3323d22c783c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py @@ -35,7 +35,7 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - __properties: ClassVar[List[str]] = ["tags", "files"] + __properties: ClassVar[list[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py index 23e15b2a27c4..badab74b8ab1 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py @@ -35,7 +35,7 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] + __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py index c4db84b5d3a7..cb9ac34e9245 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py index 7910909abf16..95b96ae95e1f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py @@ -34,7 +34,7 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -54,8 +54,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -67,7 +67,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py index 0ae8254cc09d..975163a341a5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py @@ -32,7 +32,7 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[float] = Field(default=None, alias="JustNumber") - __properties: ClassVar[List[str]] = ["JustNumber"] + __properties: ClassVar[list[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py index 291effd93c9a..c161cbaa62b3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py @@ -32,7 +32,7 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - __properties: ClassVar[List[str]] = ["property"] + __properties: ClassVar[list[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py index 87632eabe1c4..1596640c907b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py @@ -36,7 +36,7 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[float] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] + __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py index 4eec70bb3689..851d9d035790 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py @@ -41,7 +41,7 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -61,8 +61,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py index efa446ba77ac..94b3ee6fd5a4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py @@ -34,7 +34,7 @@ class OuterComposite(BaseModel): my_number: Optional[float] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] + __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py index 2086db715860..817823ed2e5e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py @@ -35,7 +35,7 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - __properties: ClassVar[List[str]] = ["str_value", "value"] + __properties: ClassVar[list[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py index 726e3791b75f..6e015db568e9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py @@ -33,7 +33,7 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[List[str]] = ["optionalDict"] + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py index 82ad666c7bce..b011e2842c91 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py @@ -33,7 +33,7 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[List[str]] = ["optionalDict"] + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py index a7393e9aac07..b964497f9d5e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py index 36715ff48b88..adb1d8c256da 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py index b637e2bcbc1e..24fdd90b2478 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py @@ -33,7 +33,7 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - __properties: ClassVar[List[str]] = ["type"] + __properties: ClassVar[list[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py index c8cc192b751f..28620bd85c09 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py @@ -42,7 +42,7 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py index 421cc1b32cb9..e3c10c46b397 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py @@ -33,7 +33,7 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - __properties: ClassVar[List[str]] = ["_typeName", "_value"] + __properties: ClassVar[list[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py index 78c791c51d9e..7dcc2cfe0a85 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py @@ -33,7 +33,7 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[List[str]] = ["some_data"] + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py index 997b1cbe4852..4d4cab25740e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py @@ -34,7 +34,7 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - __properties: ClassVar[List[str]] = ["_type", "type", "type_"] + __properties: ClassVar[list[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py index 787352f1f1b9..c47b5f3116f6 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py @@ -33,7 +33,7 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["bar", "baz"] + __properties: ClassVar[list[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py index 160f92af2556..49d42165a9a4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py @@ -33,7 +33,7 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] + __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py index 83eab4671e31..b813533b02a8 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py @@ -33,7 +33,7 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - __properties: ClassVar[List[str]] = ["category", "circular_ref"] + __properties: ClassVar[list[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py index 109519a79c2c..4ecd479fd2e2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py @@ -33,7 +33,7 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - __properties: ClassVar[List[str]] = ["size", "nested"] + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py index 0e166b85b25e..fd24a9ce795f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py @@ -32,7 +32,7 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - __properties: ClassVar[List[str]] = ["$special[property.name]"] + __properties: ClassVar[list[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py index 9020d535a958..ab4a86cd180e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py @@ -38,7 +38,7 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["property", "async", "schema"] + __properties: ClassVar[list[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -58,8 +58,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py index 83c168d40b93..b6d0270dbbcf 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py @@ -33,7 +33,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py index fd41f02910d3..2f9b67d6bed1 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py @@ -35,7 +35,7 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - __properties: ClassVar[List[str]] = ["id", "activity"] + __properties: ClassVar[list[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py index c60e9f7c3576..f92328a9751d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py index ba4eddceed9d..4b33253298ac 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["reason400"] + __properties: ClassVar[list[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py index f7e0980aab0f..7ba600e7c014 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["reason404"] + __properties: ClassVar[list[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py index c84888abb135..c708ef356815 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["someProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py index b754467c085a..6afaf9d46598 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py @@ -41,7 +41,7 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -61,8 +61,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py index fb7159df131c..740db0725350 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,7 +32,7 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py index 72373d6525d7..6163f7029eb5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py @@ -32,7 +32,7 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["skill"] + __properties: ClassVar[list[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 68d64953f496..d22818b54a18 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,7 +33,7 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[List[str]] = ["dictProperty"] + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index c8a84e8ada0b..6ea433b6a7ce 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,7 +32,7 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[List[str]] = ["dictProperty"] + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py index e6579e3773e0..e55e9e09be15 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,7 +32,7 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py index 1482cd191d21..066be276a5b0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py @@ -39,7 +39,7 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -49,8 +49,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -62,7 +62,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py index da7c16de93fc..ec56272032a6 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py @@ -36,7 +36,7 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py index e0ef058f4677..c52fe689fc96 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import List, Optional, Union +from typing import Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[List[str]]=None, + signed_headers: Optional[list[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py index 0d456a35c3a4..9d400f72eb9a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ async def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -91,7 +90,7 @@ async def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -112,14 +111,14 @@ async def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -158,7 +157,7 @@ async def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -179,14 +178,14 @@ async def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -225,7 +224,7 @@ async def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -246,15 +245,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py index 4bca18df4343..e6b8039808a5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -42,14 +41,14 @@ async def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -84,7 +83,7 @@ async def foo_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -103,14 +102,14 @@ async def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -145,7 +144,7 @@ async def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -164,14 +163,14 @@ async def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -206,7 +205,7 @@ async def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -225,15 +224,15 @@ def _foo_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -254,7 +253,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py index 04b92f2c140d..0055783b2166 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator @@ -61,14 +60,14 @@ async def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -106,7 +105,7 @@ async def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -127,14 +126,14 @@ async def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -172,7 +171,7 @@ async def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -193,14 +192,14 @@ async def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -238,7 +237,7 @@ async def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -259,15 +258,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -296,7 +295,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -324,14 +323,14 @@ async def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -369,7 +368,7 @@ async def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -390,14 +389,14 @@ async def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -435,7 +434,7 @@ async def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -456,14 +455,14 @@ async def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -501,7 +500,7 @@ async def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -522,15 +521,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -548,7 +547,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ async def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -617,7 +616,7 @@ async def fake_health_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -637,14 +636,14 @@ async def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -679,7 +678,7 @@ async def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -699,14 +698,14 @@ async def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -741,7 +740,7 @@ async def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -761,15 +760,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -790,7 +789,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -820,14 +819,14 @@ async def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -871,7 +870,7 @@ async def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -894,14 +893,14 @@ async def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -945,7 +944,7 @@ async def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -968,14 +967,14 @@ async def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1019,7 +1018,7 @@ async def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -1042,15 +1041,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1086,7 +1085,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_signature_test' ] @@ -1115,14 +1114,14 @@ async def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1161,7 +1160,7 @@ async def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1182,14 +1181,14 @@ async def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1228,7 +1227,7 @@ async def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1249,14 +1248,14 @@ async def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1295,7 +1294,7 @@ async def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1316,15 +1315,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1360,7 +1359,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1388,14 +1387,14 @@ async def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1434,7 +1433,7 @@ async def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1455,14 +1454,14 @@ async def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1501,7 +1500,7 @@ async def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1522,14 +1521,14 @@ async def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1568,7 +1567,7 @@ async def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1589,15 +1588,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1633,7 +1632,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1661,14 +1660,14 @@ async def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1707,7 +1706,7 @@ async def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1728,14 +1727,14 @@ async def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1774,7 +1773,7 @@ async def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1795,14 +1794,14 @@ async def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1841,7 +1840,7 @@ async def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1862,15 +1861,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1906,7 +1905,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1934,14 +1933,14 @@ async def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1980,7 +1979,7 @@ async def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2001,14 +2000,14 @@ async def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2047,7 +2046,7 @@ async def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2068,14 +2067,14 @@ async def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2114,7 +2113,7 @@ async def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2135,15 +2134,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2179,7 +2178,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2208,14 +2207,14 @@ async def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2257,7 +2256,7 @@ async def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2279,14 +2278,14 @@ async def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2328,7 +2327,7 @@ async def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2350,14 +2349,14 @@ async def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2399,7 +2398,7 @@ async def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2421,16 +2420,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'param': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2470,7 +2469,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2497,14 +2496,14 @@ async def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2539,7 +2538,7 @@ async def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2559,14 +2558,14 @@ async def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2601,7 +2600,7 @@ async def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2621,14 +2620,14 @@ async def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2663,7 +2662,7 @@ async def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2683,15 +2682,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2712,7 +2711,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2739,14 +2738,14 @@ async def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2781,7 +2780,7 @@ async def fake_return_boolean( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2801,14 +2800,14 @@ async def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2843,7 +2842,7 @@ async def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2863,14 +2862,14 @@ async def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2905,7 +2904,7 @@ async def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2925,15 +2924,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2954,7 +2953,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2981,14 +2980,14 @@ async def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3023,7 +3022,7 @@ async def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3043,14 +3042,14 @@ async def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3085,7 +3084,7 @@ async def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3105,14 +3104,14 @@ async def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3147,7 +3146,7 @@ async def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3167,15 +3166,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3196,7 +3195,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3223,14 +3222,14 @@ async def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3265,7 +3264,7 @@ async def fake_return_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3285,14 +3284,14 @@ async def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3327,7 +3326,7 @@ async def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3347,14 +3346,14 @@ async def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3389,7 +3388,7 @@ async def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3409,15 +3408,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3438,7 +3437,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3465,14 +3464,14 @@ async def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3507,7 +3506,7 @@ async def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3527,14 +3526,14 @@ async def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3569,7 +3568,7 @@ async def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3589,14 +3588,14 @@ async def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3631,7 +3630,7 @@ async def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3651,15 +3650,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3680,7 +3679,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3707,14 +3706,14 @@ async def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3749,7 +3748,7 @@ async def fake_return_float( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3769,14 +3768,14 @@ async def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3811,7 +3810,7 @@ async def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3831,14 +3830,14 @@ async def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3873,7 +3872,7 @@ async def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3893,15 +3892,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3922,7 +3921,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3949,14 +3948,14 @@ async def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3991,7 +3990,7 @@ async def fake_return_int( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4011,14 +4010,14 @@ async def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4053,7 +4052,7 @@ async def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4073,14 +4072,14 @@ async def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4115,7 +4114,7 @@ async def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4135,15 +4134,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4164,7 +4163,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4191,14 +4190,14 @@ async def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4233,7 +4232,7 @@ async def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4253,14 +4252,14 @@ async def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4295,7 +4294,7 @@ async def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4315,14 +4314,14 @@ async def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4357,7 +4356,7 @@ async def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4377,15 +4376,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4406,7 +4405,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4433,14 +4432,14 @@ async def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4475,7 +4474,7 @@ async def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4495,14 +4494,14 @@ async def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4537,7 +4536,7 @@ async def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4557,14 +4556,14 @@ async def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4599,7 +4598,7 @@ async def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4619,15 +4618,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4648,7 +4647,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4675,14 +4674,14 @@ async def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4717,7 +4716,7 @@ async def fake_return_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4737,14 +4736,14 @@ async def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4779,7 +4778,7 @@ async def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4799,14 +4798,14 @@ async def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4841,7 +4840,7 @@ async def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4861,15 +4860,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4890,7 +4889,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4918,14 +4917,14 @@ async def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4963,7 +4962,7 @@ async def fake_uuid_example( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -4984,14 +4983,14 @@ async def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5029,7 +5028,7 @@ async def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5050,14 +5049,14 @@ async def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5095,7 +5094,7 @@ async def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5116,15 +5115,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5142,7 +5141,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5170,14 +5169,14 @@ async def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5216,7 +5215,7 @@ async def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5237,14 +5236,14 @@ async def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5283,7 +5282,7 @@ async def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5304,14 +5303,14 @@ async def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5350,7 +5349,7 @@ async def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5371,15 +5370,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5408,7 +5407,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5436,14 +5435,14 @@ async def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5482,7 +5481,7 @@ async def test_body_with_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5503,14 +5502,14 @@ async def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5549,7 +5548,7 @@ async def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5570,14 +5569,14 @@ async def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5616,7 +5615,7 @@ async def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5637,15 +5636,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5682,7 +5681,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5710,14 +5709,14 @@ async def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5756,7 +5755,7 @@ async def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5777,14 +5776,14 @@ async def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5823,7 +5822,7 @@ async def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5844,14 +5843,14 @@ async def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5890,7 +5889,7 @@ async def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5911,15 +5910,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5948,7 +5947,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5977,14 +5976,14 @@ async def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6025,7 +6024,7 @@ async def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6047,14 +6046,14 @@ async def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6095,7 +6094,7 @@ async def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6117,14 +6116,14 @@ async def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6165,7 +6164,7 @@ async def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6187,15 +6186,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6228,7 +6227,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6256,14 +6255,14 @@ async def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6302,7 +6301,7 @@ async def test_client_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6323,14 +6322,14 @@ async def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6369,7 +6368,7 @@ async def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6390,14 +6389,14 @@ async def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6436,7 +6435,7 @@ async def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6457,15 +6456,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6501,7 +6500,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6530,14 +6529,14 @@ async def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6578,7 +6577,7 @@ async def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6600,14 +6599,14 @@ async def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6648,7 +6647,7 @@ async def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6670,14 +6669,14 @@ async def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6718,7 +6717,7 @@ async def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6740,15 +6739,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6779,7 +6778,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6806,14 +6805,14 @@ async def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6849,7 +6848,7 @@ async def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6870,14 +6869,14 @@ async def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6913,7 +6912,7 @@ async def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6934,14 +6933,14 @@ async def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6977,7 +6976,7 @@ async def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6998,15 +6997,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7027,7 +7026,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7069,14 +7068,14 @@ async def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7157,7 +7156,7 @@ async def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7193,14 +7192,14 @@ async def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7281,7 +7280,7 @@ async def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7317,14 +7316,14 @@ async def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7405,7 +7404,7 @@ async def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7441,15 +7440,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7506,7 +7505,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_basic_test' ] @@ -7534,14 +7533,14 @@ async def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7576,7 +7575,7 @@ async def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7598,14 +7597,14 @@ async def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7640,7 +7639,7 @@ async def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7662,14 +7661,14 @@ async def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7704,7 +7703,7 @@ async def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7726,15 +7725,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7755,7 +7754,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7788,14 +7787,14 @@ async def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7849,7 +7848,7 @@ async def test_group_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7875,14 +7874,14 @@ async def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7936,7 +7935,7 @@ async def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7962,14 +7961,14 @@ async def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8023,7 +8022,7 @@ async def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -8049,15 +8048,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8091,7 +8090,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'bearer_test' ] @@ -8120,14 +8119,14 @@ async def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8166,7 +8165,7 @@ async def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8187,14 +8186,14 @@ async def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8233,7 +8232,7 @@ async def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8254,14 +8253,14 @@ async def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8300,7 +8299,7 @@ async def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8321,15 +8320,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8358,7 +8357,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8386,14 +8385,14 @@ async def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8432,7 +8431,7 @@ async def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8453,14 +8452,14 @@ async def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8499,7 +8498,7 @@ async def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8520,14 +8519,14 @@ async def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8566,7 +8565,7 @@ async def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8587,15 +8586,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8624,7 +8623,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8653,14 +8652,14 @@ async def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8702,7 +8701,7 @@ async def test_json_form_data( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8724,14 +8723,14 @@ async def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8773,7 +8772,7 @@ async def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8795,14 +8794,14 @@ async def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8844,7 +8843,7 @@ async def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8866,15 +8865,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8905,7 +8904,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8933,14 +8932,14 @@ async def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8978,7 +8977,7 @@ async def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8999,14 +8998,14 @@ async def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9044,7 +9043,7 @@ async def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9065,14 +9064,14 @@ async def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9110,7 +9109,7 @@ async def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9131,15 +9130,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9168,7 +9167,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9202,14 +9201,14 @@ async def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9266,7 +9265,7 @@ async def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9293,14 +9292,14 @@ async def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9357,7 +9356,7 @@ async def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9384,14 +9383,14 @@ async def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9448,7 +9447,7 @@ async def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9475,7 +9474,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9483,12 +9482,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9530,7 +9529,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9558,14 +9557,14 @@ async def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9604,7 +9603,7 @@ async def test_string_map_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9625,14 +9624,14 @@ async def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9671,7 +9670,7 @@ async def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9692,14 +9691,14 @@ async def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9738,7 +9737,7 @@ async def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9759,15 +9758,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9796,7 +9795,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9826,14 +9825,14 @@ async def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9878,7 +9877,7 @@ async def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9901,14 +9900,14 @@ async def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9953,7 +9952,7 @@ async def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9976,14 +9975,14 @@ async def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10028,7 +10027,7 @@ async def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -10051,15 +10050,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10099,7 +10098,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py index 53fb3b184e87..21a312243695 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ async def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -91,7 +90,7 @@ async def test_classname( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -112,14 +111,14 @@ async def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -158,7 +157,7 @@ async def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -179,14 +178,14 @@ async def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -225,7 +224,7 @@ async def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -246,15 +245,15 @@ def _test_classname_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py index bf38df779595..276ddaf96a25 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import datetime @@ -42,14 +41,14 @@ async def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -84,7 +83,7 @@ async def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -104,14 +103,14 @@ async def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -146,7 +145,7 @@ async def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -166,14 +165,14 @@ async def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -208,7 +207,7 @@ async def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -228,15 +227,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -257,7 +256,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py index f4058216394b..f020789ead77 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -47,14 +46,14 @@ async def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -93,7 +92,7 @@ async def add_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -115,14 +114,14 @@ async def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -161,7 +160,7 @@ async def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -183,14 +182,14 @@ async def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -229,7 +228,7 @@ async def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -251,15 +250,15 @@ def _add_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +288,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -320,14 +319,14 @@ async def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -369,7 +368,7 @@ async def delete_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -392,14 +391,14 @@ async def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -441,7 +440,7 @@ async def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -464,14 +463,14 @@ async def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -513,7 +512,7 @@ async def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -536,15 +535,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -562,7 +561,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -591,14 +590,14 @@ async def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -637,7 +636,7 @@ async def find_pets_by_status( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -659,14 +658,14 @@ async def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -705,7 +704,7 @@ async def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -727,14 +726,14 @@ async def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -773,7 +772,7 @@ async def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -795,16 +794,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'status': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -830,7 +829,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -860,14 +859,14 @@ async def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -907,7 +906,7 @@ async def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -929,14 +928,14 @@ async def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -976,7 +975,7 @@ async def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -998,14 +997,14 @@ async def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1045,7 +1044,7 @@ async def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1067,16 +1066,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'tags': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1102,7 +1101,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1132,14 +1131,14 @@ async def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1178,7 +1177,7 @@ async def get_pet_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1201,14 +1200,14 @@ async def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1247,7 +1246,7 @@ async def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1270,14 +1269,14 @@ async def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1316,7 +1315,7 @@ async def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1339,15 +1338,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1371,7 +1370,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -1400,14 +1399,14 @@ async def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1446,7 +1445,7 @@ async def update_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1470,14 +1469,14 @@ async def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1516,7 +1515,7 @@ async def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1540,14 +1539,14 @@ async def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1586,7 +1585,7 @@ async def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1610,15 +1609,15 @@ def _update_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1648,7 +1647,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1680,14 +1679,14 @@ async def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1732,7 +1731,7 @@ async def update_pet_with_form( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1756,14 +1755,14 @@ async def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1808,7 +1807,7 @@ async def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1832,14 +1831,14 @@ async def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1884,7 +1883,7 @@ async def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1908,15 +1907,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1949,7 +1948,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -1980,14 +1979,14 @@ async def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2032,7 +2031,7 @@ async def upload_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2055,14 +2054,14 @@ async def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2107,7 +2106,7 @@ async def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2130,14 +2129,14 @@ async def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2182,7 +2181,7 @@ async def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2205,15 +2204,15 @@ def _upload_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2253,7 +2252,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -2284,14 +2283,14 @@ async def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2336,7 +2335,7 @@ async def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2359,14 +2358,14 @@ async def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2411,7 +2410,7 @@ async def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2434,14 +2433,14 @@ async def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2486,7 +2485,7 @@ async def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2509,15 +2508,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2557,7 +2556,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py index 48eedc258b3d..ca23debdd037 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -46,14 +45,14 @@ async def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -92,7 +91,7 @@ async def delete_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -114,14 +113,14 @@ async def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -160,7 +159,7 @@ async def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -182,14 +181,14 @@ async def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -228,7 +227,7 @@ async def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -250,15 +249,15 @@ def _delete_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -274,7 +273,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -301,14 +300,14 @@ async def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -344,7 +343,7 @@ async def get_inventory( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -364,14 +363,14 @@ async def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -407,7 +406,7 @@ async def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -427,14 +426,14 @@ async def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -470,7 +469,7 @@ async def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -490,15 +489,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -519,7 +518,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -548,14 +547,14 @@ async def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -594,7 +593,7 @@ async def get_order_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -617,14 +616,14 @@ async def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -663,7 +662,7 @@ async def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -686,14 +685,14 @@ async def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -732,7 +731,7 @@ async def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -755,15 +754,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -787,7 +786,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -815,14 +814,14 @@ async def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -861,7 +860,7 @@ async def place_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -883,14 +882,14 @@ async def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -929,7 +928,7 @@ async def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -951,14 +950,14 @@ async def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -997,7 +996,7 @@ async def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1019,15 +1018,15 @@ def _place_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1064,7 +1063,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py index 683dfadd5e3b..b904f4ebe22c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictStr from typing import List @@ -46,14 +45,14 @@ async def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -92,7 +91,7 @@ async def create_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -112,14 +111,14 @@ async def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -158,7 +157,7 @@ async def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -178,14 +177,14 @@ async def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -224,7 +223,7 @@ async def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -250,15 +249,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -287,7 +286,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -315,14 +314,14 @@ async def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -361,7 +360,7 @@ async def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -381,14 +380,14 @@ async def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -427,7 +426,7 @@ async def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -447,14 +446,14 @@ async def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -493,7 +492,7 @@ async def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -513,16 +512,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -551,7 +550,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -579,14 +578,14 @@ async def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -625,7 +624,7 @@ async def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -645,14 +644,14 @@ async def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -691,7 +690,7 @@ async def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -711,14 +710,14 @@ async def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -757,7 +756,7 @@ async def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -777,16 +776,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -815,7 +814,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -843,14 +842,14 @@ async def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -889,7 +888,7 @@ async def delete_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -911,14 +910,14 @@ async def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -957,7 +956,7 @@ async def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -979,14 +978,14 @@ async def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1025,7 +1024,7 @@ async def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1047,15 +1046,15 @@ def _delete_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1071,7 +1070,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1099,14 +1098,14 @@ async def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1145,7 +1144,7 @@ async def get_user_by_name( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1168,14 +1167,14 @@ async def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1214,7 +1213,7 @@ async def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1237,14 +1236,14 @@ async def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1283,7 +1282,7 @@ async def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1306,15 +1305,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1338,7 +1337,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1367,14 +1366,14 @@ async def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1416,7 +1415,7 @@ async def login_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1439,14 +1438,14 @@ async def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1488,7 +1487,7 @@ async def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1511,14 +1510,14 @@ async def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1560,7 +1559,7 @@ async def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1583,15 +1582,15 @@ def _login_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1621,7 +1620,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1648,14 +1647,14 @@ async def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1691,7 +1690,7 @@ async def logout_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1710,14 +1709,14 @@ async def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1753,7 +1752,7 @@ async def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1772,14 +1771,14 @@ async def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1815,7 +1814,7 @@ async def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1834,15 +1833,15 @@ def _logout_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1856,7 +1855,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1885,14 +1884,14 @@ async def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1934,7 +1933,7 @@ async def update_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1957,14 +1956,14 @@ async def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2006,7 +2005,7 @@ async def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2029,14 +2028,14 @@ async def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2078,7 +2077,7 @@ async def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2101,15 +2100,15 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2140,7 +2139,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py index 44c7239cded3..f214d4109692 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -289,7 +289,7 @@ async def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -438,16 +438,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -480,7 +480,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -510,7 +510,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -544,7 +544,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -577,10 +577,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -595,7 +595,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py index 129093dbd35b..b00dab9134a7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py @@ -18,7 +18,7 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -34,7 +34,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -131,13 +131,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -147,11 +147,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -259,16 +259,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -406,7 +406,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -649,7 +649,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -702,7 +702,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py index 85df560d9f37..e4860d83a3a2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py index 368dc3499f1d..8ddebcba91df 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py @@ -33,7 +33,7 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] + __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py index 4acc98cef6d8..4426dc91ba3c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py index 276fe21f1876..e9cc738c41e1 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py index 15eabda3d922..65cb4ef65da2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py @@ -32,7 +32,7 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - __properties: ClassVar[List[str]] = ["_name"] + __properties: ClassVar[list[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py index 7e6a596b83df..13a654098ceb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py @@ -34,7 +34,7 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - __properties: ClassVar[List[str]] = ["username", "SingleRefType"] + __properties: ClassVar[list[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py index 8d5d174c0f37..e39c276224f5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py @@ -39,7 +39,7 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - __properties: ClassVar[List[str]] = ["className", "color"] + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py index e37e6f0d046e..f817350224d6 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py index 9b54902cf4f7..796377e20aa4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py index 5f82feb6e2cc..9a9f44848efc 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py @@ -33,7 +33,7 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - __properties: ClassVar[List[str]] = ["another_property"] + __properties: ClassVar[list[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py index cc795c789425..55cc5344436b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[float]]] = Field(default=None, alias="ArrayArrayNumber") - __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] + __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py index a3aa532ef568..02444ceb7546 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[float]] = Field(default=None, alias="ArrayNumber") - __properties: ClassVar[List[str]] = ["ArrayNumber"] + __properties: ClassVar[list[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py index 29dc2461a1ca..bb578ee0eb84 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py @@ -37,7 +37,7 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[float]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py index 341b3038a503..674367a16f20 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py @@ -38,7 +38,7 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - __properties: ClassVar[List[str]] = ["_typeName"] + __properties: ClassVar[list[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py index c4a0ec1b97d4..9376880841b2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py @@ -33,7 +33,7 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - __properties: ClassVar[List[str]] = ["className", "color"] + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py index 80db24107d70..a6ad58c02154 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py @@ -42,7 +42,7 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py index 743cd99b2eef..e0adedf4ddc2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py @@ -37,7 +37,7 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py index fcd75bdff2a0..6f48cc9c244a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py @@ -33,7 +33,7 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["className", "color", "declawed"] + __properties: ClassVar[list[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py index fac99d598f00..66ac9311ddf3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py @@ -33,7 +33,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py index 7223a583ff1e..6a07e6712238 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py @@ -33,7 +33,7 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] + __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py index 99c83abfac01..1ee597534aa3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py @@ -33,7 +33,7 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - __properties: ClassVar[List[str]] = ["size", "nested"] + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py index 400461e02968..5edb03876a7b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py @@ -32,7 +32,7 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - __properties: ClassVar[List[str]] = ["_class"] + __properties: ClassVar[list[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py index 8c63c47da726..1f843c808685 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py @@ -32,7 +32,7 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["client"] + __properties: ClassVar[list[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py index ec7cc5950048..0e177f19497f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py index 6ce833112163..55b03577baa3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py @@ -39,7 +39,7 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - __properties: ClassVar[List[str]] = ["info", "type"] + __properties: ClassVar[list[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py index cb5f3d2187d3..7950cbbfa909 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py @@ -32,7 +32,7 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py index 3a70faaccaed..bbc6b2b14fe9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py @@ -33,7 +33,7 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - __properties: ClassVar[List[str]] = ["className", "size"] + __properties: ClassVar[list[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py index 61a9f5fc6cdd..10607d6d2430 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py @@ -32,7 +32,7 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py index cb3672f8eef9..9c8d433b1a88 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py @@ -32,7 +32,7 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - __properties: ClassVar[List[str]] = ["elementType"] + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py index f0d823854f2e..7fc88262bf00 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py @@ -37,7 +37,7 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - __properties: ClassVar[List[str]] = ["elementType"] + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -50,12 +50,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -64,8 +64,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py index d430cd28394d..ecc649284b64 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py @@ -33,7 +33,7 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["className", "color", "breed"] + __properties: ClassVar[list[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py index 77cf3d22668d..8fb0002b4d4c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py @@ -33,7 +33,7 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - __properties: ClassVar[List[str]] = ["category", "self_ref"] + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py index 5c0c559a79b5..4353916ea658 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py @@ -35,11 +35,11 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[List[Literal['fish', 'crab']]] = Field( + array_enum: Optional[list[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] + __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -70,8 +70,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -83,7 +83,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py index e43bd99a9026..8647c70a3ab7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py @@ -33,7 +33,7 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - __properties: ClassVar[List[str]] = ["report_format"] + __properties: ClassVar[list[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py index 1d8071852220..226c027206f0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py @@ -73,7 +73,7 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -150,8 +150,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -163,7 +163,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py index 4d7607c83e85..6cca8fe89479 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py @@ -42,7 +42,7 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py index e09066bc7985..d4853e15fb8a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py @@ -32,7 +32,7 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - __properties: ClassVar[List[str]] = ["sourceURI"] + __properties: ClassVar[list[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py index 7f4607d4d11e..fc1fdefcf1a2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py @@ -34,7 +34,7 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - __properties: ClassVar[List[str]] = ["file", "files"] + __properties: ClassVar[list[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py index ef5fcf8d1101..d9d28a80eece 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py @@ -33,7 +33,7 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - __properties: ClassVar[List[str]] = ["category", "self_ref"] + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py index d7bf4f0fe4d4..4c3bb8c51570 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py @@ -32,7 +32,7 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - __properties: ClassVar[List[str]] = ["bar"] + __properties: ClassVar[list[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py index 194aede01f2b..9381fbebb463 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py @@ -33,7 +33,7 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - __properties: ClassVar[List[str]] = ["string"] + __properties: ClassVar[list[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py index b4d75b7c3ebb..a4fdd51063d9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py @@ -52,7 +52,7 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -102,8 +102,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -115,7 +115,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py index 8143e6b831e0..8da99d2f77ba 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py @@ -33,7 +33,7 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["bar", "foo"] + __properties: ClassVar[list[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py index 9b3552b96f50..5b1dbf7e31b9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py @@ -32,7 +32,7 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - __properties: ClassVar[List[str]] = ["NullableMessage"] + __properties: ClassVar[list[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py index e4cfe348fa7a..3a67af555ed8 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py @@ -34,7 +34,7 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] + __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py index f5e05e503e6d..bfc2466f84d2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py @@ -33,7 +33,7 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - __properties: ClassVar[List[str]] = ["_typeName", "val"] + __properties: ClassVar[list[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py index 106ac3338d9d..0bb2fde1d2b9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py @@ -32,7 +32,7 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - __properties: ClassVar[List[str]] = ["aProperty"] + __properties: ClassVar[list[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py index 12dd3cc6d878..877c67c18150 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py @@ -33,7 +33,7 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[List[str]] = ["some_data"] + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py index 56f950d30c70..041480fc4454 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py index cb77950831e0..916381450b7c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py @@ -32,7 +32,7 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - __properties: ClassVar[List[str]] = ["123-list"] + __properties: ClassVar[list[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py index 7a922a4e0d91..095be98919d2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py @@ -33,7 +33,7 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] + __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py index cc9bede619cb..03384b4d53cd 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py @@ -38,7 +38,7 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -59,8 +59,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py index dd3070614469..8f7e07e50785 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,7 +37,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] + __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py index 33898410ea6f..4e36a2cb3892 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py @@ -33,7 +33,7 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - __properties: ClassVar[List[str]] = ["name", "class"] + __properties: ClassVar[list[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py index 34259444208a..b579f36f1109 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py @@ -34,7 +34,7 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["code", "type", "message"] + __properties: ClassVar[list[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py index b2faf99974e9..e497ca984b7b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py @@ -32,7 +32,7 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - __properties: ClassVar[List[str]] = ["field"] + __properties: ClassVar[list[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py index 75a0160edae0..123588033b17 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py @@ -32,7 +32,7 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - __properties: ClassVar[List[str]] = ["return"] + __properties: ClassVar[list[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py index eb8cffe6f8db..3323d22c783c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py @@ -35,7 +35,7 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - __properties: ClassVar[List[str]] = ["tags", "files"] + __properties: ClassVar[list[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py index 23e15b2a27c4..badab74b8ab1 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py @@ -35,7 +35,7 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] + __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py index c4db84b5d3a7..cb9ac34e9245 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py index 7910909abf16..95b96ae95e1f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py @@ -34,7 +34,7 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -54,8 +54,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -67,7 +67,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py index 0ae8254cc09d..975163a341a5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py @@ -32,7 +32,7 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[float] = Field(default=None, alias="JustNumber") - __properties: ClassVar[List[str]] = ["JustNumber"] + __properties: ClassVar[list[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py index 291effd93c9a..c161cbaa62b3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py @@ -32,7 +32,7 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - __properties: ClassVar[List[str]] = ["property"] + __properties: ClassVar[list[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py index 87632eabe1c4..1596640c907b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py @@ -36,7 +36,7 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[float] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] + __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py index 4eec70bb3689..851d9d035790 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py @@ -41,7 +41,7 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -61,8 +61,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py index efa446ba77ac..94b3ee6fd5a4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py @@ -34,7 +34,7 @@ class OuterComposite(BaseModel): my_number: Optional[float] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] + __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py index 2086db715860..817823ed2e5e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py @@ -35,7 +35,7 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - __properties: ClassVar[List[str]] = ["str_value", "value"] + __properties: ClassVar[list[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py index 726e3791b75f..6e015db568e9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py @@ -33,7 +33,7 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[List[str]] = ["optionalDict"] + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py index 82ad666c7bce..b011e2842c91 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py @@ -33,7 +33,7 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[List[str]] = ["optionalDict"] + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py index a7393e9aac07..b964497f9d5e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py index 36715ff48b88..adb1d8c256da 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py index b637e2bcbc1e..24fdd90b2478 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py @@ -33,7 +33,7 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - __properties: ClassVar[List[str]] = ["type"] + __properties: ClassVar[list[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py index c8cc192b751f..28620bd85c09 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py @@ -42,7 +42,7 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py index 421cc1b32cb9..e3c10c46b397 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py @@ -33,7 +33,7 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - __properties: ClassVar[List[str]] = ["_typeName", "_value"] + __properties: ClassVar[list[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py index 78c791c51d9e..7dcc2cfe0a85 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py @@ -33,7 +33,7 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[List[str]] = ["some_data"] + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py index 997b1cbe4852..4d4cab25740e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py @@ -34,7 +34,7 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - __properties: ClassVar[List[str]] = ["_type", "type", "type_"] + __properties: ClassVar[list[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py index 787352f1f1b9..c47b5f3116f6 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py @@ -33,7 +33,7 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["bar", "baz"] + __properties: ClassVar[list[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py index 160f92af2556..49d42165a9a4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py @@ -33,7 +33,7 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] + __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py index 83eab4671e31..b813533b02a8 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py @@ -33,7 +33,7 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - __properties: ClassVar[List[str]] = ["category", "circular_ref"] + __properties: ClassVar[list[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py index 109519a79c2c..4ecd479fd2e2 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py @@ -33,7 +33,7 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - __properties: ClassVar[List[str]] = ["size", "nested"] + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py index 0e166b85b25e..fd24a9ce795f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py @@ -32,7 +32,7 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - __properties: ClassVar[List[str]] = ["$special[property.name]"] + __properties: ClassVar[list[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py index 9020d535a958..ab4a86cd180e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py @@ -38,7 +38,7 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[List[str]] = ["property", "async", "schema"] + __properties: ClassVar[list[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -58,8 +58,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py index 83c168d40b93..b6d0270dbbcf 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py @@ -33,7 +33,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name"] + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py index fd41f02910d3..2f9b67d6bed1 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py @@ -35,7 +35,7 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - __properties: ClassVar[List[str]] = ["id", "activity"] + __properties: ClassVar[list[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py index c60e9f7c3576..f92328a9751d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py index ba4eddceed9d..4b33253298ac 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["reason400"] + __properties: ClassVar[list[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py index f7e0980aab0f..7ba600e7c014 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["reason404"] + __properties: ClassVar[list[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py index c84888abb135..c708ef356815 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["someProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py index b754467c085a..6afaf9d46598 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py @@ -41,7 +41,7 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -61,8 +61,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py index fb7159df131c..740db0725350 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,7 +32,7 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py index 72373d6525d7..6163f7029eb5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py @@ -32,7 +32,7 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["skill"] + __properties: ClassVar[list[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 68d64953f496..d22818b54a18 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,7 +33,7 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[List[str]] = ["dictProperty"] + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index c8a84e8ada0b..6ea433b6a7ce 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,7 +32,7 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[List[str]] = ["dictProperty"] + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py index e6579e3773e0..e55e9e09be15 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,7 +32,7 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name"] + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py index 1482cd191d21..066be276a5b0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py @@ -39,7 +39,7 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -49,8 +49,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -62,7 +62,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py index da7c16de93fc..ec56272032a6 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py @@ -36,7 +36,7 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py index e0ef058f4677..c52fe689fc96 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import List, Optional, Union +from typing import Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[List[str]]=None, + signed_headers: Optional[list[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py index 1e19c6d880d1..a9e011f9d7e7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -91,7 +90,7 @@ def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -112,14 +111,14 @@ def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -158,7 +157,7 @@ def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -179,14 +178,14 @@ def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -225,7 +224,7 @@ def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -246,15 +245,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py index 5f05c540a238..d299b8f0e50a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -42,14 +41,14 @@ def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -84,7 +83,7 @@ def foo_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -103,14 +102,14 @@ def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -145,7 +144,7 @@ def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -164,14 +163,14 @@ def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -206,7 +205,7 @@ def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -225,15 +224,15 @@ def _foo_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -254,7 +253,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py index 6d99595e3059..244714f54f60 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator @@ -61,14 +60,14 @@ def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -106,7 +105,7 @@ def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -127,14 +126,14 @@ def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -172,7 +171,7 @@ def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -193,14 +192,14 @@ def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -238,7 +237,7 @@ def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -259,15 +258,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -296,7 +295,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -324,14 +323,14 @@ def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -369,7 +368,7 @@ def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -390,14 +389,14 @@ def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -435,7 +434,7 @@ def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -456,14 +455,14 @@ def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -501,7 +500,7 @@ def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -522,15 +521,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -548,7 +547,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -617,7 +616,7 @@ def fake_health_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -637,14 +636,14 @@ def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -679,7 +678,7 @@ def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -699,14 +698,14 @@ def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -741,7 +740,7 @@ def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -761,15 +760,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -790,7 +789,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -820,14 +819,14 @@ def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -871,7 +870,7 @@ def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -894,14 +893,14 @@ def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -945,7 +944,7 @@ def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -968,14 +967,14 @@ def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1019,7 +1018,7 @@ def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -1042,15 +1041,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1086,7 +1085,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_signature_test' ] @@ -1115,14 +1114,14 @@ def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1161,7 +1160,7 @@ def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1182,14 +1181,14 @@ def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1228,7 +1227,7 @@ def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1249,14 +1248,14 @@ def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1295,7 +1294,7 @@ def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1316,15 +1315,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1360,7 +1359,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1388,14 +1387,14 @@ def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1434,7 +1433,7 @@ def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1455,14 +1454,14 @@ def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1501,7 +1500,7 @@ def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1522,14 +1521,14 @@ def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1568,7 +1567,7 @@ def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1589,15 +1588,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1633,7 +1632,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1661,14 +1660,14 @@ def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1707,7 +1706,7 @@ def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1728,14 +1727,14 @@ def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1774,7 +1773,7 @@ def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1795,14 +1794,14 @@ def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1841,7 +1840,7 @@ def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1862,15 +1861,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1906,7 +1905,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1934,14 +1933,14 @@ def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1980,7 +1979,7 @@ def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2001,14 +2000,14 @@ def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2047,7 +2046,7 @@ def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2068,14 +2067,14 @@ def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2114,7 +2113,7 @@ def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2135,15 +2134,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2179,7 +2178,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2208,14 +2207,14 @@ def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2257,7 +2256,7 @@ def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2279,14 +2278,14 @@ def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2328,7 +2327,7 @@ def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2350,14 +2349,14 @@ def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2399,7 +2398,7 @@ def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2421,16 +2420,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'param': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2470,7 +2469,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2497,14 +2496,14 @@ def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2539,7 +2538,7 @@ def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2559,14 +2558,14 @@ def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2601,7 +2600,7 @@ def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2621,14 +2620,14 @@ def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2663,7 +2662,7 @@ def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2683,15 +2682,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2712,7 +2711,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2739,14 +2738,14 @@ def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2781,7 +2780,7 @@ def fake_return_boolean( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2801,14 +2800,14 @@ def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2843,7 +2842,7 @@ def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2863,14 +2862,14 @@ def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2905,7 +2904,7 @@ def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2925,15 +2924,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2954,7 +2953,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2981,14 +2980,14 @@ def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3023,7 +3022,7 @@ def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3043,14 +3042,14 @@ def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3085,7 +3084,7 @@ def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3105,14 +3104,14 @@ def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3147,7 +3146,7 @@ def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3167,15 +3166,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3196,7 +3195,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3223,14 +3222,14 @@ def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3265,7 +3264,7 @@ def fake_return_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3285,14 +3284,14 @@ def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3327,7 +3326,7 @@ def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3347,14 +3346,14 @@ def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3389,7 +3388,7 @@ def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3409,15 +3408,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3438,7 +3437,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3465,14 +3464,14 @@ def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3507,7 +3506,7 @@ def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3527,14 +3526,14 @@ def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3569,7 +3568,7 @@ def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3589,14 +3588,14 @@ def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3631,7 +3630,7 @@ def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3651,15 +3650,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3680,7 +3679,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3707,14 +3706,14 @@ def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3749,7 +3748,7 @@ def fake_return_float( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3769,14 +3768,14 @@ def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3811,7 +3810,7 @@ def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3831,14 +3830,14 @@ def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3873,7 +3872,7 @@ def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3893,15 +3892,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3922,7 +3921,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3949,14 +3948,14 @@ def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3991,7 +3990,7 @@ def fake_return_int( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4011,14 +4010,14 @@ def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4053,7 +4052,7 @@ def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4073,14 +4072,14 @@ def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4115,7 +4114,7 @@ def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4135,15 +4134,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4164,7 +4163,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4191,14 +4190,14 @@ def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4233,7 +4232,7 @@ def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4253,14 +4252,14 @@ def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4295,7 +4294,7 @@ def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4315,14 +4314,14 @@ def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4357,7 +4356,7 @@ def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4377,15 +4376,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4406,7 +4405,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4433,14 +4432,14 @@ def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4475,7 +4474,7 @@ def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4495,14 +4494,14 @@ def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4537,7 +4536,7 @@ def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4557,14 +4556,14 @@ def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4599,7 +4598,7 @@ def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4619,15 +4618,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4648,7 +4647,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4675,14 +4674,14 @@ def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4717,7 +4716,7 @@ def fake_return_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4737,14 +4736,14 @@ def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4779,7 +4778,7 @@ def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4799,14 +4798,14 @@ def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4841,7 +4840,7 @@ def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4861,15 +4860,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4890,7 +4889,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4918,14 +4917,14 @@ def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4963,7 +4962,7 @@ def fake_uuid_example( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -4984,14 +4983,14 @@ def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5029,7 +5028,7 @@ def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5050,14 +5049,14 @@ def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5095,7 +5094,7 @@ def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5116,15 +5115,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5142,7 +5141,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5170,14 +5169,14 @@ def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5216,7 +5215,7 @@ def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5237,14 +5236,14 @@ def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5283,7 +5282,7 @@ def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5304,14 +5303,14 @@ def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5350,7 +5349,7 @@ def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5371,15 +5370,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5408,7 +5407,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5436,14 +5435,14 @@ def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5482,7 +5481,7 @@ def test_body_with_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5503,14 +5502,14 @@ def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5549,7 +5548,7 @@ def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5570,14 +5569,14 @@ def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5616,7 +5615,7 @@ def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5637,15 +5636,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5682,7 +5681,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5710,14 +5709,14 @@ def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5756,7 +5755,7 @@ def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5777,14 +5776,14 @@ def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5823,7 +5822,7 @@ def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5844,14 +5843,14 @@ def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5890,7 +5889,7 @@ def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5911,15 +5910,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5948,7 +5947,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5977,14 +5976,14 @@ def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6025,7 +6024,7 @@ def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6047,14 +6046,14 @@ def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6095,7 +6094,7 @@ def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6117,14 +6116,14 @@ def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6165,7 +6164,7 @@ def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6187,15 +6186,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6228,7 +6227,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6256,14 +6255,14 @@ def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6302,7 +6301,7 @@ def test_client_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6323,14 +6322,14 @@ def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6369,7 +6368,7 @@ def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6390,14 +6389,14 @@ def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6436,7 +6435,7 @@ def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6457,15 +6456,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6501,7 +6500,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6530,14 +6529,14 @@ def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6578,7 +6577,7 @@ def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6600,14 +6599,14 @@ def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6648,7 +6647,7 @@ def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6670,14 +6669,14 @@ def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6718,7 +6717,7 @@ def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6740,15 +6739,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6779,7 +6778,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6806,14 +6805,14 @@ def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6849,7 +6848,7 @@ def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6870,14 +6869,14 @@ def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6913,7 +6912,7 @@ def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6934,14 +6933,14 @@ def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6977,7 +6976,7 @@ def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6998,15 +6997,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7027,7 +7026,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7069,14 +7068,14 @@ def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7157,7 +7156,7 @@ def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7193,14 +7192,14 @@ def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7281,7 +7280,7 @@ def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7317,14 +7316,14 @@ def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7405,7 +7404,7 @@ def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7441,15 +7440,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7506,7 +7505,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_basic_test' ] @@ -7534,14 +7533,14 @@ def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7576,7 +7575,7 @@ def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7598,14 +7597,14 @@ def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7640,7 +7639,7 @@ def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7662,14 +7661,14 @@ def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7704,7 +7703,7 @@ def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7726,15 +7725,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7755,7 +7754,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7788,14 +7787,14 @@ def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7849,7 +7848,7 @@ def test_group_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7875,14 +7874,14 @@ def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7936,7 +7935,7 @@ def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7962,14 +7961,14 @@ def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8023,7 +8022,7 @@ def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -8049,15 +8048,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8091,7 +8090,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'bearer_test' ] @@ -8120,14 +8119,14 @@ def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8166,7 +8165,7 @@ def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8187,14 +8186,14 @@ def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8233,7 +8232,7 @@ def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8254,14 +8253,14 @@ def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8300,7 +8299,7 @@ def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8321,15 +8320,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8358,7 +8357,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8386,14 +8385,14 @@ def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8432,7 +8431,7 @@ def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8453,14 +8452,14 @@ def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8499,7 +8498,7 @@ def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8520,14 +8519,14 @@ def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8566,7 +8565,7 @@ def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8587,15 +8586,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8624,7 +8623,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8653,14 +8652,14 @@ def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8702,7 +8701,7 @@ def test_json_form_data( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8724,14 +8723,14 @@ def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8773,7 +8772,7 @@ def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8795,14 +8794,14 @@ def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8844,7 +8843,7 @@ def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8866,15 +8865,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8905,7 +8904,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8933,14 +8932,14 @@ def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8978,7 +8977,7 @@ def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8999,14 +8998,14 @@ def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9044,7 +9043,7 @@ def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9065,14 +9064,14 @@ def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9110,7 +9109,7 @@ def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9131,15 +9130,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9168,7 +9167,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9202,14 +9201,14 @@ def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9266,7 +9265,7 @@ def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9293,14 +9292,14 @@ def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9357,7 +9356,7 @@ def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9384,14 +9383,14 @@ def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9448,7 +9447,7 @@ def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9475,7 +9474,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9483,12 +9482,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9530,7 +9529,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9558,14 +9557,14 @@ def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9604,7 +9603,7 @@ def test_string_map_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9625,14 +9624,14 @@ def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9671,7 +9670,7 @@ def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9692,14 +9691,14 @@ def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9738,7 +9737,7 @@ def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9759,15 +9758,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9796,7 +9795,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9826,14 +9825,14 @@ def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9878,7 +9877,7 @@ def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9901,14 +9900,14 @@ def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9953,7 +9952,7 @@ def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9976,14 +9975,14 @@ def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10028,7 +10027,7 @@ def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -10051,15 +10050,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10099,7 +10098,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py index c5596bef9393..5cafd6d486fb 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -91,7 +90,7 @@ def test_classname( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -112,14 +111,14 @@ def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -158,7 +157,7 @@ def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -179,14 +178,14 @@ def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -225,7 +224,7 @@ def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -246,15 +245,15 @@ def _test_classname_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py index a59a3c99cbc4..ab56380ac74d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import datetime @@ -42,14 +41,14 @@ def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -84,7 +83,7 @@ def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -104,14 +103,14 @@ def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -146,7 +145,7 @@ def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -166,14 +165,14 @@ def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -208,7 +207,7 @@ def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -228,15 +227,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -257,7 +256,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py index 21539d3dde23..2c97d4e70d07 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -47,14 +46,14 @@ def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -93,7 +92,7 @@ def add_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -115,14 +114,14 @@ def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -161,7 +160,7 @@ def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -183,14 +182,14 @@ def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -229,7 +228,7 @@ def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -251,15 +250,15 @@ def _add_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +288,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -320,14 +319,14 @@ def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -369,7 +368,7 @@ def delete_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -392,14 +391,14 @@ def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -441,7 +440,7 @@ def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -464,14 +463,14 @@ def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -513,7 +512,7 @@ def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -536,15 +535,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -562,7 +561,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -591,14 +590,14 @@ def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -637,7 +636,7 @@ def find_pets_by_status( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -659,14 +658,14 @@ def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -705,7 +704,7 @@ def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -727,14 +726,14 @@ def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -773,7 +772,7 @@ def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -795,16 +794,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'status': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -830,7 +829,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -860,14 +859,14 @@ def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -907,7 +906,7 @@ def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -929,14 +928,14 @@ def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -976,7 +975,7 @@ def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -998,14 +997,14 @@ def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1045,7 +1044,7 @@ def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1067,16 +1066,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'tags': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1102,7 +1101,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1132,14 +1131,14 @@ def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1178,7 +1177,7 @@ def get_pet_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1201,14 +1200,14 @@ def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1247,7 +1246,7 @@ def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1270,14 +1269,14 @@ def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1316,7 +1315,7 @@ def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1339,15 +1338,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1371,7 +1370,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -1400,14 +1399,14 @@ def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1446,7 +1445,7 @@ def update_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1470,14 +1469,14 @@ def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1516,7 +1515,7 @@ def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1540,14 +1539,14 @@ def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1586,7 +1585,7 @@ def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1610,15 +1609,15 @@ def _update_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1648,7 +1647,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1680,14 +1679,14 @@ def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1732,7 +1731,7 @@ def update_pet_with_form( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1756,14 +1755,14 @@ def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1808,7 +1807,7 @@ def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1832,14 +1831,14 @@ def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1884,7 +1883,7 @@ def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1908,15 +1907,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1949,7 +1948,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -1980,14 +1979,14 @@ def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2032,7 +2031,7 @@ def upload_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2055,14 +2054,14 @@ def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2107,7 +2106,7 @@ def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2130,14 +2129,14 @@ def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2182,7 +2181,7 @@ def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2205,15 +2204,15 @@ def _upload_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2253,7 +2252,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -2284,14 +2283,14 @@ def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2336,7 +2335,7 @@ def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2359,14 +2358,14 @@ def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2411,7 +2410,7 @@ def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2434,14 +2433,14 @@ def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2486,7 +2485,7 @@ def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2509,15 +2508,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2557,7 +2556,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py index edb9dce2f565..316a6f0ab3f4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -46,14 +45,14 @@ def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -92,7 +91,7 @@ def delete_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -114,14 +113,14 @@ def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -160,7 +159,7 @@ def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -182,14 +181,14 @@ def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -228,7 +227,7 @@ def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -250,15 +249,15 @@ def _delete_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -274,7 +273,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -301,14 +300,14 @@ def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -344,7 +343,7 @@ def get_inventory( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -364,14 +363,14 @@ def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -407,7 +406,7 @@ def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -427,14 +426,14 @@ def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -470,7 +469,7 @@ def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -490,15 +489,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -519,7 +518,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -548,14 +547,14 @@ def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -594,7 +593,7 @@ def get_order_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -617,14 +616,14 @@ def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -663,7 +662,7 @@ def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -686,14 +685,14 @@ def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -732,7 +731,7 @@ def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -755,15 +754,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -787,7 +786,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -815,14 +814,14 @@ def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -861,7 +860,7 @@ def place_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -883,14 +882,14 @@ def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -929,7 +928,7 @@ def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -951,14 +950,14 @@ def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -997,7 +996,7 @@ def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1019,15 +1018,15 @@ def _place_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1064,7 +1063,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py index b19c4fb54a4f..c0611ae9f27f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictStr from typing import List @@ -46,14 +45,14 @@ def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -92,7 +91,7 @@ def create_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -112,14 +111,14 @@ def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -158,7 +157,7 @@ def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -178,14 +177,14 @@ def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -224,7 +223,7 @@ def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -250,15 +249,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -287,7 +286,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -315,14 +314,14 @@ def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -361,7 +360,7 @@ def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -381,14 +380,14 @@ def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -427,7 +426,7 @@ def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -447,14 +446,14 @@ def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -493,7 +492,7 @@ def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -513,16 +512,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -551,7 +550,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -579,14 +578,14 @@ def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -625,7 +624,7 @@ def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -645,14 +644,14 @@ def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -691,7 +690,7 @@ def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -711,14 +710,14 @@ def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -757,7 +756,7 @@ def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -777,16 +776,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -815,7 +814,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -843,14 +842,14 @@ def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -889,7 +888,7 @@ def delete_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -911,14 +910,14 @@ def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -957,7 +956,7 @@ def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -979,14 +978,14 @@ def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1025,7 +1024,7 @@ def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1047,15 +1046,15 @@ def _delete_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1071,7 +1070,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1099,14 +1098,14 @@ def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1145,7 +1144,7 @@ def get_user_by_name( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1168,14 +1167,14 @@ def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1214,7 +1213,7 @@ def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1237,14 +1236,14 @@ def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1283,7 +1282,7 @@ def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1306,15 +1305,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1338,7 +1337,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1367,14 +1366,14 @@ def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1416,7 +1415,7 @@ def login_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1439,14 +1438,14 @@ def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1488,7 +1487,7 @@ def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1511,14 +1510,14 @@ def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1560,7 +1559,7 @@ def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1583,15 +1582,15 @@ def _login_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1621,7 +1620,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1648,14 +1647,14 @@ def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1691,7 +1690,7 @@ def logout_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1710,14 +1709,14 @@ def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1753,7 +1752,7 @@ def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1772,14 +1771,14 @@ def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1815,7 +1814,7 @@ def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1834,15 +1833,15 @@ def _logout_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1856,7 +1855,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1885,14 +1884,14 @@ def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1934,7 +1933,7 @@ def update_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1957,14 +1956,14 @@ def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2006,7 +2005,7 @@ def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2029,14 +2028,14 @@ def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2078,7 +2077,7 @@ def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2101,15 +2100,15 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2140,7 +2139,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py index 1d210a1670dd..c37f6b52d77f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -286,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -435,16 +435,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -477,7 +477,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -507,7 +507,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -541,7 +541,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -574,10 +574,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -592,7 +592,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py index 2d009246937e..3137ff1f0c65 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -132,13 +132,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -148,11 +148,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -260,16 +260,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -411,7 +411,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -654,7 +654,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -707,7 +707,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py index 85df560d9f37..e4860d83a3a2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py index b5e08aa86a4f..6b7761f5bd2f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py @@ -33,8 +33,8 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py index 4acc98cef6d8..4426dc91ba3c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py index 276fe21f1876..e9cc738c41e1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py index 8db6944f75ff..babb65c478e7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py @@ -32,8 +32,8 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py index 120572007721..f53a08cbf80a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py @@ -34,8 +34,8 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["username", "SingleRefType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py index 8568510ee341..fb1a4b786fc6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py @@ -39,8 +39,8 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py index e37e6f0d046e..f817350224d6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py index 9b54902cf4f7..796377e20aa4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py index de8ba7802883..71b8e3fb2f54 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py @@ -33,8 +33,8 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["another_property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py index 1e1d7f9045b0..9e99cb7b32ff 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[StrictFloat]]] = Field(default=None, alias="ArrayArrayNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py index 85841f097156..dc1301ca0b52 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[StrictFloat]] = Field(default=None, alias="ArrayNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["ArrayNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py index 45c6534000d4..41f4393117c6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py @@ -37,8 +37,8 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[StrictFloat]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py index 0f0e7cd5fb49..71d61aa8ce90 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py @@ -38,8 +38,8 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py index c2cd8dbbb1e1..c2a7cec0d209 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py @@ -33,8 +33,8 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py index 93ac4500d0fe..37f7c81a43c2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py @@ -42,8 +42,8 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py index 805fe4108b51..0458520c52bf 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py @@ -37,8 +37,8 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py index b68c93781b91..07850cabddfe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py @@ -33,8 +33,8 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color", "declawed"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py index 1ea75403b948..138294ba8030 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py @@ -33,8 +33,8 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py index e6f645e0a24c..2b4e43d147b9 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py @@ -33,8 +33,8 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py index 892d9711402f..8f3759942c1a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py @@ -33,8 +33,8 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py index 0853fb65bad8..68f9f3e159c5 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py @@ -32,8 +32,8 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_class"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py index 183726d18db3..46297a9eecb8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py @@ -32,8 +32,8 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["client"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py index ec7cc5950048..0e177f19497f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py index 2fc7149a5d87..aaab8be31a7e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py @@ -39,8 +39,8 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["info", "type"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py index 2f4938fe02a0..18f5ac2b20d5 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py @@ -32,8 +32,8 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py index 89f884552e9f..3ad181c41e6e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py @@ -33,8 +33,8 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "size"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py index dd6cd83d3837..b6b8d87a791c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py @@ -32,8 +32,8 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py index 868f74dcb5c7..fd08b5a95ec4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py @@ -32,8 +32,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["elementType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py index 6278ab30f2d3..c84fd0837567 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py @@ -37,8 +37,8 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["elementType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py index f5d54fc52e02..6f3a8bf16a64 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py @@ -33,8 +33,8 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color", "breed"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py index 8046e431efcc..6891dd199afa 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py @@ -33,8 +33,8 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "self_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py index 9058e733f38d..bcdb97590489 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py @@ -35,12 +35,12 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[List[Literal['fish', 'crab']]] = Field( + array_enum: Optional[list[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -71,8 +71,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -84,7 +84,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py index 3e449adf0e6f..cea6ffb4cd0c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py @@ -33,8 +33,8 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["report_format"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py index 073dedc9bdc6..08e526ae4573 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py @@ -73,8 +73,8 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -151,8 +151,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -164,7 +164,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py index e09011847472..bb03e56b8ba4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py @@ -42,8 +42,8 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py index eac2fc3fa75f..814fc4ece668 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py @@ -32,8 +32,8 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["sourceURI"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py index 87305783132d..d29a4bc3a0b9 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py @@ -34,8 +34,8 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["file", "files"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py index aa09b8fc35d1..432efb9e1d4a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py @@ -33,8 +33,8 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "self_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py index 54b789dc9898..71e7e5c827f0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py @@ -32,8 +32,8 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py index 57b8300cf68a..3e41f5162438 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py @@ -33,8 +33,8 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["string"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py index 0a0d3f749467..a209834dc04f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py @@ -52,8 +52,8 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -103,8 +103,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -116,7 +116,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py index c257362d962c..2d16e060d401 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py @@ -33,8 +33,8 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar", "foo"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py index ee3556ed4bd9..79e5d7aa611e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py @@ -32,8 +32,8 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["NullableMessage"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py index ed6f42ca5e72..797da2507599 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py @@ -34,8 +34,8 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py index eb39bdbbf9b3..528ceadccfae 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py @@ -33,8 +33,8 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName", "val"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py index 8f9dccae1049..bd03cd124b6c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py @@ -32,8 +32,8 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["aProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py index 6efebc64bb8e..99d18a83c69f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py @@ -33,8 +33,8 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["some_data"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py index 56f950d30c70..041480fc4454 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py index dbb29d6bb664..4d6440538fbe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py @@ -32,8 +32,8 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["123-list"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py index a126c9d91a52..56f7376400ed 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py @@ -33,8 +33,8 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py index 46761c0c152c..882dc263e8b9 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py @@ -38,8 +38,8 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -60,8 +60,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -73,7 +73,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py index f48e64f4d4e1..ec2c0ee5f776 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,8 +37,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py index 0c8d37878e27..67d1e0f19e33 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py @@ -33,8 +33,8 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name", "class"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py index 7f8083a2c723..059861c9a1c6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py @@ -34,8 +34,8 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "type", "message"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py index ade9abbc7c5a..9bc84204184d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py @@ -32,8 +32,8 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["field"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py index dd0b7c0543db..10ff4bc5fffc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py @@ -32,8 +32,8 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["return"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py index f6a8d5f85471..681da26a2146 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py @@ -35,8 +35,8 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["tags", "files"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py index 789ef0f1d4a3..e80b30d8b057 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py @@ -35,8 +35,8 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py index 3a45254f66e8..f4ba14002321 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py index 02b7aad029f2..c5d4a5b66cdb 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py @@ -34,8 +34,8 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -55,8 +55,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -68,7 +68,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py index 212c773d7c2c..d2dd89400fa8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py @@ -32,8 +32,8 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[StrictFloat] = Field(default=None, alias="JustNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["JustNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py index b7f82ceecb7f..4bd8e91e5a18 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py @@ -32,8 +32,8 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py index 58177ea3b446..062ce86cf36c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py @@ -36,8 +36,8 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[StrictFloat] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py index 14c2747d90f2..258c71f1a1fe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,7 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py index f041cc53d7ee..699ec96ce34a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py @@ -41,8 +41,8 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -62,8 +62,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py index 3e3f8b2c937a..c4251f7e2e00 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py @@ -34,8 +34,8 @@ class OuterComposite(BaseModel): my_number: Optional[StrictFloat] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py index e57f5bced289..59fa5e9e8d68 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py @@ -35,8 +35,8 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["str_value", "value"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py index ad733ac8da5d..64082097b8e8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py @@ -33,8 +33,8 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["optionalDict"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py index 4478538d6f3d..102548dfd483 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py @@ -33,8 +33,8 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["optionalDict"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py index c3a7db673d05..b0735f8ebc7f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py @@ -43,8 +43,8 @@ class Pet(BaseModel): None, description="pet status in the store" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -64,8 +64,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py index 36715ff48b88..adb1d8c256da 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py index dd567f0fe33a..f6374a7a04d0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py @@ -33,8 +33,8 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py index 66989c9df600..b2902161a1fd 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py @@ -42,8 +42,8 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py index fbea28277e65..7a3aefcac9df 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py @@ -33,8 +33,8 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName", "_value"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py index 76ea44f26a87..70756483156b 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py @@ -33,8 +33,8 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["some_data"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py index 057c7f6c1a4b..fba0f10540fc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py @@ -34,8 +34,8 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_type", "type", "type_"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py index 2cf760a02076..9ead2b27d8fe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py @@ -33,8 +33,8 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar", "baz"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py index be7983dc2f20..a20742ece3fd 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py @@ -33,8 +33,8 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py index a10a60ccf21f..555705e34ea8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py @@ -33,8 +33,8 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "circular_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py index 4343e2220413..c43282d64850 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py @@ -33,8 +33,8 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py index 8c015def6b52..63ce4fe1e184 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py @@ -32,8 +32,8 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$special[property.name]"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py index 8b975e1994c0..d094362fe10e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py @@ -38,8 +38,8 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["property", "async", "schema"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -59,8 +59,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py index 2ef47be87be6..a3431a14e3dd 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py @@ -33,8 +33,8 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py index 663316edfa32..d227d8a38452 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py @@ -35,8 +35,8 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "activity"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py index c60e9f7c3576..f92328a9751d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py index 5fee02f6f074..705e62291011 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["reason400"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py index 667c21b33ee7..d29ee076dc29 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["reason404"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py index c84888abb135..c708ef356815 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["someProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py index 11a7f8d8be53..eb1d3f814063 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py @@ -41,8 +41,8 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -62,8 +62,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py index b1903937130e..49114938ade7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,8 +32,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py index 2fa9f7b85517..83e8d0251bc3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py @@ -32,8 +32,8 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["skill"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 025fbcecb0a3..ab0656bb6e30 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,8 +33,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["dictProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index c8aa25e7e51f..193ad8f9ef73 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,8 +32,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["dictProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py index 9c861c822ea2..e1f9c7966ff8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,8 +32,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py index 3c1d1f299a0c..1fbbdbac65af 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py @@ -39,8 +39,8 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -50,8 +50,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py index 732dcf720ecc..12547cf536c3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py @@ -36,8 +36,8 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py index e0ef058f4677..c52fe689fc96 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import List, Optional, Union +from typing import Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[List[str]]=None, + signed_headers: Optional[list[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py index 1e19c6d880d1..a9e011f9d7e7 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -91,7 +90,7 @@ def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -112,14 +111,14 @@ def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -158,7 +157,7 @@ def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -179,14 +178,14 @@ def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -225,7 +224,7 @@ def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -246,15 +245,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py index 5f05c540a238..d299b8f0e50a 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -42,14 +41,14 @@ def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -84,7 +83,7 @@ def foo_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -103,14 +102,14 @@ def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -145,7 +144,7 @@ def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -164,14 +163,14 @@ def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -206,7 +205,7 @@ def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -225,15 +224,15 @@ def _foo_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -254,7 +253,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py index 6d99595e3059..244714f54f60 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator @@ -61,14 +60,14 @@ def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -106,7 +105,7 @@ def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -127,14 +126,14 @@ def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -172,7 +171,7 @@ def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -193,14 +192,14 @@ def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -238,7 +237,7 @@ def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -259,15 +258,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -296,7 +295,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -324,14 +323,14 @@ def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -369,7 +368,7 @@ def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -390,14 +389,14 @@ def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -435,7 +434,7 @@ def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -456,14 +455,14 @@ def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -501,7 +500,7 @@ def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -522,15 +521,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -548,7 +547,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -575,14 +574,14 @@ def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -617,7 +616,7 @@ def fake_health_get( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -637,14 +636,14 @@ def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -679,7 +678,7 @@ def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -699,14 +698,14 @@ def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -741,7 +740,7 @@ def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -761,15 +760,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -790,7 +789,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -820,14 +819,14 @@ def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -871,7 +870,7 @@ def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -894,14 +893,14 @@ def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -945,7 +944,7 @@ def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -968,14 +967,14 @@ def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1019,7 +1018,7 @@ def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -1042,15 +1041,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1086,7 +1085,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_signature_test' ] @@ -1115,14 +1114,14 @@ def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1161,7 +1160,7 @@ def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1182,14 +1181,14 @@ def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1228,7 +1227,7 @@ def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1249,14 +1248,14 @@ def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1295,7 +1294,7 @@ def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1316,15 +1315,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1360,7 +1359,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1388,14 +1387,14 @@ def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1434,7 +1433,7 @@ def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1455,14 +1454,14 @@ def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1501,7 +1500,7 @@ def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1522,14 +1521,14 @@ def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1568,7 +1567,7 @@ def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1589,15 +1588,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1633,7 +1632,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1661,14 +1660,14 @@ def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1707,7 +1706,7 @@ def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1728,14 +1727,14 @@ def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1774,7 +1773,7 @@ def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1795,14 +1794,14 @@ def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1841,7 +1840,7 @@ def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1862,15 +1861,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1906,7 +1905,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1934,14 +1933,14 @@ def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1980,7 +1979,7 @@ def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2001,14 +2000,14 @@ def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2047,7 +2046,7 @@ def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2068,14 +2067,14 @@ def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2114,7 +2113,7 @@ def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2135,15 +2134,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2179,7 +2178,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2208,14 +2207,14 @@ def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2257,7 +2256,7 @@ def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2279,14 +2278,14 @@ def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2328,7 +2327,7 @@ def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2350,14 +2349,14 @@ def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2399,7 +2398,7 @@ def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2421,16 +2420,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'param': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2470,7 +2469,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2497,14 +2496,14 @@ def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2539,7 +2538,7 @@ def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2559,14 +2558,14 @@ def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2601,7 +2600,7 @@ def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2621,14 +2620,14 @@ def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2663,7 +2662,7 @@ def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2683,15 +2682,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2712,7 +2711,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2739,14 +2738,14 @@ def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2781,7 +2780,7 @@ def fake_return_boolean( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2801,14 +2800,14 @@ def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2843,7 +2842,7 @@ def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2863,14 +2862,14 @@ def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2905,7 +2904,7 @@ def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2925,15 +2924,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2954,7 +2953,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -2981,14 +2980,14 @@ def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3023,7 +3022,7 @@ def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3043,14 +3042,14 @@ def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3085,7 +3084,7 @@ def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3105,14 +3104,14 @@ def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3147,7 +3146,7 @@ def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3167,15 +3166,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3196,7 +3195,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3223,14 +3222,14 @@ def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3265,7 +3264,7 @@ def fake_return_enum( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3285,14 +3284,14 @@ def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3327,7 +3326,7 @@ def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3347,14 +3346,14 @@ def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3389,7 +3388,7 @@ def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3409,15 +3408,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3438,7 +3437,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3465,14 +3464,14 @@ def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3507,7 +3506,7 @@ def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3527,14 +3526,14 @@ def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3569,7 +3568,7 @@ def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3589,14 +3588,14 @@ def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3631,7 +3630,7 @@ def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3651,15 +3650,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3680,7 +3679,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3707,14 +3706,14 @@ def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3749,7 +3748,7 @@ def fake_return_float( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3769,14 +3768,14 @@ def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3811,7 +3810,7 @@ def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3831,14 +3830,14 @@ def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3873,7 +3872,7 @@ def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3893,15 +3892,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3922,7 +3921,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -3949,14 +3948,14 @@ def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3991,7 +3990,7 @@ def fake_return_int( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4011,14 +4010,14 @@ def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4053,7 +4052,7 @@ def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4073,14 +4072,14 @@ def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4115,7 +4114,7 @@ def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4135,15 +4134,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4164,7 +4163,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4191,14 +4190,14 @@ def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4233,7 +4232,7 @@ def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4253,14 +4252,14 @@ def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4295,7 +4294,7 @@ def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4315,14 +4314,14 @@ def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4357,7 +4356,7 @@ def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4377,15 +4376,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4406,7 +4405,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4433,14 +4432,14 @@ def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4475,7 +4474,7 @@ def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4495,14 +4494,14 @@ def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4537,7 +4536,7 @@ def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4557,14 +4556,14 @@ def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4599,7 +4598,7 @@ def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4619,15 +4618,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4648,7 +4647,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4675,14 +4674,14 @@ def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4717,7 +4716,7 @@ def fake_return_string( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4737,14 +4736,14 @@ def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4779,7 +4778,7 @@ def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4799,14 +4798,14 @@ def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4841,7 +4840,7 @@ def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4861,15 +4860,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4890,7 +4889,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -4918,14 +4917,14 @@ def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4963,7 +4962,7 @@ def fake_uuid_example( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -4984,14 +4983,14 @@ def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5029,7 +5028,7 @@ def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5050,14 +5049,14 @@ def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5095,7 +5094,7 @@ def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5116,15 +5115,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5142,7 +5141,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5170,14 +5169,14 @@ def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5216,7 +5215,7 @@ def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5237,14 +5236,14 @@ def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5283,7 +5282,7 @@ def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5304,14 +5303,14 @@ def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5350,7 +5349,7 @@ def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5371,15 +5370,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5408,7 +5407,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5436,14 +5435,14 @@ def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5482,7 +5481,7 @@ def test_body_with_binary( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5503,14 +5502,14 @@ def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5549,7 +5548,7 @@ def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5570,14 +5569,14 @@ def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5616,7 +5615,7 @@ def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5637,15 +5636,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5682,7 +5681,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5710,14 +5709,14 @@ def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5756,7 +5755,7 @@ def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5777,14 +5776,14 @@ def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5823,7 +5822,7 @@ def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5844,14 +5843,14 @@ def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5890,7 +5889,7 @@ def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5911,15 +5910,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5948,7 +5947,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -5977,14 +5976,14 @@ def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6025,7 +6024,7 @@ def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6047,14 +6046,14 @@ def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6095,7 +6094,7 @@ def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6117,14 +6116,14 @@ def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6165,7 +6164,7 @@ def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6187,15 +6186,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6228,7 +6227,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6256,14 +6255,14 @@ def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6302,7 +6301,7 @@ def test_client_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6323,14 +6322,14 @@ def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6369,7 +6368,7 @@ def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6390,14 +6389,14 @@ def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6436,7 +6435,7 @@ def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6457,15 +6456,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6501,7 +6500,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6530,14 +6529,14 @@ def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6578,7 +6577,7 @@ def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6600,14 +6599,14 @@ def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6648,7 +6647,7 @@ def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6670,14 +6669,14 @@ def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6718,7 +6717,7 @@ def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6740,15 +6739,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6779,7 +6778,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -6806,14 +6805,14 @@ def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6849,7 +6848,7 @@ def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6870,14 +6869,14 @@ def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6913,7 +6912,7 @@ def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6934,14 +6933,14 @@ def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6977,7 +6976,7 @@ def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6998,15 +6997,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7027,7 +7026,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7069,14 +7068,14 @@ def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7157,7 +7156,7 @@ def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7193,14 +7192,14 @@ def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7281,7 +7280,7 @@ def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7317,14 +7316,14 @@ def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7405,7 +7404,7 @@ def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7441,15 +7440,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7506,7 +7505,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'http_basic_test' ] @@ -7534,14 +7533,14 @@ def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7576,7 +7575,7 @@ def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7598,14 +7597,14 @@ def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7640,7 +7639,7 @@ def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7662,14 +7661,14 @@ def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7704,7 +7703,7 @@ def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7726,15 +7725,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7755,7 +7754,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -7788,14 +7787,14 @@ def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7849,7 +7848,7 @@ def test_group_parameters( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7875,14 +7874,14 @@ def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7936,7 +7935,7 @@ def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7962,14 +7961,14 @@ def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8023,7 +8022,7 @@ def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -8049,15 +8048,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8091,7 +8090,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'bearer_test' ] @@ -8120,14 +8119,14 @@ def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8166,7 +8165,7 @@ def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8187,14 +8186,14 @@ def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8233,7 +8232,7 @@ def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8254,14 +8253,14 @@ def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8300,7 +8299,7 @@ def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8321,15 +8320,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8358,7 +8357,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8386,14 +8385,14 @@ def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8432,7 +8431,7 @@ def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8453,14 +8452,14 @@ def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8499,7 +8498,7 @@ def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8520,14 +8519,14 @@ def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8566,7 +8565,7 @@ def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8587,15 +8586,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8624,7 +8623,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8653,14 +8652,14 @@ def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8702,7 +8701,7 @@ def test_json_form_data( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8724,14 +8723,14 @@ def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8773,7 +8772,7 @@ def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8795,14 +8794,14 @@ def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8844,7 +8843,7 @@ def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8866,15 +8865,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8905,7 +8904,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -8933,14 +8932,14 @@ def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8978,7 +8977,7 @@ def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8999,14 +8998,14 @@ def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9044,7 +9043,7 @@ def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9065,14 +9064,14 @@ def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9110,7 +9109,7 @@ def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9131,15 +9130,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9168,7 +9167,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9202,14 +9201,14 @@ def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9266,7 +9265,7 @@ def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9293,14 +9292,14 @@ def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9357,7 +9356,7 @@ def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9384,14 +9383,14 @@ def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9448,7 +9447,7 @@ def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9475,7 +9474,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9483,12 +9482,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9530,7 +9529,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9558,14 +9557,14 @@ def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9604,7 +9603,7 @@ def test_string_map_reference( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9625,14 +9624,14 @@ def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9671,7 +9670,7 @@ def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9692,14 +9691,14 @@ def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9738,7 +9737,7 @@ def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9759,15 +9758,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9796,7 +9795,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -9826,14 +9825,14 @@ def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9878,7 +9877,7 @@ def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9901,14 +9900,14 @@ def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9953,7 +9952,7 @@ def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9976,14 +9975,14 @@ def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10028,7 +10027,7 @@ def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -10051,15 +10050,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10099,7 +10098,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py index c5596bef9393..5cafd6d486fb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field from typing_extensions import Annotated @@ -45,14 +44,14 @@ def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -91,7 +90,7 @@ def test_classname( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -112,14 +111,14 @@ def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -158,7 +157,7 @@ def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -179,14 +178,14 @@ def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -225,7 +224,7 @@ def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -246,15 +245,15 @@ def _test_classname_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -290,7 +289,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py index a59a3c99cbc4..ab56380ac74d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from datetime import datetime @@ -42,14 +41,14 @@ def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -84,7 +83,7 @@ def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -104,14 +103,14 @@ def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -146,7 +145,7 @@ def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -166,14 +165,14 @@ def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -208,7 +207,7 @@ def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -228,15 +227,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -257,7 +256,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py index 21539d3dde23..2c97d4e70d07 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -47,14 +46,14 @@ def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -93,7 +92,7 @@ def add_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -115,14 +114,14 @@ def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -161,7 +160,7 @@ def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -183,14 +182,14 @@ def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -229,7 +228,7 @@ def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -251,15 +250,15 @@ def _add_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +288,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -320,14 +319,14 @@ def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -369,7 +368,7 @@ def delete_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -392,14 +391,14 @@ def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -441,7 +440,7 @@ def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -464,14 +463,14 @@ def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -513,7 +512,7 @@ def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, } @@ -536,15 +535,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -562,7 +561,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -591,14 +590,14 @@ def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -637,7 +636,7 @@ def find_pets_by_status( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -659,14 +658,14 @@ def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -705,7 +704,7 @@ def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -727,14 +726,14 @@ def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -773,7 +772,7 @@ def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -795,16 +794,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'status': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -830,7 +829,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -860,14 +859,14 @@ def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -907,7 +906,7 @@ def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -929,14 +928,14 @@ def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -976,7 +975,7 @@ def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -998,14 +997,14 @@ def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1045,7 +1044,7 @@ def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1067,16 +1066,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'tags': 'csv', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1102,7 +1101,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1132,14 +1131,14 @@ def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1178,7 +1177,7 @@ def get_pet_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1201,14 +1200,14 @@ def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1247,7 +1246,7 @@ def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1270,14 +1269,14 @@ def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1316,7 +1315,7 @@ def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1339,15 +1338,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1371,7 +1370,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -1400,14 +1399,14 @@ def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1446,7 +1445,7 @@ def update_pet( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1470,14 +1469,14 @@ def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1516,7 +1515,7 @@ def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1540,14 +1539,14 @@ def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1586,7 +1585,7 @@ def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1610,15 +1609,15 @@ def _update_pet_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1648,7 +1647,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1680,14 +1679,14 @@ def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1732,7 +1731,7 @@ def update_pet_with_form( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1756,14 +1755,14 @@ def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1808,7 +1807,7 @@ def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1832,14 +1831,14 @@ def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1884,7 +1883,7 @@ def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1908,15 +1907,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1949,7 +1948,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -1980,14 +1979,14 @@ def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2032,7 +2031,7 @@ def upload_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2055,14 +2054,14 @@ def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2107,7 +2106,7 @@ def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2130,14 +2129,14 @@ def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2182,7 +2181,7 @@ def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2205,15 +2204,15 @@ def _upload_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2253,7 +2252,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] @@ -2284,14 +2283,14 @@ def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2336,7 +2335,7 @@ def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2359,14 +2358,14 @@ def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2411,7 +2410,7 @@ def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2434,14 +2433,14 @@ def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2486,7 +2485,7 @@ def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2509,15 +2508,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2557,7 +2556,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py index edb9dce2f565..316a6f0ab3f4 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -46,14 +45,14 @@ def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -92,7 +91,7 @@ def delete_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -114,14 +113,14 @@ def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -160,7 +159,7 @@ def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -182,14 +181,14 @@ def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -228,7 +227,7 @@ def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -250,15 +249,15 @@ def _delete_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -274,7 +273,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -301,14 +300,14 @@ def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -344,7 +343,7 @@ def get_inventory( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -364,14 +363,14 @@ def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -407,7 +406,7 @@ def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -427,14 +426,14 @@ def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -470,7 +469,7 @@ def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -490,15 +489,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -519,7 +518,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ 'api_key' ] @@ -548,14 +547,14 @@ def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -594,7 +593,7 @@ def get_order_by_id( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -617,14 +616,14 @@ def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -663,7 +662,7 @@ def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -686,14 +685,14 @@ def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -732,7 +731,7 @@ def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -755,15 +754,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -787,7 +786,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -815,14 +814,14 @@ def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -861,7 +860,7 @@ def place_order( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -883,14 +882,14 @@ def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -929,7 +928,7 @@ def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -951,14 +950,14 @@ def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -997,7 +996,7 @@ def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1019,15 +1018,15 @@ def _place_order_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1064,7 +1063,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py index b19c4fb54a4f..c0611ae9f27f 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py @@ -13,8 +13,7 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Dict, List, Optional, Tuple, Union -from typing import Annotated +from typing import Any, Optional, Union, Annotated from pydantic import Field, StrictStr from typing import List @@ -46,14 +45,14 @@ def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -92,7 +91,7 @@ def create_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -112,14 +111,14 @@ def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -158,7 +157,7 @@ def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -178,14 +177,14 @@ def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -224,7 +223,7 @@ def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -250,15 +249,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -287,7 +286,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -315,14 +314,14 @@ def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -361,7 +360,7 @@ def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -381,14 +380,14 @@ def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -427,7 +426,7 @@ def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -447,14 +446,14 @@ def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -493,7 +492,7 @@ def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -513,16 +512,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -551,7 +550,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -579,14 +578,14 @@ def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -625,7 +624,7 @@ def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -645,14 +644,14 @@ def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -691,7 +690,7 @@ def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -711,14 +710,14 @@ def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -757,7 +756,7 @@ def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -777,16 +776,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { 'User': '', } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -815,7 +814,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -843,14 +842,14 @@ def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -889,7 +888,7 @@ def delete_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -911,14 +910,14 @@ def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -957,7 +956,7 @@ def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -979,14 +978,14 @@ def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1025,7 +1024,7 @@ def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1047,15 +1046,15 @@ def _delete_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1071,7 +1070,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1099,14 +1098,14 @@ def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1145,7 +1144,7 @@ def get_user_by_name( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1168,14 +1167,14 @@ def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1214,7 +1213,7 @@ def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1237,14 +1236,14 @@ def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1283,7 +1282,7 @@ def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1306,15 +1305,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1338,7 +1337,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1367,14 +1366,14 @@ def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1416,7 +1415,7 @@ def login_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1439,14 +1438,14 @@ def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1488,7 +1487,7 @@ def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1511,14 +1510,14 @@ def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1560,7 +1559,7 @@ def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1583,15 +1582,15 @@ def _login_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1621,7 +1620,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1648,14 +1647,14 @@ def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1691,7 +1690,7 @@ def logout_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1710,14 +1709,14 @@ def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1753,7 +1752,7 @@ def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1772,14 +1771,14 @@ def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1815,7 +1814,7 @@ def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1834,15 +1833,15 @@ def _logout_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1856,7 +1855,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( @@ -1885,14 +1884,14 @@ def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1934,7 +1933,7 @@ def update_user( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1957,14 +1956,14 @@ def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2006,7 +2005,7 @@ def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2029,14 +2028,14 @@ def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - Tuple[ + tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, + _request_auth: Optional[dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, + _headers: Optional[dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2078,7 +2077,7 @@ def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: Dict[str, Optional[str]] = { + _response_types_map: dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2101,15 +2100,15 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = { + _collection_formats: dict[str, str] = { } - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + _path_params: dict[str, str] = {} + _query_params: list[tuple[str, str]] = [] + _header_params: dict[str, Optional[str]] = _headers or {} + _form_params: list[tuple[str, str]] = [] + _files: dict[ + str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2140,7 +2139,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: List[str] = [ + _auth_settings: list[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index 1d210a1670dd..c37f6b52d77f 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Tuple, Optional, List, Dict, Union +from typing import Optional, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] +RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -286,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -435,16 +435,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('List['): - m = re.match(r'List\[(.*)]', klass) - assert m is not None, "Malformed List type definition" + if klass.startswith('list['): + m = re.match(r'list\[(.*)]', klass) + assert m is not None, "Malformed list type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('Dict['): - m = re.match(r'Dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed Dict type definition" + if klass.startswith('dict['): + m = re.match(r'dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -477,7 +477,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -507,7 +507,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: List[Tuple[str, str]] = [] + new_params: list[tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -541,7 +541,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], ): """Builds form parameters. @@ -574,10 +574,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: List[str]) -> Optional[str]: + def select_header_accept(self, accepts: list[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: List of headers. + :param accepts: list of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -592,7 +592,7 @@ def select_header_accept(self, accepts: List[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: List of content-types. + :param content_types: list of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index 2d009246937e..3137ff1f0c65 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = Dict[str, str] +ServerVariablesT = dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -132,13 +132,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: List[str] + enum_values: list[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[Dict[str, HostSettingVariable]] + variables: NotRequired[dict[str, HostSettingVariable]] class Configuration: @@ -148,11 +148,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). + :param api_key: dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + :param api_key_prefix: dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -260,16 +260,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, + api_key: Optional[dict[str, str]]=None, + api_key_prefix: Optional[dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[dict[int, int]]=None, + server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -411,7 +411,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -654,7 +654,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> List[HostSetting]: + def get_host_settings(self) -> list[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -707,7 +707,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + servers: Optional[list[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py index 85df560d9f37..e4860d83a3a2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py index b5e08aa86a4f..6b7761f5bd2f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py @@ -33,8 +33,8 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py index 4acc98cef6d8..4426dc91ba3c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py index 276fe21f1876..e9cc738c41e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py index 8db6944f75ff..babb65c478e7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py @@ -32,8 +32,8 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py index 120572007721..f53a08cbf80a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py @@ -34,8 +34,8 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["username", "SingleRefType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py index 8568510ee341..fb1a4b786fc6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py @@ -39,8 +39,8 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py index e37e6f0d046e..f817350224d6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py index 9b54902cf4f7..796377e20aa4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py index de8ba7802883..71b8e3fb2f54 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py @@ -33,8 +33,8 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["another_property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py index 1e1d7f9045b0..9e99cb7b32ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[StrictFloat]]] = Field(default=None, alias="ArrayArrayNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py index 85841f097156..dc1301ca0b52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[StrictFloat]] = Field(default=None, alias="ArrayNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["ArrayNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py index 45c6534000d4..41f4393117c6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py @@ -37,8 +37,8 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[StrictFloat]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py index 0f0e7cd5fb49..71d61aa8ce90 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py @@ -38,8 +38,8 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py index c2cd8dbbb1e1..c2a7cec0d209 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py @@ -33,8 +33,8 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py index 93ac4500d0fe..37f7c81a43c2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py @@ -42,8 +42,8 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py index 805fe4108b51..0458520c52bf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py @@ -37,8 +37,8 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py index b68c93781b91..07850cabddfe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py @@ -33,8 +33,8 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color", "declawed"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/category.py b/samples/openapi3/client/petstore/python/petstore_api/models/category.py index 1ea75403b948..138294ba8030 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/category.py @@ -33,8 +33,8 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py index e6f645e0a24c..2b4e43d147b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py @@ -33,8 +33,8 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py index 892d9711402f..8f3759942c1a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py @@ -33,8 +33,8 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py index 0853fb65bad8..68f9f3e159c5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py @@ -32,8 +32,8 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_class"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/client.py b/samples/openapi3/client/petstore/python/petstore_api/models/client.py index 183726d18db3..46297a9eecb8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/client.py @@ -32,8 +32,8 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["client"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/color.py b/samples/openapi3/client/petstore/python/petstore_api/models/color.py index ec7cc5950048..0e177f19497f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py index 2fc7149a5d87..aaab8be31a7e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py @@ -39,8 +39,8 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["info", "type"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py index 2f4938fe02a0..18f5ac2b20d5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py @@ -32,8 +32,8 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py index 89f884552e9f..3ad181c41e6e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py @@ -33,8 +33,8 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "size"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py index dd6cd83d3837..b6b8d87a791c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py @@ -32,8 +32,8 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py index 868f74dcb5c7..fd08b5a95ec4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py @@ -32,8 +32,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["elementType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py index 6278ab30f2d3..c84fd0837567 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py @@ -37,8 +37,8 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["elementType"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[Dict[str, str]] = { + __discriminator_value_class_map: ClassVar[dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py index f5d54fc52e02..6f3a8bf16a64 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py @@ -33,8 +33,8 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["className", "color", "breed"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py index 8046e431efcc..6891dd199afa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py @@ -33,8 +33,8 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "self_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py index 9058e733f38d..bcdb97590489 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py @@ -35,12 +35,12 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[List[Literal['fish', 'crab']]] = Field( + array_enum: Optional[list[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -71,8 +71,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -84,7 +84,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py index 3e449adf0e6f..cea6ffb4cd0c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py @@ -33,8 +33,8 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["report_format"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py index 073dedc9bdc6..08e526ae4573 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py @@ -73,8 +73,8 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -151,8 +151,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -164,7 +164,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py index e09011847472..bb03e56b8ba4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py @@ -42,8 +42,8 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file.py b/samples/openapi3/client/petstore/python/petstore_api/models/file.py index eac2fc3fa75f..814fc4ece668 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file.py @@ -32,8 +32,8 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["sourceURI"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py index 87305783132d..d29a4bc3a0b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py @@ -34,8 +34,8 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["file", "files"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py index aa09b8fc35d1..432efb9e1d4a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py @@ -33,8 +33,8 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "self_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py index 54b789dc9898..71e7e5c827f0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py @@ -32,8 +32,8 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py index 57b8300cf68a..3e41f5162438 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py @@ -33,8 +33,8 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["string"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py index 0a0d3f749467..a209834dc04f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py @@ -52,8 +52,8 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -103,8 +103,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -116,7 +116,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py index c257362d962c..2d16e060d401 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py @@ -33,8 +33,8 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar", "foo"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py index ee3556ed4bd9..79e5d7aa611e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py @@ -32,8 +32,8 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["NullableMessage"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py index ed6f42ca5e72..797da2507599 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py @@ -34,8 +34,8 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/info.py b/samples/openapi3/client/petstore/python/petstore_api/models/info.py index eb39bdbbf9b3..528ceadccfae 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/info.py @@ -33,8 +33,8 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName", "val"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py index 8f9dccae1049..bd03cd124b6c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py @@ -32,8 +32,8 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["aProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py index 6efebc64bb8e..99d18a83c69f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py @@ -33,8 +33,8 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["some_data"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py index 56f950d30c70..041480fc4454 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py index dbb29d6bb664..4d6440538fbe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py @@ -32,8 +32,8 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["123-list"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py index a126c9d91a52..56f7376400ed 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py @@ -33,8 +33,8 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py index 46761c0c152c..882dc263e8b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py @@ -38,8 +38,8 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -60,8 +60,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -73,7 +73,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py index f48e64f4d4e1..ec2c0ee5f776 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,8 +37,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py index 0c8d37878e27..67d1e0f19e33 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py @@ -33,8 +33,8 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name", "class"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py index 7f8083a2c723..059861c9a1c6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py @@ -34,8 +34,8 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "type", "message"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py index ade9abbc7c5a..9bc84204184d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py @@ -32,8 +32,8 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["field"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py index dd0b7c0543db..10ff4bc5fffc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py @@ -32,8 +32,8 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["return"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py index f6a8d5f85471..681da26a2146 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py @@ -35,8 +35,8 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["tags", "files"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/name.py b/samples/openapi3/client/petstore/python/petstore_api/models/name.py index 789ef0f1d4a3..e80b30d8b057 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/name.py @@ -35,8 +35,8 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py index 3a45254f66e8..f4ba14002321 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py index 02b7aad029f2..c5d4a5b66cdb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py @@ -34,8 +34,8 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -55,8 +55,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -68,7 +68,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py index 212c773d7c2c..d2dd89400fa8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py @@ -32,8 +32,8 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[StrictFloat] = Field(default=None, alias="JustNumber") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["JustNumber"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py index b7f82ceecb7f..4bd8e91e5a18 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py @@ -32,8 +32,8 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["property"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py index 58177ea3b446..062ce86cf36c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py @@ -36,8 +36,8 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[StrictFloat] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py index 14c2747d90f2..258c71f1a1fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,7 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/order.py b/samples/openapi3/client/petstore/python/petstore_api/models/order.py index f041cc53d7ee..699ec96ce34a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/order.py @@ -41,8 +41,8 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -62,8 +62,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py index 3e3f8b2c937a..c4251f7e2e00 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py @@ -34,8 +34,8 @@ class OuterComposite(BaseModel): my_number: Optional[StrictFloat] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py index e57f5bced289..59fa5e9e8d68 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py @@ -35,8 +35,8 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["str_value", "value"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py index ad733ac8da5d..64082097b8e8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py @@ -33,8 +33,8 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["optionalDict"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py index 4478538d6f3d..102548dfd483 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py @@ -33,8 +33,8 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["optionalDict"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py index c3a7db673d05..b0735f8ebc7f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py @@ -43,8 +43,8 @@ class Pet(BaseModel): None, description="pet status in the store" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -64,8 +64,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py index 36715ff48b88..adb1d8c256da 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py index dd567f0fe33a..f6374a7a04d0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py @@ -33,8 +33,8 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["type"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py index 66989c9df600..b2902161a1fd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py @@ -42,8 +42,8 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py index fbea28277e65..7a3aefcac9df 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py @@ -33,8 +33,8 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_typeName", "_value"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py index 76ea44f26a87..70756483156b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py @@ -33,8 +33,8 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["some_data"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py index 057c7f6c1a4b..fba0f10540fc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py @@ -34,8 +34,8 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_type", "type", "type_"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py index 2cf760a02076..9ead2b27d8fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py @@ -33,8 +33,8 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["bar", "baz"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py index be7983dc2f20..a20742ece3fd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py @@ -33,8 +33,8 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py index a10a60ccf21f..555705e34ea8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py @@ -33,8 +33,8 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["category", "circular_ref"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py index 4343e2220413..c43282d64850 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py @@ -33,8 +33,8 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py index 8c015def6b52..63ce4fe1e184 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py @@ -32,8 +32,8 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["$special[property.name]"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py index 8b975e1994c0..d094362fe10e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py @@ -38,8 +38,8 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["property", "async", "schema"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -59,8 +59,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py index 2ef47be87be6..a3431a14e3dd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py @@ -33,8 +33,8 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task.py b/samples/openapi3/client/petstore/python/petstore_api/models/task.py index 663316edfa32..d227d8a38452 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task.py @@ -35,8 +35,8 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "activity"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py index c60e9f7c3576..f92328a9751d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Dict, List, Union +from typing import Any, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the python Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the python dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py index 5fee02f6f074..705e62291011 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["reason400"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py index 667c21b33ee7..d29ee076dc29 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["reason404"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py index c84888abb135..c708ef356815 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["someProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py index 11a7f8d8be53..eb1d3f814063 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py @@ -41,8 +41,8 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -62,8 +62,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py index b1903937130e..49114938ade7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,8 +32,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py index 2fa9f7b85517..83e8d0251bc3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py @@ -32,8 +32,8 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["skill"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index 025fbcecb0a3..ab0656bb6e30 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,8 +33,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["dictProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index c8aa25e7e51f..193ad8f9ef73 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,8 +32,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["dictProperty"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py index 9c861c822ea2..e1f9c7966ff8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,8 +32,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["name"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/user.py b/samples/openapi3/client/petstore/python/petstore_api/models/user.py index 3c1d1f299a0c..1fbbdbac65af 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/user.py @@ -39,8 +39,8 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -50,8 +50,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py index 732dcf720ecc..12547cf536c3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py @@ -36,8 +36,8 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + additional_properties: dict[str, Any] = {} + __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - """Returns the object represented by the Dict""" + def from_dict(cls, obj: dict[str, Any]) -> Self: + """Returns the object represented by the dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> Dict[str, Any]: + def to_dict(self) -> dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/signing.py b/samples/openapi3/client/petstore/python/petstore_api/signing.py index e0ef058f4677..c52fe689fc96 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import List, Optional, Union +from typing import Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[List[str]]=None, + signed_headers: Optional[list[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, From 56aec2336b3be6e5fd9ac55c6551f5cc76e7b3fa Mon Sep 17 00:00:00 2001 From: timonrieger Date: Sun, 8 Feb 2026 00:41:50 +0100 Subject: [PATCH 3/8] add deprecation warnings --- .../src/main/resources/python/rest.mustache | 8 ++++++++ .../openapi_client/rest.py | 8 ++++++++ samples/client/echo_api/python/openapi_client/rest.py | 8 ++++++++ .../petstore/python-lazyImports/petstore_api/rest.py | 8 ++++++++ .../openapi3/client/petstore/python/petstore_api/rest.py | 8 ++++++++ 5 files changed, 40 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 20176e7140f1..5911db4ec8ee 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -10,6 +10,12 @@ import ssl import urllib3 +# TODO: When dropping Python 3.12 support, remove fallback +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from {{packageName}}.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -44,10 +50,12 @@ class RESTResponse(io.IOBase): """Returns a dictionary of response headers.""" return self.response.headers + @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers + @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py index 4375566a583b..340e5da62ee2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py @@ -20,6 +20,12 @@ import urllib3 +# TODO: When dropping Python 3.12 support, remove fallback +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from openapi_client.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -54,10 +60,12 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers + @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers + @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/client/echo_api/python/openapi_client/rest.py b/samples/client/echo_api/python/openapi_client/rest.py index 7f61c8fe4ab0..d8cc1f869e42 100644 --- a/samples/client/echo_api/python/openapi_client/rest.py +++ b/samples/client/echo_api/python/openapi_client/rest.py @@ -20,6 +20,12 @@ import urllib3 +# TODO: When dropping Python 3.12 support, remove fallback +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from openapi_client.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -54,10 +60,12 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers + @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers + @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py index 29ce7d04029a..3a4d42e94d9c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py @@ -19,6 +19,12 @@ import urllib3 +# TODO: When dropping Python 3.12 support, remove fallback +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from petstore_api.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -53,10 +59,12 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers + @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers + @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index 29ce7d04029a..3a4d42e94d9c 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -19,6 +19,12 @@ import urllib3 +# TODO: When dropping Python 3.12 support, remove fallback +try: + from warnings import deprecated +except ImportError: + from typing_extensions import deprecated + from petstore_api.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -53,10 +59,12 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers + @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers + @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) From 79ca979e05f1a37a2da5d042464580498c20b55c Mon Sep 17 00:00:00 2001 From: timonrieger Date: Sun, 8 Feb 2026 00:54:39 +0100 Subject: [PATCH 4/8] add static types --- .../src/main/resources/python/rest.mustache | 35 +++++++++++-------- .../openapi_client/rest.py | 35 +++++++++++-------- .../echo_api/python/openapi_client/rest.py | 35 +++++++++++-------- .../python-lazyImports/petstore_api/rest.py | 35 +++++++++++-------- .../petstore/python/petstore_api/rest.py | 35 +++++++++++-------- 5 files changed, 105 insertions(+), 70 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 5911db4ec8ee..156dd33b2ef6 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -2,6 +2,7 @@ {{>partial_header}} +from __future__ import annotations import io import json @@ -10,6 +11,8 @@ import ssl import urllib3 +from typing import TYPE_CHECKING + # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -18,11 +21,15 @@ except ImportError: from {{packageName}}.exceptions import ApiException, ApiValueError +if TYPE_CHECKING: + from typing import Any, Mapping, Optional, Union + from {{packageName}}.configuration import Configuration + SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url): +def is_socks_proxy_url(url: Optional[str]) -> bool: if url is None: return False split_section = url.split("://") @@ -34,13 +41,13 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: + def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data = None + self.data: Optional[bytes] = None - def read(self): + def read(self) -> bytes: if self.data is None: self.data = self.response.data return self.data @@ -51,19 +58,19 @@ class RESTResponse(io.IOBase): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self): + def getheaders(self) -> Mapping[str, str]: """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name, default=None): + def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration) -> None: + def __init__(self, configuration: Configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -118,13 +125,13 @@ class RESTClientObject: def request( self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): + method: str, + url: str, + headers: Optional[dict[str, str]] = None, + body: Any = None, + post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, + _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, + ) -> RESTResponse: """Perform requests. :param method: http request method diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py index 340e5da62ee2..8ea29e2242b1 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py @@ -12,6 +12,7 @@ Do not edit the class manually. """ # noqa: E501 +from __future__ import annotations import io import json @@ -20,6 +21,8 @@ import urllib3 +from typing import TYPE_CHECKING + # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -28,11 +31,15 @@ from openapi_client.exceptions import ApiException, ApiValueError +if TYPE_CHECKING: + from typing import Any, Mapping, Optional, Union + from openapi_client.configuration import Configuration + SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url): +def is_socks_proxy_url(url: Optional[str]) -> bool: if url is None: return False split_section = url.split("://") @@ -44,13 +51,13 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: + def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data = None + self.data: Optional[bytes] = None - def read(self): + def read(self) -> bytes: if self.data is None: self.data = self.response.data return self.data @@ -61,19 +68,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self): + def getheaders(self) -> Mapping[str, str]: """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name, default=None): + def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration) -> None: + def __init__(self, configuration: Configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -128,13 +135,13 @@ def __init__(self, configuration) -> None: def request( self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): + method: str, + url: str, + headers: Optional[dict[str, str]] = None, + body: Any = None, + post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, + _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, + ) -> RESTResponse: """Perform requests. :param method: http request method diff --git a/samples/client/echo_api/python/openapi_client/rest.py b/samples/client/echo_api/python/openapi_client/rest.py index d8cc1f869e42..ca2ed20620bc 100644 --- a/samples/client/echo_api/python/openapi_client/rest.py +++ b/samples/client/echo_api/python/openapi_client/rest.py @@ -12,6 +12,7 @@ Do not edit the class manually. """ # noqa: E501 +from __future__ import annotations import io import json @@ -20,6 +21,8 @@ import urllib3 +from typing import TYPE_CHECKING + # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -28,11 +31,15 @@ from openapi_client.exceptions import ApiException, ApiValueError +if TYPE_CHECKING: + from typing import Any, Mapping, Optional, Union + from openapi_client.configuration import Configuration + SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url): +def is_socks_proxy_url(url: Optional[str]) -> bool: if url is None: return False split_section = url.split("://") @@ -44,13 +51,13 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: + def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data = None + self.data: Optional[bytes] = None - def read(self): + def read(self) -> bytes: if self.data is None: self.data = self.response.data return self.data @@ -61,19 +68,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self): + def getheaders(self) -> Mapping[str, str]: """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name, default=None): + def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration) -> None: + def __init__(self, configuration: Configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -128,13 +135,13 @@ def __init__(self, configuration) -> None: def request( self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): + method: str, + url: str, + headers: Optional[dict[str, str]] = None, + body: Any = None, + post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, + _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, + ) -> RESTResponse: """Perform requests. :param method: http request method diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py index 3a4d42e94d9c..fe3c7332dddf 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py @@ -11,6 +11,7 @@ Do not edit the class manually. """ # noqa: E501 +from __future__ import annotations import io import json @@ -19,6 +20,8 @@ import urllib3 +from typing import TYPE_CHECKING + # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -27,11 +30,15 @@ from petstore_api.exceptions import ApiException, ApiValueError +if TYPE_CHECKING: + from typing import Any, Mapping, Optional, Union + from petstore_api.configuration import Configuration + SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url): +def is_socks_proxy_url(url: Optional[str]) -> bool: if url is None: return False split_section = url.split("://") @@ -43,13 +50,13 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: + def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data = None + self.data: Optional[bytes] = None - def read(self): + def read(self) -> bytes: if self.data is None: self.data = self.response.data return self.data @@ -60,19 +67,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self): + def getheaders(self) -> Mapping[str, str]: """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name, default=None): + def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration) -> None: + def __init__(self, configuration: Configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -127,13 +134,13 @@ def __init__(self, configuration) -> None: def request( self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): + method: str, + url: str, + headers: Optional[dict[str, str]] = None, + body: Any = None, + post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, + _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, + ) -> RESTResponse: """Perform requests. :param method: http request method diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index 3a4d42e94d9c..fe3c7332dddf 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -11,6 +11,7 @@ Do not edit the class manually. """ # noqa: E501 +from __future__ import annotations import io import json @@ -19,6 +20,8 @@ import urllib3 +from typing import TYPE_CHECKING + # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -27,11 +30,15 @@ from petstore_api.exceptions import ApiException, ApiValueError +if TYPE_CHECKING: + from typing import Any, Mapping, Optional, Union + from petstore_api.configuration import Configuration + SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url): +def is_socks_proxy_url(url: Optional[str]) -> bool: if url is None: return False split_section = url.split("://") @@ -43,13 +50,13 @@ def is_socks_proxy_url(url): class RESTResponse(io.IOBase): - def __init__(self, resp) -> None: + def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data = None + self.data: Optional[bytes] = None - def read(self): + def read(self) -> bytes: if self.data is None: self.data = self.response.data return self.data @@ -60,19 +67,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self): + def getheaders(self) -> Mapping[str, str]: """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name, default=None): + def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration) -> None: + def __init__(self, configuration: Configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -127,13 +134,13 @@ def __init__(self, configuration) -> None: def request( self, - method, - url, - headers=None, - body=None, - post_params=None, - _request_timeout=None - ): + method: str, + url: str, + headers: Optional[dict[str, str]] = None, + body: Any = None, + post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, + _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, + ) -> RESTResponse: """Perform requests. :param method: http request method From c08792229a499392aa5db0ac8dbf5f23ceefed96 Mon Sep 17 00:00:00 2001 From: timonrieger Date: Mon, 9 Feb 2026 14:30:17 +0100 Subject: [PATCH 5/8] Revert "add static types" This reverts commit 79ca979e05f1a37a2da5d042464580498c20b55c. --- .../src/main/resources/python/rest.mustache | 35 ++++++++----------- .../openapi_client/rest.py | 35 ++++++++----------- .../echo_api/python/openapi_client/rest.py | 35 ++++++++----------- .../python-lazyImports/petstore_api/rest.py | 35 ++++++++----------- .../petstore/python/petstore_api/rest.py | 35 ++++++++----------- 5 files changed, 70 insertions(+), 105 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 156dd33b2ef6..5911db4ec8ee 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -2,7 +2,6 @@ {{>partial_header}} -from __future__ import annotations import io import json @@ -11,8 +10,6 @@ import ssl import urllib3 -from typing import TYPE_CHECKING - # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -21,15 +18,11 @@ except ImportError: from {{packageName}}.exceptions import ApiException, ApiValueError -if TYPE_CHECKING: - from typing import Any, Mapping, Optional, Union - from {{packageName}}.configuration import Configuration - SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url: Optional[str]) -> bool: +def is_socks_proxy_url(url): if url is None: return False split_section = url.split("://") @@ -41,13 +34,13 @@ def is_socks_proxy_url(url: Optional[str]) -> bool: class RESTResponse(io.IOBase): - def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: + def __init__(self, resp) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data: Optional[bytes] = None + self.data = None - def read(self) -> bytes: + def read(self): if self.data is None: self.data = self.response.data return self.data @@ -58,19 +51,19 @@ class RESTResponse(io.IOBase): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self) -> Mapping[str, str]: + def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: + def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration: Configuration) -> None: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -125,13 +118,13 @@ class RESTClientObject: def request( self, - method: str, - url: str, - headers: Optional[dict[str, str]] = None, - body: Any = None, - post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, - _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, - ) -> RESTResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py index 8ea29e2242b1..340e5da62ee2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 -from __future__ import annotations import io import json @@ -21,8 +20,6 @@ import urllib3 -from typing import TYPE_CHECKING - # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -31,15 +28,11 @@ from openapi_client.exceptions import ApiException, ApiValueError -if TYPE_CHECKING: - from typing import Any, Mapping, Optional, Union - from openapi_client.configuration import Configuration - SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url: Optional[str]) -> bool: +def is_socks_proxy_url(url): if url is None: return False split_section = url.split("://") @@ -51,13 +44,13 @@ def is_socks_proxy_url(url: Optional[str]) -> bool: class RESTResponse(io.IOBase): - def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: + def __init__(self, resp) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data: Optional[bytes] = None + self.data = None - def read(self) -> bytes: + def read(self): if self.data is None: self.data = self.response.data return self.data @@ -68,19 +61,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self) -> Mapping[str, str]: + def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: + def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration: Configuration) -> None: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -135,13 +128,13 @@ def __init__(self, configuration: Configuration) -> None: def request( self, - method: str, - url: str, - headers: Optional[dict[str, str]] = None, - body: Any = None, - post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, - _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, - ) -> RESTResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method diff --git a/samples/client/echo_api/python/openapi_client/rest.py b/samples/client/echo_api/python/openapi_client/rest.py index ca2ed20620bc..d8cc1f869e42 100644 --- a/samples/client/echo_api/python/openapi_client/rest.py +++ b/samples/client/echo_api/python/openapi_client/rest.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 -from __future__ import annotations import io import json @@ -21,8 +20,6 @@ import urllib3 -from typing import TYPE_CHECKING - # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -31,15 +28,11 @@ from openapi_client.exceptions import ApiException, ApiValueError -if TYPE_CHECKING: - from typing import Any, Mapping, Optional, Union - from openapi_client.configuration import Configuration - SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url: Optional[str]) -> bool: +def is_socks_proxy_url(url): if url is None: return False split_section = url.split("://") @@ -51,13 +44,13 @@ def is_socks_proxy_url(url: Optional[str]) -> bool: class RESTResponse(io.IOBase): - def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: + def __init__(self, resp) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data: Optional[bytes] = None + self.data = None - def read(self) -> bytes: + def read(self): if self.data is None: self.data = self.response.data return self.data @@ -68,19 +61,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self) -> Mapping[str, str]: + def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: + def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration: Configuration) -> None: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -135,13 +128,13 @@ def __init__(self, configuration: Configuration) -> None: def request( self, - method: str, - url: str, - headers: Optional[dict[str, str]] = None, - body: Any = None, - post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, - _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, - ) -> RESTResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py index fe3c7332dddf..3a4d42e94d9c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 -from __future__ import annotations import io import json @@ -20,8 +19,6 @@ import urllib3 -from typing import TYPE_CHECKING - # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -30,15 +27,11 @@ from petstore_api.exceptions import ApiException, ApiValueError -if TYPE_CHECKING: - from typing import Any, Mapping, Optional, Union - from petstore_api.configuration import Configuration - SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url: Optional[str]) -> bool: +def is_socks_proxy_url(url): if url is None: return False split_section = url.split("://") @@ -50,13 +43,13 @@ def is_socks_proxy_url(url: Optional[str]) -> bool: class RESTResponse(io.IOBase): - def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: + def __init__(self, resp) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data: Optional[bytes] = None + self.data = None - def read(self) -> bytes: + def read(self): if self.data is None: self.data = self.response.data return self.data @@ -67,19 +60,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self) -> Mapping[str, str]: + def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: + def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration: Configuration) -> None: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -134,13 +127,13 @@ def __init__(self, configuration: Configuration) -> None: def request( self, - method: str, - url: str, - headers: Optional[dict[str, str]] = None, - body: Any = None, - post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, - _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, - ) -> RESTResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index fe3c7332dddf..3a4d42e94d9c 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -11,7 +11,6 @@ Do not edit the class manually. """ # noqa: E501 -from __future__ import annotations import io import json @@ -20,8 +19,6 @@ import urllib3 -from typing import TYPE_CHECKING - # TODO: When dropping Python 3.12 support, remove fallback try: from warnings import deprecated @@ -30,15 +27,11 @@ from petstore_api.exceptions import ApiException, ApiValueError -if TYPE_CHECKING: - from typing import Any, Mapping, Optional, Union - from petstore_api.configuration import Configuration - SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} RESTResponseType = urllib3.HTTPResponse -def is_socks_proxy_url(url: Optional[str]) -> bool: +def is_socks_proxy_url(url): if url is None: return False split_section = url.split("://") @@ -50,13 +43,13 @@ def is_socks_proxy_url(url: Optional[str]) -> bool: class RESTResponse(io.IOBase): - def __init__(self, resp: urllib3.BaseHTTPResponse) -> None: + def __init__(self, resp) -> None: self.response = resp self.status = resp.status self.reason = resp.reason - self.data: Optional[bytes] = None + self.data = None - def read(self) -> bytes: + def read(self): if self.data is None: self.data = self.response.data return self.data @@ -67,19 +60,19 @@ def headers(self): return self.response.headers @deprecated("Use the headers property instead.") - def getheaders(self) -> Mapping[str, str]: + def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers @deprecated("Use headers.get() instead.") - def getheader(self, name: str, default: Optional[str] = None) -> Optional[str]: + def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) class RESTClientObject: - def __init__(self, configuration: Configuration) -> None: + def __init__(self, configuration) -> None: # urllib3.PoolManager will pass all kw parameters to connectionpool # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 @@ -134,13 +127,13 @@ def __init__(self, configuration: Configuration) -> None: def request( self, - method: str, - url: str, - headers: Optional[dict[str, str]] = None, - body: Any = None, - post_params: Optional[Union[list[tuple[str, Any]], dict[str, Any]]] = None, - _request_timeout: Optional[Union[int, float, tuple[Union[int, float], Union[int, float]]]] = None, - ) -> RESTResponse: + method, + url, + headers=None, + body=None, + post_params=None, + _request_timeout=None + ): """Perform requests. :param method: http request method From 93f46813dffc2a1cd68be8ce1ae0f60c0d54ac18 Mon Sep 17 00:00:00 2001 From: timonrieger Date: Mon, 9 Feb 2026 14:30:25 +0100 Subject: [PATCH 6/8] Revert "add deprecation warnings" This reverts commit 56aec2336b3be6e5fd9ac55c6551f5cc76e7b3fa. --- .../src/main/resources/python/rest.mustache | 8 -------- .../openapi_client/rest.py | 8 -------- samples/client/echo_api/python/openapi_client/rest.py | 8 -------- .../petstore/python-lazyImports/petstore_api/rest.py | 8 -------- .../openapi3/client/petstore/python/petstore_api/rest.py | 8 -------- 5 files changed, 40 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/rest.mustache b/modules/openapi-generator/src/main/resources/python/rest.mustache index 5911db4ec8ee..20176e7140f1 100644 --- a/modules/openapi-generator/src/main/resources/python/rest.mustache +++ b/modules/openapi-generator/src/main/resources/python/rest.mustache @@ -10,12 +10,6 @@ import ssl import urllib3 -# TODO: When dropping Python 3.12 support, remove fallback -try: - from warnings import deprecated -except ImportError: - from typing_extensions import deprecated - from {{packageName}}.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -50,12 +44,10 @@ class RESTResponse(io.IOBase): """Returns a dictionary of response headers.""" return self.response.headers - @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers - @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py index 340e5da62ee2..4375566a583b 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/rest.py @@ -20,12 +20,6 @@ import urllib3 -# TODO: When dropping Python 3.12 support, remove fallback -try: - from warnings import deprecated -except ImportError: - from typing_extensions import deprecated - from openapi_client.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -60,12 +54,10 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers - @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers - @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/client/echo_api/python/openapi_client/rest.py b/samples/client/echo_api/python/openapi_client/rest.py index d8cc1f869e42..7f61c8fe4ab0 100644 --- a/samples/client/echo_api/python/openapi_client/rest.py +++ b/samples/client/echo_api/python/openapi_client/rest.py @@ -20,12 +20,6 @@ import urllib3 -# TODO: When dropping Python 3.12 support, remove fallback -try: - from warnings import deprecated -except ImportError: - from typing_extensions import deprecated - from openapi_client.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -60,12 +54,10 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers - @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers - @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py index 3a4d42e94d9c..29ce7d04029a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/rest.py @@ -19,12 +19,6 @@ import urllib3 -# TODO: When dropping Python 3.12 support, remove fallback -try: - from warnings import deprecated -except ImportError: - from typing_extensions import deprecated - from petstore_api.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -59,12 +53,10 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers - @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers - @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) diff --git a/samples/openapi3/client/petstore/python/petstore_api/rest.py b/samples/openapi3/client/petstore/python/petstore_api/rest.py index 3a4d42e94d9c..29ce7d04029a 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/rest.py +++ b/samples/openapi3/client/petstore/python/petstore_api/rest.py @@ -19,12 +19,6 @@ import urllib3 -# TODO: When dropping Python 3.12 support, remove fallback -try: - from warnings import deprecated -except ImportError: - from typing_extensions import deprecated - from petstore_api.exceptions import ApiException, ApiValueError SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"} @@ -59,12 +53,10 @@ def headers(self): """Returns a dictionary of response headers.""" return self.response.headers - @deprecated("Use the headers property instead.") def getheaders(self): """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers - @deprecated("Use headers.get() instead.") def getheader(self, name, default=None): """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) From 31705eed4b1e4fdebc1d09d749dae6dde3b75e77 Mon Sep 17 00:00:00 2001 From: timonrieger Date: Mon, 9 Feb 2026 14:30:33 +0100 Subject: [PATCH 7/8] Revert "use built in types" This reverts commit 82b29dc6cec1cf9de2225bd375790861f8f7780b. --- .../src/main/resources/python/api.mustache | 19 +- .../main/resources/python/api_client.mustache | 30 +- .../resources/python/configuration.mustache | 26 +- .../resources/python/model_anyof.mustache | 8 +- .../resources/python/model_generic.mustache | 18 +- .../resources/python/model_oneof.mustache | 8 +- .../resources/python/partial_api.mustache | 2 +- .../python/partial_api_args.mustache | 6 +- .../main/resources/python/signing.mustache | 4 +- .../openapi_client/api/auth_api.py | 83 +- .../openapi_client/api/body_api.py | 403 ++--- .../openapi_client/api/form_api.py | 123 +- .../openapi_client/api/header_api.py | 43 +- .../openapi_client/api/path_api.py | 43 +- .../openapi_client/api/query_api.py | 443 ++--- .../openapi_client/api_client.py | 30 +- .../openapi_client/configuration.py | 26 +- .../openapi_client/models/bird.py | 8 +- .../openapi_client/models/category.py | 8 +- .../openapi_client/models/data_query.py | 8 +- .../openapi_client/models/default_value.py | 10 +- .../models/number_properties_only.py | 8 +- .../openapi_client/models/pet.py | 8 +- .../openapi_client/models/query.py | 10 +- .../openapi_client/models/tag.py | 8 +- ...st_form_object_multipart_request_marker.py | 8 +- ...ue_object_all_of_query_object_parameter.py | 8 +- ...rue_array_string_query_object_parameter.py | 8 +- .../python/openapi_client/api/auth_api.py | 83 +- .../python/openapi_client/api/body_api.py | 403 ++--- .../python/openapi_client/api/form_api.py | 123 +- .../python/openapi_client/api/header_api.py | 43 +- .../python/openapi_client/api/path_api.py | 43 +- .../python/openapi_client/api/query_api.py | 443 ++--- .../python/openapi_client/api_client.py | 30 +- .../python/openapi_client/configuration.py | 26 +- .../python/openapi_client/models/bird.py | 8 +- .../python/openapi_client/models/category.py | 8 +- .../openapi_client/models/data_query.py | 8 +- .../openapi_client/models/default_value.py | 10 +- .../models/number_properties_only.py | 8 +- .../python/openapi_client/models/pet.py | 8 +- .../python/openapi_client/models/query.py | 10 +- .../python/openapi_client/models/tag.py | 8 +- ...st_form_object_multipart_request_marker.py | 8 +- ...ue_object_all_of_query_object_parameter.py | 8 +- ...rue_array_string_query_object_parameter.py | 8 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../petstore_api/api/fake_api.py | 1483 +++++++++-------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../petstore_api/api/user_api.py | 323 ++-- .../python-aiohttp/petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 8 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 8 +- .../models/all_of_with_single_ref.py | 8 +- .../petstore_api/models/animal.py | 12 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 8 +- .../models/array_of_array_of_number_only.py | 8 +- .../models/array_of_number_only.py | 8 +- .../petstore_api/models/array_test.py | 8 +- .../petstore_api/models/base_discriminator.py | 12 +- .../petstore_api/models/basque_pig.py | 8 +- .../petstore_api/models/bathing.py | 8 +- .../petstore_api/models/capitalization.py | 8 +- .../python-aiohttp/petstore_api/models/cat.py | 8 +- .../petstore_api/models/category.py | 8 +- .../models/circular_all_of_ref.py | 8 +- .../models/circular_reference_model.py | 8 +- .../petstore_api/models/class_model.py | 8 +- .../petstore_api/models/client.py | 8 +- .../petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 12 +- .../petstore_api/models/creature_info.py | 8 +- .../petstore_api/models/danish_pig.py | 8 +- .../petstore_api/models/deprecated_object.py | 8 +- .../models/discriminator_all_of_sub.py | 8 +- .../models/discriminator_all_of_super.py | 12 +- .../python-aiohttp/petstore_api/models/dog.py | 8 +- .../petstore_api/models/dummy_model.py | 8 +- .../petstore_api/models/enum_arrays.py | 10 +- .../models/enum_ref_with_default_value.py | 8 +- .../petstore_api/models/enum_test.py | 8 +- .../petstore_api/models/feeding.py | 8 +- .../petstore_api/models/file.py | 8 +- .../models/file_schema_test_class.py | 8 +- .../petstore_api/models/first_ref.py | 8 +- .../python-aiohttp/petstore_api/models/foo.py | 8 +- .../models/foo_get_default_response.py | 8 +- .../petstore_api/models/format_test.py | 8 +- .../petstore_api/models/has_only_read_only.py | 8 +- .../models/health_check_result.py | 8 +- .../petstore_api/models/hunting_dog.py | 8 +- .../petstore_api/models/info.py | 8 +- .../models/inner_dict_with_property.py | 8 +- .../petstore_api/models/input_all_of.py | 8 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 8 +- .../models/map_of_array_of_model.py | 8 +- .../petstore_api/models/map_test.py | 8 +- ...perties_and_additional_properties_class.py | 8 +- .../petstore_api/models/model200_response.py | 8 +- .../petstore_api/models/model_api_response.py | 8 +- .../petstore_api/models/model_field.py | 8 +- .../petstore_api/models/model_return.py | 8 +- .../petstore_api/models/multi_arrays.py | 8 +- .../petstore_api/models/name.py | 8 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 8 +- .../petstore_api/models/number_only.py | 8 +- .../object_to_test_additional_properties.py | 8 +- .../models/object_with_deprecated_fields.py | 8 +- .../petstore_api/models/order.py | 8 +- .../petstore_api/models/outer_composite.py | 8 +- .../models/outer_object_with_enum_property.py | 8 +- .../petstore_api/models/parent.py | 8 +- .../models/parent_with_optional_dict.py | 8 +- .../python-aiohttp/petstore_api/models/pet.py | 8 +- .../python-aiohttp/petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 8 +- .../petstore_api/models/poop_cleaning.py | 8 +- .../petstore_api/models/primitive_string.py | 8 +- .../petstore_api/models/property_map.py | 8 +- .../models/property_name_collision.py | 8 +- .../petstore_api/models/read_only_first.py | 8 +- .../models/second_circular_all_of_ref.py | 8 +- .../petstore_api/models/second_ref.py | 8 +- .../models/self_reference_model.py | 8 +- .../petstore_api/models/special_model_name.py | 8 +- .../petstore_api/models/special_name.py | 8 +- .../python-aiohttp/petstore_api/models/tag.py | 8 +- .../petstore_api/models/task.py | 8 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 8 +- ..._error_responses_with_model404_response.py | 8 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 8 +- ...t_for_multipart_requests_request_marker.py | 8 +- .../petstore_api/models/tiger.py | 8 +- ...t_with_additional_model_list_properties.py | 8 +- ..._with_additional_string_list_properties.py | 8 +- ...th_additional_properties_request_object.py | 8 +- .../petstore_api/models/user.py | 8 +- .../petstore_api/models/with_nested_one_of.py | 8 +- .../python-aiohttp/petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../python-httpx/petstore_api/api/fake_api.py | 1483 +++++++++-------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../python-httpx/petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../python-httpx/petstore_api/api/user_api.py | 323 ++-- .../python-httpx/petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 8 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 8 +- .../models/all_of_with_single_ref.py | 8 +- .../petstore_api/models/animal.py | 12 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 8 +- .../models/array_of_array_of_number_only.py | 8 +- .../models/array_of_number_only.py | 8 +- .../petstore_api/models/array_test.py | 8 +- .../petstore_api/models/base_discriminator.py | 12 +- .../petstore_api/models/basque_pig.py | 8 +- .../petstore_api/models/bathing.py | 8 +- .../petstore_api/models/capitalization.py | 8 +- .../python-httpx/petstore_api/models/cat.py | 8 +- .../petstore_api/models/category.py | 8 +- .../models/circular_all_of_ref.py | 8 +- .../models/circular_reference_model.py | 8 +- .../petstore_api/models/class_model.py | 8 +- .../petstore_api/models/client.py | 8 +- .../python-httpx/petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 12 +- .../petstore_api/models/creature_info.py | 8 +- .../petstore_api/models/danish_pig.py | 8 +- .../petstore_api/models/deprecated_object.py | 8 +- .../models/discriminator_all_of_sub.py | 8 +- .../models/discriminator_all_of_super.py | 12 +- .../python-httpx/petstore_api/models/dog.py | 8 +- .../petstore_api/models/dummy_model.py | 8 +- .../petstore_api/models/enum_arrays.py | 10 +- .../models/enum_ref_with_default_value.py | 8 +- .../petstore_api/models/enum_test.py | 8 +- .../petstore_api/models/feeding.py | 8 +- .../python-httpx/petstore_api/models/file.py | 8 +- .../models/file_schema_test_class.py | 8 +- .../petstore_api/models/first_ref.py | 8 +- .../python-httpx/petstore_api/models/foo.py | 8 +- .../models/foo_get_default_response.py | 8 +- .../petstore_api/models/format_test.py | 8 +- .../petstore_api/models/has_only_read_only.py | 8 +- .../models/health_check_result.py | 8 +- .../petstore_api/models/hunting_dog.py | 8 +- .../python-httpx/petstore_api/models/info.py | 8 +- .../models/inner_dict_with_property.py | 8 +- .../petstore_api/models/input_all_of.py | 8 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 8 +- .../models/map_of_array_of_model.py | 8 +- .../petstore_api/models/map_test.py | 8 +- ...perties_and_additional_properties_class.py | 8 +- .../petstore_api/models/model200_response.py | 8 +- .../petstore_api/models/model_api_response.py | 8 +- .../petstore_api/models/model_field.py | 8 +- .../petstore_api/models/model_return.py | 8 +- .../petstore_api/models/multi_arrays.py | 8 +- .../python-httpx/petstore_api/models/name.py | 8 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 8 +- .../petstore_api/models/number_only.py | 8 +- .../object_to_test_additional_properties.py | 8 +- .../models/object_with_deprecated_fields.py | 8 +- .../python-httpx/petstore_api/models/order.py | 8 +- .../petstore_api/models/outer_composite.py | 8 +- .../models/outer_object_with_enum_property.py | 8 +- .../petstore_api/models/parent.py | 8 +- .../models/parent_with_optional_dict.py | 8 +- .../python-httpx/petstore_api/models/pet.py | 8 +- .../python-httpx/petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 8 +- .../petstore_api/models/poop_cleaning.py | 8 +- .../petstore_api/models/primitive_string.py | 8 +- .../petstore_api/models/property_map.py | 8 +- .../models/property_name_collision.py | 8 +- .../petstore_api/models/read_only_first.py | 8 +- .../models/second_circular_all_of_ref.py | 8 +- .../petstore_api/models/second_ref.py | 8 +- .../models/self_reference_model.py | 8 +- .../petstore_api/models/special_model_name.py | 8 +- .../petstore_api/models/special_name.py | 8 +- .../python-httpx/petstore_api/models/tag.py | 8 +- .../python-httpx/petstore_api/models/task.py | 8 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 8 +- ..._error_responses_with_model404_response.py | 8 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 8 +- ...t_for_multipart_requests_request_marker.py | 8 +- .../python-httpx/petstore_api/models/tiger.py | 8 +- ...t_with_additional_model_list_properties.py | 8 +- ..._with_additional_string_list_properties.py | 8 +- ...th_additional_properties_request_object.py | 8 +- .../python-httpx/petstore_api/models/user.py | 8 +- .../petstore_api/models/with_nested_one_of.py | 8 +- .../python-httpx/petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../petstore_api/api/default_api.py | 43 +- .../petstore_api/api/fake_api.py | 1483 +++++++++-------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../petstore_api/api/pet_api.py | 363 ++-- .../petstore_api/api/store_api.py | 163 +- .../petstore_api/api/user_api.py | 323 ++-- .../petstore_api/api_client.py | 30 +- .../petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 10 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 10 +- .../models/all_of_with_single_ref.py | 10 +- .../petstore_api/models/animal.py | 14 +- .../petstore_api/models/any_of_color.py | 8 +- .../petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 10 +- .../models/array_of_array_of_number_only.py | 10 +- .../models/array_of_number_only.py | 10 +- .../petstore_api/models/array_test.py | 10 +- .../petstore_api/models/base_discriminator.py | 14 +- .../petstore_api/models/basque_pig.py | 10 +- .../petstore_api/models/bathing.py | 10 +- .../petstore_api/models/capitalization.py | 10 +- .../petstore_api/models/cat.py | 10 +- .../petstore_api/models/category.py | 10 +- .../models/circular_all_of_ref.py | 10 +- .../models/circular_reference_model.py | 10 +- .../petstore_api/models/class_model.py | 10 +- .../petstore_api/models/client.py | 10 +- .../petstore_api/models/color.py | 8 +- .../petstore_api/models/creature.py | 14 +- .../petstore_api/models/creature_info.py | 10 +- .../petstore_api/models/danish_pig.py | 10 +- .../petstore_api/models/deprecated_object.py | 10 +- .../models/discriminator_all_of_sub.py | 10 +- .../models/discriminator_all_of_super.py | 14 +- .../petstore_api/models/dog.py | 10 +- .../petstore_api/models/dummy_model.py | 10 +- .../petstore_api/models/enum_arrays.py | 12 +- .../models/enum_ref_with_default_value.py | 10 +- .../petstore_api/models/enum_test.py | 10 +- .../petstore_api/models/feeding.py | 10 +- .../petstore_api/models/file.py | 10 +- .../models/file_schema_test_class.py | 10 +- .../petstore_api/models/first_ref.py | 10 +- .../petstore_api/models/foo.py | 10 +- .../models/foo_get_default_response.py | 10 +- .../petstore_api/models/format_test.py | 10 +- .../petstore_api/models/has_only_read_only.py | 10 +- .../models/health_check_result.py | 10 +- .../petstore_api/models/hunting_dog.py | 10 +- .../petstore_api/models/info.py | 10 +- .../models/inner_dict_with_property.py | 10 +- .../petstore_api/models/input_all_of.py | 10 +- .../petstore_api/models/int_or_string.py | 8 +- .../petstore_api/models/list_class.py | 10 +- .../models/map_of_array_of_model.py | 10 +- .../petstore_api/models/map_test.py | 10 +- ...perties_and_additional_properties_class.py | 10 +- .../petstore_api/models/model200_response.py | 10 +- .../petstore_api/models/model_api_response.py | 10 +- .../petstore_api/models/model_field.py | 10 +- .../petstore_api/models/model_return.py | 10 +- .../petstore_api/models/multi_arrays.py | 10 +- .../petstore_api/models/name.py | 10 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 10 +- .../petstore_api/models/number_only.py | 10 +- .../object_to_test_additional_properties.py | 10 +- .../models/object_with_deprecated_fields.py | 10 +- .../petstore_api/models/one_of_enum_string.py | 8 +- .../petstore_api/models/order.py | 10 +- .../petstore_api/models/outer_composite.py | 10 +- .../models/outer_object_with_enum_property.py | 10 +- .../petstore_api/models/parent.py | 10 +- .../models/parent_with_optional_dict.py | 10 +- .../petstore_api/models/pet.py | 10 +- .../petstore_api/models/pig.py | 8 +- .../petstore_api/models/pony_sizes.py | 10 +- .../petstore_api/models/poop_cleaning.py | 10 +- .../petstore_api/models/primitive_string.py | 10 +- .../petstore_api/models/property_map.py | 10 +- .../models/property_name_collision.py | 10 +- .../petstore_api/models/read_only_first.py | 10 +- .../models/second_circular_all_of_ref.py | 10 +- .../petstore_api/models/second_ref.py | 10 +- .../models/self_reference_model.py | 10 +- .../petstore_api/models/special_model_name.py | 10 +- .../petstore_api/models/special_name.py | 10 +- .../petstore_api/models/tag.py | 10 +- .../petstore_api/models/task.py | 10 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 10 +- ..._error_responses_with_model404_response.py | 10 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 10 +- ...t_for_multipart_requests_request_marker.py | 10 +- .../petstore_api/models/tiger.py | 10 +- ...t_with_additional_model_list_properties.py | 10 +- ..._with_additional_string_list_properties.py | 10 +- ...th_additional_properties_request_object.py | 10 +- .../petstore_api/models/user.py | 10 +- .../petstore_api/models/with_nested_one_of.py | 10 +- .../petstore_api/signing.py | 4 +- .../petstore_api/api/another_fake_api.py | 43 +- .../python/petstore_api/api/default_api.py | 43 +- .../python/petstore_api/api/fake_api.py | 1483 +++++++++-------- .../api/fake_classname_tags123_api.py | 43 +- .../api/import_test_datetime_api.py | 43 +- .../python/petstore_api/api/pet_api.py | 363 ++-- .../python/petstore_api/api/store_api.py | 163 +- .../python/petstore_api/api/user_api.py | 323 ++-- .../python/petstore_api/api_client.py | 30 +- .../python/petstore_api/configuration.py | 26 +- .../models/additional_properties_any_type.py | 10 +- .../models/additional_properties_class.py | 10 +- .../models/additional_properties_object.py | 10 +- ...tional_properties_with_description_only.py | 10 +- .../petstore_api/models/all_of_super_model.py | 10 +- .../models/all_of_with_single_ref.py | 10 +- .../python/petstore_api/models/animal.py | 14 +- .../petstore_api/models/any_of_color.py | 8 +- .../python/petstore_api/models/any_of_pig.py | 8 +- .../models/array_of_array_of_model.py | 10 +- .../models/array_of_array_of_number_only.py | 10 +- .../models/array_of_number_only.py | 10 +- .../python/petstore_api/models/array_test.py | 10 +- .../petstore_api/models/base_discriminator.py | 14 +- .../python/petstore_api/models/basque_pig.py | 10 +- .../python/petstore_api/models/bathing.py | 10 +- .../petstore_api/models/capitalization.py | 10 +- .../python/petstore_api/models/cat.py | 10 +- .../python/petstore_api/models/category.py | 10 +- .../models/circular_all_of_ref.py | 10 +- .../models/circular_reference_model.py | 10 +- .../python/petstore_api/models/class_model.py | 10 +- .../python/petstore_api/models/client.py | 10 +- .../python/petstore_api/models/color.py | 8 +- .../python/petstore_api/models/creature.py | 14 +- .../petstore_api/models/creature_info.py | 10 +- .../python/petstore_api/models/danish_pig.py | 10 +- .../petstore_api/models/deprecated_object.py | 10 +- .../models/discriminator_all_of_sub.py | 10 +- .../models/discriminator_all_of_super.py | 14 +- .../python/petstore_api/models/dog.py | 10 +- .../python/petstore_api/models/dummy_model.py | 10 +- .../python/petstore_api/models/enum_arrays.py | 12 +- .../models/enum_ref_with_default_value.py | 10 +- .../python/petstore_api/models/enum_test.py | 10 +- .../python/petstore_api/models/feeding.py | 10 +- .../python/petstore_api/models/file.py | 10 +- .../models/file_schema_test_class.py | 10 +- .../python/petstore_api/models/first_ref.py | 10 +- .../python/petstore_api/models/foo.py | 10 +- .../models/foo_get_default_response.py | 10 +- .../python/petstore_api/models/format_test.py | 10 +- .../petstore_api/models/has_only_read_only.py | 10 +- .../models/health_check_result.py | 10 +- .../python/petstore_api/models/hunting_dog.py | 10 +- .../python/petstore_api/models/info.py | 10 +- .../models/inner_dict_with_property.py | 10 +- .../petstore_api/models/input_all_of.py | 10 +- .../petstore_api/models/int_or_string.py | 8 +- .../python/petstore_api/models/list_class.py | 10 +- .../models/map_of_array_of_model.py | 10 +- .../python/petstore_api/models/map_test.py | 10 +- ...perties_and_additional_properties_class.py | 10 +- .../petstore_api/models/model200_response.py | 10 +- .../petstore_api/models/model_api_response.py | 10 +- .../python/petstore_api/models/model_field.py | 10 +- .../petstore_api/models/model_return.py | 10 +- .../petstore_api/models/multi_arrays.py | 10 +- .../python/petstore_api/models/name.py | 10 +- .../petstore_api/models/nullable_class.py | 10 +- .../petstore_api/models/nullable_property.py | 10 +- .../python/petstore_api/models/number_only.py | 10 +- .../object_to_test_additional_properties.py | 10 +- .../models/object_with_deprecated_fields.py | 10 +- .../petstore_api/models/one_of_enum_string.py | 8 +- .../python/petstore_api/models/order.py | 10 +- .../petstore_api/models/outer_composite.py | 10 +- .../models/outer_object_with_enum_property.py | 10 +- .../python/petstore_api/models/parent.py | 10 +- .../models/parent_with_optional_dict.py | 10 +- .../python/petstore_api/models/pet.py | 10 +- .../python/petstore_api/models/pig.py | 8 +- .../python/petstore_api/models/pony_sizes.py | 10 +- .../petstore_api/models/poop_cleaning.py | 10 +- .../petstore_api/models/primitive_string.py | 10 +- .../petstore_api/models/property_map.py | 10 +- .../models/property_name_collision.py | 10 +- .../petstore_api/models/read_only_first.py | 10 +- .../models/second_circular_all_of_ref.py | 10 +- .../python/petstore_api/models/second_ref.py | 10 +- .../models/self_reference_model.py | 10 +- .../petstore_api/models/special_model_name.py | 10 +- .../petstore_api/models/special_name.py | 10 +- .../python/petstore_api/models/tag.py | 10 +- .../python/petstore_api/models/task.py | 10 +- .../petstore_api/models/task_activity.py | 8 +- ..._error_responses_with_model400_response.py | 10 +- ..._error_responses_with_model404_response.py | 10 +- ..._freeform_additional_properties_request.py | 10 +- .../models/test_model_with_enum_default.py | 10 +- ...t_for_multipart_requests_request_marker.py | 10 +- .../python/petstore_api/models/tiger.py | 10 +- ...t_with_additional_model_list_properties.py | 10 +- ..._with_additional_string_list_properties.py | 10 +- ...th_additional_properties_request_object.py | 10 +- .../python/petstore_api/models/user.py | 10 +- .../petstore_api/models/with_nested_one_of.py | 10 +- .../petstore/python/petstore_api/signing.py | 4 +- 477 files changed, 8267 insertions(+), 8222 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/api.mustache b/modules/openapi-generator/src/main/resources/python/api.mustache index 085dbb685277..3dde3f1dd0b3 100644 --- a/modules/openapi-generator/src/main/resources/python/api.mustache +++ b/modules/openapi-generator/src/main/resources/python/api.mustache @@ -4,7 +4,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated {{#imports}} {{import}} @@ -92,7 +93,7 @@ class {{classname}}: _host = None {{/servers.0}} - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { {{#allParams}} {{#isArray}} '{{baseName}}': '{{collectionFormat}}', @@ -100,12 +101,12 @@ class {{classname}}: {{/allParams}} } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -219,7 +220,7 @@ class {{classname}}: {{/hasConsumes}} # authentication setting - _auth_settings: list[str] = [{{#authMethods}} + _auth_settings: List[str] = [{{#authMethods}} '{{name}}'{{^-last}}, {{/-last}}{{/authMethods}} ] diff --git a/modules/openapi-generator/src/main/resources/python/api_client.mustache b/modules/openapi-generator/src/main/resources/python/api_client.mustache index 2d5b80fafd7e..e72c8eac71b8 100644 --- a/modules/openapi-generator/src/main/resources/python/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/python/api_client.mustache @@ -15,7 +15,7 @@ import tempfile import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr {{#tornado}} import tornado.gen @@ -35,7 +35,7 @@ from {{packageName}}.exceptions import ( ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -295,7 +295,7 @@ class ApiClient: def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -444,16 +444,16 @@ class ApiClient: return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -486,7 +486,7 @@ class ApiClient: :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -516,7 +516,7 @@ class ApiClient: :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -550,7 +550,7 @@ class ApiClient: def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -583,10 +583,10 @@ class ApiClient: ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -601,7 +601,7 @@ class ApiClient: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/modules/openapi-generator/src/main/resources/python/configuration.mustache b/modules/openapi-generator/src/main/resources/python/configuration.mustache index d60f7c0822b2..ae69d74c3138 100644 --- a/modules/openapi-generator/src/main/resources/python/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/python/configuration.mustache @@ -14,7 +14,7 @@ from logging import FileHandler import multiprocessing {{/async}} import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -150,13 +150,13 @@ AuthSettings = TypedDict( class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -166,11 +166,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -288,8 +288,8 @@ conf = {{{packageName}}}.Configuration( def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, @@ -298,8 +298,8 @@ conf = {{{packageName}}}.Configuration( {{/hasHttpSignatureMethods}} server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -453,7 +453,7 @@ conf = {{{packageName}}}.Configuration( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -713,7 +713,7 @@ conf = {{{packageName}}}.Configuration( "SDK Package Version: {{packageVersion}}".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -757,7 +757,7 @@ conf = {{{packageName}}}.Configuration( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache index 412eb4667ae7..097a5b134ff0 100644 --- a/modules/openapi-generator/src/main/resources/python/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_anyof.mustache @@ -4,7 +4,7 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -39,8 +39,8 @@ class {{classname}}(RootModel[Union[{{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyO raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -52,7 +52,7 @@ class {{classname}}(RootModel[Union[{{#anyOf}}{{.}}{{^-last}}, {{/-last}}{{/anyO """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/model_generic.mustache b/modules/openapi-generator/src/main/resources/python/model_generic.mustache index 4100eb80d777..169fe0cffa0f 100644 --- a/modules/openapi-generator/src/main/resources/python/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_generic.mustache @@ -57,8 +57,8 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/values}} {{/isArray}} {{#isArray}} - {{! Array enum - use list[Literal] }} - {{name}}: {{#required}}list[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]{{/required}}{{^required}}Optional[list[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]]{{/required}} = Field( + {{! Array enum - use List[Literal] }} + {{name}}: {{#required}}List[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]{{/required}}{{^required}}Optional[List[Literal[{{#allowableValues}}{{#enumVars}}{{#isString}}{{{value}}}{{/isString}}{{^isString}}{{{value}}}{{/isString}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}]]]{{/required}} = Field( {{#required}}...{{/required}}{{^required}}None{{/required}}, description="{{description}}{{^description}}{{{name}}} of the {{classname}}{{/description}}" ) @@ -70,9 +70,9 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/isEnum}} {{/vars}} {{#isAdditionalPropertiesTrue}} - additional_properties: dict[str, Any] = {} + additional_properties: Dict[str, Any] = {} {{/isAdditionalPropertiesTrue}} - __properties: ClassVar[list[str]] = [{{#allVars}}"{{baseName}}"{{^-last}}, {{/-last}}{{/allVars}}] + __properties: ClassVar[List[str]] = [{{#allVars}}"{{baseName}}"{{^-last}}, {{/-last}}{{/allVars}}] {{#vars}} {{#vendorExtensions.x-regex}} @@ -145,12 +145,12 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} __discriminator_property_name: ClassVar[str] = '{{discriminator.propertyBaseName}}' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { {{#mappedModels}}'{{{mappingName}}}': '{{{modelName}}}'{{^-last}},{{/-last}}{{/mappedModels}} } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -161,8 +161,8 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} {{/discriminator}} {{/hasChildren}} @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -174,7 +174,7 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}} """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache index 2f263884fba2..c39b7e75bbd3 100644 --- a/modules/openapi-generator/src/main/resources/python/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/python/model_oneof.mustache @@ -4,7 +4,7 @@ import pprint {{{.}}} {{/vendorExtensions.x-py-model-imports}} from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -39,8 +39,8 @@ class {{classname}}(RootModel[Union[{{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/on raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -52,7 +52,7 @@ class {{classname}}(RootModel[Union[{{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/on """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/modules/openapi-generator/src/main/resources/python/partial_api.mustache b/modules/openapi-generator/src/main/resources/python/partial_api.mustache index 0d2b9191f808..dd3a9a1fa12b 100644 --- a/modules/openapi-generator/src/main/resources/python/partial_api.mustache +++ b/modules/openapi-generator/src/main/resources/python/partial_api.mustache @@ -43,7 +43,7 @@ _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { {{#responses}} {{^isWildcard}} '{{code}}': {{#dataType}}"{{.}}"{{/dataType}}{{^dataType}}None{{/dataType}}, diff --git a/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache b/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache index 01282e8feed0..379b67de9875 100644 --- a/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache +++ b/modules/openapi-generator/src/main/resources/python/partial_api_args.mustache @@ -6,13 +6,13 @@ _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le={{#servers.size}}{{servers.size}}{{/servers.size}}{{^servers.size}}1{{/servers.size}})] = 0, ) \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/python/signing.mustache b/modules/openapi-generator/src/main/resources/python/signing.mustache index 4b5119be9a97..4d00424ea48f 100644 --- a/modules/openapi-generator/src/main/resources/python/signing.mustache +++ b/modules/openapi-generator/src/main/resources/python/signing.mustache @@ -12,7 +12,7 @@ from email.utils import formatdate import os import re from time import time -from typing import Optional, Union +from typing import List, Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -118,7 +118,7 @@ class HttpSigningConfiguration: signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[list[str]]=None, + signed_headers: Optional[List[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py index 75361e205438..c9a8552ff76f 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/auth_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictStr @@ -42,14 +43,14 @@ def test_auth_http_basic( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP basic authentication @@ -85,7 +86,7 @@ def test_auth_http_basic( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -105,14 +106,14 @@ def test_auth_http_basic_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP basic authentication @@ -148,7 +149,7 @@ def test_auth_http_basic_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -168,14 +169,14 @@ def test_auth_http_basic_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP basic authentication @@ -211,7 +212,7 @@ def test_auth_http_basic_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -231,15 +232,15 @@ def _test_auth_http_basic_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -260,7 +261,7 @@ def _test_auth_http_basic_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_auth' ] @@ -288,14 +289,14 @@ def test_auth_http_bearer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP bearer authentication @@ -331,7 +332,7 @@ def test_auth_http_bearer( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -351,14 +352,14 @@ def test_auth_http_bearer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP bearer authentication @@ -394,7 +395,7 @@ def test_auth_http_bearer_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -414,14 +415,14 @@ def test_auth_http_bearer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP bearer authentication @@ -457,7 +458,7 @@ def test_auth_http_bearer_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -477,15 +478,15 @@ def _test_auth_http_bearer_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -506,7 +507,7 @@ def _test_auth_http_bearer_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_bearer_auth' ] diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py index 247e4ed81d55..f70ceeffddc5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictStr from typing import Any, Dict, List, Optional, Tuple, Union @@ -47,14 +48,14 @@ def test_binary_gif( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """Test binary (gif) response body @@ -90,7 +91,7 @@ def test_binary_gif( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -110,14 +111,14 @@ def test_binary_gif_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """Test binary (gif) response body @@ -153,7 +154,7 @@ def test_binary_gif_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -173,14 +174,14 @@ def test_binary_gif_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test binary (gif) response body @@ -216,7 +217,7 @@ def test_binary_gif_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -236,15 +237,15 @@ def _test_binary_gif_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -265,7 +266,7 @@ def _test_binary_gif_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -293,14 +294,14 @@ def test_body_application_octetstream_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test body parameter(s) @@ -339,7 +340,7 @@ def test_body_application_octetstream_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -360,14 +361,14 @@ def test_body_application_octetstream_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test body parameter(s) @@ -406,7 +407,7 @@ def test_body_application_octetstream_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -427,14 +428,14 @@ def test_body_application_octetstream_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -473,7 +474,7 @@ def test_body_application_octetstream_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -494,15 +495,15 @@ def _test_body_application_octetstream_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -546,7 +547,7 @@ def _test_body_application_octetstream_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ def test_body_multipart_formdata_array_of_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test array of binary in multipart mime @@ -620,7 +621,7 @@ def test_body_multipart_formdata_array_of_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -641,14 +642,14 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test array of binary in multipart mime @@ -687,7 +688,7 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -708,14 +709,14 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test array of binary in multipart mime @@ -754,7 +755,7 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -775,16 +776,16 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'files': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -820,7 +821,7 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -848,14 +849,14 @@ def test_body_multipart_formdata_single_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test single binary in multipart mime @@ -894,7 +895,7 @@ def test_body_multipart_formdata_single_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -915,14 +916,14 @@ def test_body_multipart_formdata_single_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test single binary in multipart mime @@ -961,7 +962,7 @@ def test_body_multipart_formdata_single_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -982,14 +983,14 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test single binary in multipart mime @@ -1028,7 +1029,7 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1049,15 +1050,15 @@ def _test_body_multipart_formdata_single_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1093,7 +1094,7 @@ def _test_body_multipart_formdata_single_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1121,14 +1122,14 @@ def test_echo_body_all_of_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1167,7 +1168,7 @@ def test_echo_body_all_of_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1188,14 +1189,14 @@ def test_echo_body_all_of_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1234,7 +1235,7 @@ def test_echo_body_all_of_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1255,14 +1256,14 @@ def test_echo_body_all_of_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1301,7 +1302,7 @@ def test_echo_body_all_of_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1322,15 +1323,15 @@ def _test_echo_body_all_of_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1366,7 +1367,7 @@ def _test_echo_body_all_of_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1394,14 +1395,14 @@ def test_echo_body_free_form_object_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test free form object @@ -1440,7 +1441,7 @@ def test_echo_body_free_form_object_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1461,14 +1462,14 @@ def test_echo_body_free_form_object_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test free form object @@ -1507,7 +1508,7 @@ def test_echo_body_free_form_object_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1528,14 +1529,14 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test free form object @@ -1574,7 +1575,7 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1595,15 +1596,15 @@ def _test_echo_body_free_form_object_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1639,7 +1640,7 @@ def _test_echo_body_free_form_object_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1667,14 +1668,14 @@ def test_echo_body_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1713,7 +1714,7 @@ def test_echo_body_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1734,14 +1735,14 @@ def test_echo_body_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1780,7 +1781,7 @@ def test_echo_body_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1801,14 +1802,14 @@ def test_echo_body_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1847,7 +1848,7 @@ def test_echo_body_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1868,15 +1869,15 @@ def _test_echo_body_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1912,7 +1913,7 @@ def _test_echo_body_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1940,14 +1941,14 @@ def test_echo_body_pet_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty response body @@ -1986,7 +1987,7 @@ def test_echo_body_pet_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2007,14 +2008,14 @@ def test_echo_body_pet_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty response body @@ -2053,7 +2054,7 @@ def test_echo_body_pet_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2074,14 +2075,14 @@ def test_echo_body_pet_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty response body @@ -2120,7 +2121,7 @@ def test_echo_body_pet_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2141,15 +2142,15 @@ def _test_echo_body_pet_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2185,7 +2186,7 @@ def _test_echo_body_pet_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2213,14 +2214,14 @@ def test_echo_body_string_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> StringEnumRef: """Test string enum response body @@ -2259,7 +2260,7 @@ def test_echo_body_string_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2280,14 +2281,14 @@ def test_echo_body_string_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[StringEnumRef]: """Test string enum response body @@ -2326,7 +2327,7 @@ def test_echo_body_string_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2347,14 +2348,14 @@ def test_echo_body_string_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test string enum response body @@ -2393,7 +2394,7 @@ def test_echo_body_string_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2414,15 +2415,15 @@ def _test_echo_body_string_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2458,7 +2459,7 @@ def _test_echo_body_string_enum_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2486,14 +2487,14 @@ def test_echo_body_tag_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty json (request body) @@ -2532,7 +2533,7 @@ def test_echo_body_tag_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2553,14 +2554,14 @@ def test_echo_body_tag_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty json (request body) @@ -2599,7 +2600,7 @@ def test_echo_body_tag_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2620,14 +2621,14 @@ def test_echo_body_tag_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty json (request body) @@ -2666,7 +2667,7 @@ def test_echo_body_tag_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2687,15 +2688,15 @@ def _test_echo_body_tag_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2731,7 +2732,7 @@ def _test_echo_body_tag_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py index c247557197d0..19a216188386 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/form_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictBool, StrictInt, StrictStr from typing import Optional @@ -47,14 +48,14 @@ def test_form_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) @@ -99,7 +100,7 @@ def test_form_integer_boolean_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -122,14 +123,14 @@ def test_form_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) @@ -174,7 +175,7 @@ def test_form_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -197,14 +198,14 @@ def test_form_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) @@ -249,7 +250,7 @@ def test_form_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -272,15 +273,15 @@ def _test_form_integer_boolean_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -320,7 +321,7 @@ def _test_form_integer_boolean_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -348,14 +349,14 @@ def test_form_object_multipart( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for multipart schema @@ -394,7 +395,7 @@ def test_form_object_multipart( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -415,14 +416,14 @@ def test_form_object_multipart_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for multipart schema @@ -461,7 +462,7 @@ def test_form_object_multipart_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -482,14 +483,14 @@ def test_form_object_multipart_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for multipart schema @@ -528,7 +529,7 @@ def test_form_object_multipart_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -549,15 +550,15 @@ def _test_form_object_multipart_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -593,7 +594,7 @@ def _test_form_object_multipart_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -626,14 +627,14 @@ def test_form_oneof( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for oneOf schema @@ -687,7 +688,7 @@ def test_form_oneof( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -713,14 +714,14 @@ def test_form_oneof_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for oneOf schema @@ -774,7 +775,7 @@ def test_form_oneof_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -800,14 +801,14 @@ def test_form_oneof_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for oneOf schema @@ -861,7 +862,7 @@ def test_form_oneof_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -887,15 +888,15 @@ def _test_form_oneof_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -941,7 +942,7 @@ def _test_form_oneof_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py index e39172db7909..85e88dead22d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/header_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictBool, StrictInt, StrictStr, field_validator from typing import Optional @@ -49,14 +50,14 @@ def test_header_integer_boolean_string_enums( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test header parameter(s) @@ -107,7 +108,7 @@ def test_header_integer_boolean_string_enums( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -132,14 +133,14 @@ def test_header_integer_boolean_string_enums_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test header parameter(s) @@ -190,7 +191,7 @@ def test_header_integer_boolean_string_enums_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -215,14 +216,14 @@ def test_header_integer_boolean_string_enums_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test header parameter(s) @@ -273,7 +274,7 @@ def test_header_integer_boolean_string_enums_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -298,15 +299,15 @@ def _test_header_integer_boolean_string_enums_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -337,7 +338,7 @@ def _test_header_integer_boolean_string_enums_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py index d796a43dd397..c34887fda5d3 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/path_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictInt, StrictStr, field_validator from openapi_client.models.string_enum_ref import StringEnumRef @@ -47,14 +48,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test path parameter(s) @@ -102,7 +103,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -126,14 +127,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test path parameter(s) @@ -181,7 +182,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -205,14 +206,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test path parameter(s) @@ -260,7 +261,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -284,15 +285,15 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -321,7 +322,7 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py index 3bfa04388622..da67b25c2b35 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/query_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import StrictBool, StrictInt, StrictStr, field_validator @@ -49,14 +50,14 @@ def test_enum_ref_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -98,7 +99,7 @@ def test_enum_ref_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -120,14 +121,14 @@ def test_enum_ref_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -169,7 +170,7 @@ def test_enum_ref_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -191,14 +192,14 @@ def test_enum_ref_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -240,7 +241,7 @@ def test_enum_ref_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -262,15 +263,15 @@ def _test_enum_ref_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -299,7 +300,7 @@ def _test_enum_ref_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -329,14 +330,14 @@ def test_query_datetime_date_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -381,7 +382,7 @@ def test_query_datetime_date_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -404,14 +405,14 @@ def test_query_datetime_date_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -456,7 +457,7 @@ def test_query_datetime_date_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -479,14 +480,14 @@ def test_query_datetime_date_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -531,7 +532,7 @@ def test_query_datetime_date_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -554,15 +555,15 @@ def _test_query_datetime_date_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -613,7 +614,7 @@ def _test_query_datetime_date_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -643,14 +644,14 @@ def test_query_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -695,7 +696,7 @@ def test_query_integer_boolean_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -718,14 +719,14 @@ def test_query_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -770,7 +771,7 @@ def test_query_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -793,14 +794,14 @@ def test_query_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -845,7 +846,7 @@ def test_query_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -868,15 +869,15 @@ def _test_query_integer_boolean_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -909,7 +910,7 @@ def _test_query_integer_boolean_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -937,14 +938,14 @@ def test_query_style_deep_object_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -983,7 +984,7 @@ def test_query_style_deep_object_explode_true_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1004,14 +1005,14 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1050,7 +1051,7 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1071,14 +1072,14 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1117,7 +1118,7 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1138,15 +1139,15 @@ def _test_query_style_deep_object_explode_true_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1171,7 +1172,7 @@ def _test_query_style_deep_object_explode_true_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1199,14 +1200,14 @@ def test_query_style_deep_object_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1245,7 +1246,7 @@ def test_query_style_deep_object_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1266,14 +1267,14 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1312,7 +1313,7 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1333,14 +1334,14 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1379,7 +1380,7 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1400,15 +1401,15 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1433,7 +1434,7 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1461,14 +1462,14 @@ def test_query_style_form_explode_false_array_integer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1507,7 +1508,7 @@ def test_query_style_form_explode_false_array_integer( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1528,14 +1529,14 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1574,7 +1575,7 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1595,14 +1596,14 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1641,7 +1642,7 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1662,16 +1663,16 @@ def _test_query_style_form_explode_false_array_integer_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'query_object': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1696,7 +1697,7 @@ def _test_query_style_form_explode_false_array_integer_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1724,14 +1725,14 @@ def test_query_style_form_explode_false_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1770,7 +1771,7 @@ def test_query_style_form_explode_false_array_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1791,14 +1792,14 @@ def test_query_style_form_explode_false_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1837,7 +1838,7 @@ def test_query_style_form_explode_false_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1858,14 +1859,14 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1904,7 +1905,7 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1925,16 +1926,16 @@ def _test_query_style_form_explode_false_array_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'query_object': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1959,7 +1960,7 @@ def _test_query_style_form_explode_false_array_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1987,14 +1988,14 @@ def test_query_style_form_explode_true_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2033,7 +2034,7 @@ def test_query_style_form_explode_true_array_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2054,14 +2055,14 @@ def test_query_style_form_explode_true_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2100,7 +2101,7 @@ def test_query_style_form_explode_true_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2121,14 +2122,14 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2167,7 +2168,7 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2188,15 +2189,15 @@ def _test_query_style_form_explode_true_array_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2221,7 +2222,7 @@ def _test_query_style_form_explode_true_array_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2249,14 +2250,14 @@ def test_query_style_form_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2295,7 +2296,7 @@ def test_query_style_form_explode_true_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2316,14 +2317,14 @@ def test_query_style_form_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2362,7 +2363,7 @@ def test_query_style_form_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2383,14 +2384,14 @@ def test_query_style_form_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2429,7 +2430,7 @@ def test_query_style_form_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2450,15 +2451,15 @@ def _test_query_style_form_explode_true_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2483,7 +2484,7 @@ def _test_query_style_form_explode_true_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2511,14 +2512,14 @@ def test_query_style_form_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2557,7 +2558,7 @@ def test_query_style_form_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2578,14 +2579,14 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2624,7 +2625,7 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2645,14 +2646,14 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2691,7 +2692,7 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2712,15 +2713,15 @@ def _test_query_style_form_explode_true_object_all_of_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2745,7 +2746,7 @@ def _test_query_style_form_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2774,14 +2775,14 @@ def test_query_style_json_serialization_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2823,7 +2824,7 @@ def test_query_style_json_serialization_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2845,14 +2846,14 @@ def test_query_style_json_serialization_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2894,7 +2895,7 @@ def test_query_style_json_serialization_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2916,14 +2917,14 @@ def test_query_style_json_serialization_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2965,7 +2966,7 @@ def test_query_style_json_serialization_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2987,16 +2988,16 @@ def _test_query_style_json_serialization_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'json_serialized_object_array_ref_string_query': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3025,7 +3026,7 @@ def _test_query_style_json_serialization_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py index 94ee3de89422..b89f71f6aba8 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api_client.py @@ -25,7 +25,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from openapi_client.configuration import Configuration @@ -42,7 +42,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -287,7 +287,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -436,16 +436,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -478,7 +478,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -508,7 +508,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -542,7 +542,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -575,10 +575,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -593,7 +593,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py index c4c87aadc00c..a43f82fc576d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -128,13 +128,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -144,11 +144,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -196,15 +196,15 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -341,7 +341,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -547,7 +547,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -563,7 +563,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py index 9982ad8c720a..c18d3eb9dfd7 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/bird.py @@ -34,7 +34,7 @@ class Bird(BaseModel): """ # noqa: E501 size: Optional[StrictStr] = None color: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["size", "color"] + __properties: ClassVar[List[str]] = ["size", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Bird(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py index df32cfd8cdfa..973750428298 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/category.py @@ -34,7 +34,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py index 86451a3de490..6658f9691359 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/data_query.py @@ -37,7 +37,7 @@ class DataQuery(Query): suffix: Optional[StrictStr] = Field(default=None, description="test suffix") text: Optional[StrictStr] = Field(default=None, description="Some text containing white spaces") var_date: Optional[datetime] = Field(default=None, description="A date", alias="date") - __properties: ClassVar[list[str]] = ["id", "outcomes", "suffix", "text", "date"] + __properties: ClassVar[List[str]] = ["id", "outcomes", "suffix", "text", "date"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class DataQuery(Query): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py index b77066ea5dbd..d018b8927a6d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/default_value.py @@ -34,7 +34,7 @@ class DefaultValue(BaseModel): to test the default value of properties """ # noqa: E501 array_string_enum_ref_default: Optional[List[StringEnumRef]] = None - array_string_enum_default: Optional[list[Literal['success', 'failure', 'unclassified']]] = Field( + array_string_enum_default: Optional[List[Literal['success', 'failure', 'unclassified']]] = Field( None, description="array_string_enum_default of the DefaultValue" ) @@ -44,7 +44,7 @@ class DefaultValue(BaseModel): array_string_nullable: Optional[List[StrictStr]] = None array_string_extension_nullable: Optional[List[StrictStr]] = None string_nullable: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] + __properties: ClassVar[List[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] @field_validator('array_string_enum_default') def array_string_enum_default_validate_enum(cls, value): @@ -65,8 +65,8 @@ def array_string_enum_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py index 550c6db4baac..d35647cbc4f5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/number_properties_only.py @@ -36,7 +36,7 @@ class NumberPropertiesOnly(BaseModel): number: Optional[Union[StrictFloat, StrictInt]] = None var_float: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="float") double: Optional[Union[Annotated[float, Field(le=50.2, strict=True, ge=0.8)], Annotated[int, Field(le=50, strict=True, ge=1)]]] = None - __properties: ClassVar[list[str]] = ["number", "float", "double"] + __properties: ClassVar[List[str]] = ["number", "float", "double"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class NumberPropertiesOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py index b77e9a8a8d79..5a51a7246ffb 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] + __properties: ClassVar[List[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py index a9030f64deeb..6f9a8b33f47b 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/query.py @@ -33,11 +33,11 @@ class Query(BaseModel): Query """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Query") - outcomes: Optional[list[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( + outcomes: Optional[List[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( None, description="outcomes of the Query" ) - __properties: ClassVar[list[str]] = ["id", "outcomes"] + __properties: ClassVar[List[str]] = ["id", "outcomes"] @field_validator('outcomes') def outcomes_validate_enum(cls, value): @@ -58,8 +58,8 @@ def outcomes_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py index a7d8a798c442..905c39f0d1d2 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/tag.py @@ -34,7 +34,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py index 651c474e24d6..5401bd990d9d 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_form_object_multipart_request_marker.py @@ -33,7 +33,7 @@ class TestFormObjectMultipartRequestMarker(BaseModel): TestFormObjectMultipartRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestFormObjectMultipartRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index e197eed27dd5..eb2a6c6201f9 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -36,7 +36,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod color: Optional[StrictStr] = None id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["size", "color", "id", "name"] + __properties: ClassVar[List[str]] = ["size", "color", "id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 6bb448a448f6..fb0c89eb00cc 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -33,7 +33,7 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter """ # noqa: E501 values: Optional[List[StrictStr]] = None - __properties: ClassVar[list[str]] = ["values"] + __properties: ClassVar[List[str]] = ["values"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/api/auth_api.py b/samples/client/echo_api/python/openapi_client/api/auth_api.py index 75361e205438..c9a8552ff76f 100644 --- a/samples/client/echo_api/python/openapi_client/api/auth_api.py +++ b/samples/client/echo_api/python/openapi_client/api/auth_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictStr @@ -42,14 +43,14 @@ def test_auth_http_basic( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP basic authentication @@ -85,7 +86,7 @@ def test_auth_http_basic( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -105,14 +106,14 @@ def test_auth_http_basic_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP basic authentication @@ -148,7 +149,7 @@ def test_auth_http_basic_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -168,14 +169,14 @@ def test_auth_http_basic_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP basic authentication @@ -211,7 +212,7 @@ def test_auth_http_basic_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -231,15 +232,15 @@ def _test_auth_http_basic_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -260,7 +261,7 @@ def _test_auth_http_basic_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_auth' ] @@ -288,14 +289,14 @@ def test_auth_http_bearer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """To test HTTP bearer authentication @@ -331,7 +332,7 @@ def test_auth_http_bearer( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -351,14 +352,14 @@ def test_auth_http_bearer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """To test HTTP bearer authentication @@ -394,7 +395,7 @@ def test_auth_http_bearer_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -414,14 +415,14 @@ def test_auth_http_bearer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test HTTP bearer authentication @@ -457,7 +458,7 @@ def test_auth_http_bearer_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -477,15 +478,15 @@ def _test_auth_http_bearer_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -506,7 +507,7 @@ def _test_auth_http_bearer_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_bearer_auth' ] diff --git a/samples/client/echo_api/python/openapi_client/api/body_api.py b/samples/client/echo_api/python/openapi_client/api/body_api.py index 247e4ed81d55..f70ceeffddc5 100644 --- a/samples/client/echo_api/python/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python/openapi_client/api/body_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictStr from typing import Any, Dict, List, Optional, Tuple, Union @@ -47,14 +48,14 @@ def test_binary_gif( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """Test binary (gif) response body @@ -90,7 +91,7 @@ def test_binary_gif( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -110,14 +111,14 @@ def test_binary_gif_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """Test binary (gif) response body @@ -153,7 +154,7 @@ def test_binary_gif_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -173,14 +174,14 @@ def test_binary_gif_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test binary (gif) response body @@ -216,7 +217,7 @@ def test_binary_gif_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -236,15 +237,15 @@ def _test_binary_gif_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -265,7 +266,7 @@ def _test_binary_gif_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -293,14 +294,14 @@ def test_body_application_octetstream_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test body parameter(s) @@ -339,7 +340,7 @@ def test_body_application_octetstream_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -360,14 +361,14 @@ def test_body_application_octetstream_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test body parameter(s) @@ -406,7 +407,7 @@ def test_body_application_octetstream_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -427,14 +428,14 @@ def test_body_application_octetstream_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -473,7 +474,7 @@ def test_body_application_octetstream_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -494,15 +495,15 @@ def _test_body_application_octetstream_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -546,7 +547,7 @@ def _test_body_application_octetstream_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ def test_body_multipart_formdata_array_of_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test array of binary in multipart mime @@ -620,7 +621,7 @@ def test_body_multipart_formdata_array_of_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -641,14 +642,14 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test array of binary in multipart mime @@ -687,7 +688,7 @@ def test_body_multipart_formdata_array_of_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -708,14 +709,14 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test array of binary in multipart mime @@ -754,7 +755,7 @@ def test_body_multipart_formdata_array_of_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -775,16 +776,16 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'files': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -820,7 +821,7 @@ def _test_body_multipart_formdata_array_of_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -848,14 +849,14 @@ def test_body_multipart_formdata_single_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test single binary in multipart mime @@ -894,7 +895,7 @@ def test_body_multipart_formdata_single_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -915,14 +916,14 @@ def test_body_multipart_formdata_single_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test single binary in multipart mime @@ -961,7 +962,7 @@ def test_body_multipart_formdata_single_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -982,14 +983,14 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test single binary in multipart mime @@ -1028,7 +1029,7 @@ def test_body_multipart_formdata_single_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1049,15 +1050,15 @@ def _test_body_multipart_formdata_single_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1093,7 +1094,7 @@ def _test_body_multipart_formdata_single_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1121,14 +1122,14 @@ def test_echo_body_all_of_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1167,7 +1168,7 @@ def test_echo_body_all_of_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1188,14 +1189,14 @@ def test_echo_body_all_of_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1234,7 +1235,7 @@ def test_echo_body_all_of_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1255,14 +1256,14 @@ def test_echo_body_all_of_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1301,7 +1302,7 @@ def test_echo_body_all_of_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1322,15 +1323,15 @@ def _test_echo_body_all_of_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1366,7 +1367,7 @@ def _test_echo_body_all_of_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1394,14 +1395,14 @@ def test_echo_body_free_form_object_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test free form object @@ -1440,7 +1441,7 @@ def test_echo_body_free_form_object_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1461,14 +1462,14 @@ def test_echo_body_free_form_object_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test free form object @@ -1507,7 +1508,7 @@ def test_echo_body_free_form_object_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1528,14 +1529,14 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test free form object @@ -1574,7 +1575,7 @@ def test_echo_body_free_form_object_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1595,15 +1596,15 @@ def _test_echo_body_free_form_object_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1639,7 +1640,7 @@ def _test_echo_body_free_form_object_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1667,14 +1668,14 @@ def test_echo_body_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Test body parameter(s) @@ -1713,7 +1714,7 @@ def test_echo_body_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1734,14 +1735,14 @@ def test_echo_body_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Test body parameter(s) @@ -1780,7 +1781,7 @@ def test_echo_body_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1801,14 +1802,14 @@ def test_echo_body_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test body parameter(s) @@ -1847,7 +1848,7 @@ def test_echo_body_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", } response_data = self.api_client.call_api( @@ -1868,15 +1869,15 @@ def _test_echo_body_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1912,7 +1913,7 @@ def _test_echo_body_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1940,14 +1941,14 @@ def test_echo_body_pet_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty response body @@ -1986,7 +1987,7 @@ def test_echo_body_pet_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2007,14 +2008,14 @@ def test_echo_body_pet_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty response body @@ -2053,7 +2054,7 @@ def test_echo_body_pet_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2074,14 +2075,14 @@ def test_echo_body_pet_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty response body @@ -2120,7 +2121,7 @@ def test_echo_body_pet_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2141,15 +2142,15 @@ def _test_echo_body_pet_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2185,7 +2186,7 @@ def _test_echo_body_pet_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2213,14 +2214,14 @@ def test_echo_body_string_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> StringEnumRef: """Test string enum response body @@ -2259,7 +2260,7 @@ def test_echo_body_string_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2280,14 +2281,14 @@ def test_echo_body_string_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[StringEnumRef]: """Test string enum response body @@ -2326,7 +2327,7 @@ def test_echo_body_string_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2347,14 +2348,14 @@ def test_echo_body_string_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test string enum response body @@ -2393,7 +2394,7 @@ def test_echo_body_string_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "StringEnumRef", } response_data = self.api_client.call_api( @@ -2414,15 +2415,15 @@ def _test_echo_body_string_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2458,7 +2459,7 @@ def _test_echo_body_string_enum_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2486,14 +2487,14 @@ def test_echo_body_tag_response_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test empty json (request body) @@ -2532,7 +2533,7 @@ def test_echo_body_tag_response_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2553,14 +2554,14 @@ def test_echo_body_tag_response_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test empty json (request body) @@ -2599,7 +2600,7 @@ def test_echo_body_tag_response_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2620,14 +2621,14 @@ def test_echo_body_tag_response_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test empty json (request body) @@ -2666,7 +2667,7 @@ def test_echo_body_tag_response_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2687,15 +2688,15 @@ def _test_echo_body_tag_response_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2731,7 +2732,7 @@ def _test_echo_body_tag_response_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/form_api.py b/samples/client/echo_api/python/openapi_client/api/form_api.py index c247557197d0..19a216188386 100644 --- a/samples/client/echo_api/python/openapi_client/api/form_api.py +++ b/samples/client/echo_api/python/openapi_client/api/form_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictBool, StrictInt, StrictStr from typing import Optional @@ -47,14 +48,14 @@ def test_form_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) @@ -99,7 +100,7 @@ def test_form_integer_boolean_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -122,14 +123,14 @@ def test_form_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) @@ -174,7 +175,7 @@ def test_form_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -197,14 +198,14 @@ def test_form_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) @@ -249,7 +250,7 @@ def test_form_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -272,15 +273,15 @@ def _test_form_integer_boolean_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -320,7 +321,7 @@ def _test_form_integer_boolean_string_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -348,14 +349,14 @@ def test_form_object_multipart( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for multipart schema @@ -394,7 +395,7 @@ def test_form_object_multipart( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -415,14 +416,14 @@ def test_form_object_multipart_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for multipart schema @@ -461,7 +462,7 @@ def test_form_object_multipart_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -482,14 +483,14 @@ def test_form_object_multipart_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for multipart schema @@ -528,7 +529,7 @@ def test_form_object_multipart_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -549,15 +550,15 @@ def _test_form_object_multipart_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -593,7 +594,7 @@ def _test_form_object_multipart_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -626,14 +627,14 @@ def test_form_oneof( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test form parameter(s) for oneOf schema @@ -687,7 +688,7 @@ def test_form_oneof( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -713,14 +714,14 @@ def test_form_oneof_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test form parameter(s) for oneOf schema @@ -774,7 +775,7 @@ def test_form_oneof_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -800,14 +801,14 @@ def test_form_oneof_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test form parameter(s) for oneOf schema @@ -861,7 +862,7 @@ def test_form_oneof_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -887,15 +888,15 @@ def _test_form_oneof_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -941,7 +942,7 @@ def _test_form_oneof_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/header_api.py b/samples/client/echo_api/python/openapi_client/api/header_api.py index e39172db7909..85e88dead22d 100644 --- a/samples/client/echo_api/python/openapi_client/api/header_api.py +++ b/samples/client/echo_api/python/openapi_client/api/header_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictBool, StrictInt, StrictStr, field_validator from typing import Optional @@ -49,14 +50,14 @@ def test_header_integer_boolean_string_enums( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test header parameter(s) @@ -107,7 +108,7 @@ def test_header_integer_boolean_string_enums( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -132,14 +133,14 @@ def test_header_integer_boolean_string_enums_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test header parameter(s) @@ -190,7 +191,7 @@ def test_header_integer_boolean_string_enums_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -215,14 +216,14 @@ def test_header_integer_boolean_string_enums_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test header parameter(s) @@ -273,7 +274,7 @@ def test_header_integer_boolean_string_enums_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -298,15 +299,15 @@ def _test_header_integer_boolean_string_enums_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -337,7 +338,7 @@ def _test_header_integer_boolean_string_enums_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/path_api.py b/samples/client/echo_api/python/openapi_client/api/path_api.py index d796a43dd397..c34887fda5d3 100644 --- a/samples/client/echo_api/python/openapi_client/api/path_api.py +++ b/samples/client/echo_api/python/openapi_client/api/path_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import StrictInt, StrictStr, field_validator from openapi_client.models.string_enum_ref import StringEnumRef @@ -47,14 +48,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test path parameter(s) @@ -102,7 +103,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -126,14 +127,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test path parameter(s) @@ -181,7 +182,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -205,14 +206,14 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test path parameter(s) @@ -260,7 +261,7 @@ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_e _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -284,15 +285,15 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -321,7 +322,7 @@ def _tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_ # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api/query_api.py b/samples/client/echo_api/python/openapi_client/api/query_api.py index 3bfa04388622..da67b25c2b35 100644 --- a/samples/client/echo_api/python/openapi_client/api/query_api.py +++ b/samples/client/echo_api/python/openapi_client/api/query_api.py @@ -14,7 +14,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import StrictBool, StrictInt, StrictStr, field_validator @@ -49,14 +50,14 @@ def test_enum_ref_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -98,7 +99,7 @@ def test_enum_ref_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -120,14 +121,14 @@ def test_enum_ref_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -169,7 +170,7 @@ def test_enum_ref_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -191,14 +192,14 @@ def test_enum_ref_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -240,7 +241,7 @@ def test_enum_ref_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -262,15 +263,15 @@ def _test_enum_ref_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -299,7 +300,7 @@ def _test_enum_ref_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -329,14 +330,14 @@ def test_query_datetime_date_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -381,7 +382,7 @@ def test_query_datetime_date_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -404,14 +405,14 @@ def test_query_datetime_date_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -456,7 +457,7 @@ def test_query_datetime_date_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -479,14 +480,14 @@ def test_query_datetime_date_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -531,7 +532,7 @@ def test_query_datetime_date_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -554,15 +555,15 @@ def _test_query_datetime_date_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -613,7 +614,7 @@ def _test_query_datetime_date_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -643,14 +644,14 @@ def test_query_integer_boolean_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -695,7 +696,7 @@ def test_query_integer_boolean_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -718,14 +719,14 @@ def test_query_integer_boolean_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -770,7 +771,7 @@ def test_query_integer_boolean_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -793,14 +794,14 @@ def test_query_integer_boolean_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -845,7 +846,7 @@ def test_query_integer_boolean_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -868,15 +869,15 @@ def _test_query_integer_boolean_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -909,7 +910,7 @@ def _test_query_integer_boolean_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -937,14 +938,14 @@ def test_query_style_deep_object_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -983,7 +984,7 @@ def test_query_style_deep_object_explode_true_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1004,14 +1005,14 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1050,7 +1051,7 @@ def test_query_style_deep_object_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1071,14 +1072,14 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1117,7 +1118,7 @@ def test_query_style_deep_object_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1138,15 +1139,15 @@ def _test_query_style_deep_object_explode_true_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1171,7 +1172,7 @@ def _test_query_style_deep_object_explode_true_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1199,14 +1200,14 @@ def test_query_style_deep_object_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1245,7 +1246,7 @@ def test_query_style_deep_object_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1266,14 +1267,14 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1312,7 +1313,7 @@ def test_query_style_deep_object_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1333,14 +1334,14 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1379,7 +1380,7 @@ def test_query_style_deep_object_explode_true_object_all_of_without_preload_cont _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1400,15 +1401,15 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1433,7 +1434,7 @@ def _test_query_style_deep_object_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1461,14 +1462,14 @@ def test_query_style_form_explode_false_array_integer( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1507,7 +1508,7 @@ def test_query_style_form_explode_false_array_integer( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1528,14 +1529,14 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1574,7 +1575,7 @@ def test_query_style_form_explode_false_array_integer_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1595,14 +1596,14 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1641,7 +1642,7 @@ def test_query_style_form_explode_false_array_integer_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1662,16 +1663,16 @@ def _test_query_style_form_explode_false_array_integer_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'query_object': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1696,7 +1697,7 @@ def _test_query_style_form_explode_false_array_integer_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1724,14 +1725,14 @@ def test_query_style_form_explode_false_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -1770,7 +1771,7 @@ def test_query_style_form_explode_false_array_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1791,14 +1792,14 @@ def test_query_style_form_explode_false_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -1837,7 +1838,7 @@ def test_query_style_form_explode_false_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1858,14 +1859,14 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -1904,7 +1905,7 @@ def test_query_style_form_explode_false_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -1925,16 +1926,16 @@ def _test_query_style_form_explode_false_array_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'query_object': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1959,7 +1960,7 @@ def _test_query_style_form_explode_false_array_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1987,14 +1988,14 @@ def test_query_style_form_explode_true_array_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2033,7 +2034,7 @@ def test_query_style_form_explode_true_array_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2054,14 +2055,14 @@ def test_query_style_form_explode_true_array_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2100,7 +2101,7 @@ def test_query_style_form_explode_true_array_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2121,14 +2122,14 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2167,7 +2168,7 @@ def test_query_style_form_explode_true_array_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2188,15 +2189,15 @@ def _test_query_style_form_explode_true_array_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2221,7 +2222,7 @@ def _test_query_style_form_explode_true_array_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2249,14 +2250,14 @@ def test_query_style_form_explode_true_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2295,7 +2296,7 @@ def test_query_style_form_explode_true_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2316,14 +2317,14 @@ def test_query_style_form_explode_true_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2362,7 +2363,7 @@ def test_query_style_form_explode_true_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2383,14 +2384,14 @@ def test_query_style_form_explode_true_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2429,7 +2430,7 @@ def test_query_style_form_explode_true_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2450,15 +2451,15 @@ def _test_query_style_form_explode_true_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2483,7 +2484,7 @@ def _test_query_style_form_explode_true_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2511,14 +2512,14 @@ def test_query_style_form_explode_true_object_all_of( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2557,7 +2558,7 @@ def test_query_style_form_explode_true_object_all_of( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2578,14 +2579,14 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2624,7 +2625,7 @@ def test_query_style_form_explode_true_object_all_of_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2645,14 +2646,14 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2691,7 +2692,7 @@ def test_query_style_form_explode_true_object_all_of_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2712,15 +2713,15 @@ def _test_query_style_form_explode_true_object_all_of_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2745,7 +2746,7 @@ def _test_query_style_form_explode_true_object_all_of_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2774,14 +2775,14 @@ def test_query_style_json_serialization_object( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Test query parameter(s) @@ -2823,7 +2824,7 @@ def test_query_style_json_serialization_object( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2845,14 +2846,14 @@ def test_query_style_json_serialization_object_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Test query parameter(s) @@ -2894,7 +2895,7 @@ def test_query_style_json_serialization_object_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2916,14 +2917,14 @@ def test_query_style_json_serialization_object_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Test query parameter(s) @@ -2965,7 +2966,7 @@ def test_query_style_json_serialization_object_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2987,16 +2988,16 @@ def _test_query_style_json_serialization_object_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'json_serialized_object_array_ref_string_query': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3025,7 +3026,7 @@ def _test_query_style_json_serialization_object_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/client/echo_api/python/openapi_client/api_client.py b/samples/client/echo_api/python/openapi_client/api_client.py index 94ee3de89422..b89f71f6aba8 100644 --- a/samples/client/echo_api/python/openapi_client/api_client.py +++ b/samples/client/echo_api/python/openapi_client/api_client.py @@ -25,7 +25,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from openapi_client.configuration import Configuration @@ -42,7 +42,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -287,7 +287,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -436,16 +436,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -478,7 +478,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -508,7 +508,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -542,7 +542,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -575,10 +575,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -593,7 +593,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/client/echo_api/python/openapi_client/configuration.py b/samples/client/echo_api/python/openapi_client/configuration.py index c4c87aadc00c..a43f82fc576d 100644 --- a/samples/client/echo_api/python/openapi_client/configuration.py +++ b/samples/client/echo_api/python/openapi_client/configuration.py @@ -19,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -128,13 +128,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -144,11 +144,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -196,15 +196,15 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -341,7 +341,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -547,7 +547,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -563,7 +563,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/client/echo_api/python/openapi_client/models/bird.py b/samples/client/echo_api/python/openapi_client/models/bird.py index 9982ad8c720a..c18d3eb9dfd7 100644 --- a/samples/client/echo_api/python/openapi_client/models/bird.py +++ b/samples/client/echo_api/python/openapi_client/models/bird.py @@ -34,7 +34,7 @@ class Bird(BaseModel): """ # noqa: E501 size: Optional[StrictStr] = None color: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["size", "color"] + __properties: ClassVar[List[str]] = ["size", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Bird(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/category.py b/samples/client/echo_api/python/openapi_client/models/category.py index df32cfd8cdfa..973750428298 100644 --- a/samples/client/echo_api/python/openapi_client/models/category.py +++ b/samples/client/echo_api/python/openapi_client/models/category.py @@ -34,7 +34,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/data_query.py b/samples/client/echo_api/python/openapi_client/models/data_query.py index 86451a3de490..6658f9691359 100644 --- a/samples/client/echo_api/python/openapi_client/models/data_query.py +++ b/samples/client/echo_api/python/openapi_client/models/data_query.py @@ -37,7 +37,7 @@ class DataQuery(Query): suffix: Optional[StrictStr] = Field(default=None, description="test suffix") text: Optional[StrictStr] = Field(default=None, description="Some text containing white spaces") var_date: Optional[datetime] = Field(default=None, description="A date", alias="date") - __properties: ClassVar[list[str]] = ["id", "outcomes", "suffix", "text", "date"] + __properties: ClassVar[List[str]] = ["id", "outcomes", "suffix", "text", "date"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class DataQuery(Query): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/default_value.py b/samples/client/echo_api/python/openapi_client/models/default_value.py index b77066ea5dbd..d018b8927a6d 100644 --- a/samples/client/echo_api/python/openapi_client/models/default_value.py +++ b/samples/client/echo_api/python/openapi_client/models/default_value.py @@ -34,7 +34,7 @@ class DefaultValue(BaseModel): to test the default value of properties """ # noqa: E501 array_string_enum_ref_default: Optional[List[StringEnumRef]] = None - array_string_enum_default: Optional[list[Literal['success', 'failure', 'unclassified']]] = Field( + array_string_enum_default: Optional[List[Literal['success', 'failure', 'unclassified']]] = Field( None, description="array_string_enum_default of the DefaultValue" ) @@ -44,7 +44,7 @@ class DefaultValue(BaseModel): array_string_nullable: Optional[List[StrictStr]] = None array_string_extension_nullable: Optional[List[StrictStr]] = None string_nullable: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] + __properties: ClassVar[List[str]] = ["array_string_enum_ref_default", "array_string_enum_default", "array_string_default", "array_integer_default", "array_string", "array_string_nullable", "array_string_extension_nullable", "string_nullable"] @field_validator('array_string_enum_default') def array_string_enum_default_validate_enum(cls, value): @@ -65,8 +65,8 @@ def array_string_enum_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py index 550c6db4baac..d35647cbc4f5 100644 --- a/samples/client/echo_api/python/openapi_client/models/number_properties_only.py +++ b/samples/client/echo_api/python/openapi_client/models/number_properties_only.py @@ -36,7 +36,7 @@ class NumberPropertiesOnly(BaseModel): number: Optional[Union[StrictFloat, StrictInt]] = None var_float: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="float") double: Optional[Union[Annotated[float, Field(le=50.2, strict=True, ge=0.8)], Annotated[int, Field(le=50, strict=True, ge=1)]]] = None - __properties: ClassVar[list[str]] = ["number", "float", "double"] + __properties: ClassVar[List[str]] = ["number", "float", "double"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class NumberPropertiesOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/pet.py b/samples/client/echo_api/python/openapi_client/models/pet.py index b77e9a8a8d79..5a51a7246ffb 100644 --- a/samples/client/echo_api/python/openapi_client/models/pet.py +++ b/samples/client/echo_api/python/openapi_client/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] + __properties: ClassVar[List[str]] = ["id", "name", "category", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/query.py b/samples/client/echo_api/python/openapi_client/models/query.py index a9030f64deeb..6f9a8b33f47b 100644 --- a/samples/client/echo_api/python/openapi_client/models/query.py +++ b/samples/client/echo_api/python/openapi_client/models/query.py @@ -33,11 +33,11 @@ class Query(BaseModel): Query """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, description="Query") - outcomes: Optional[list[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( + outcomes: Optional[List[Literal['SUCCESS', 'FAILURE', 'SKIPPED']]] = Field( None, description="outcomes of the Query" ) - __properties: ClassVar[list[str]] = ["id", "outcomes"] + __properties: ClassVar[List[str]] = ["id", "outcomes"] @field_validator('outcomes') def outcomes_validate_enum(cls, value): @@ -58,8 +58,8 @@ def outcomes_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/tag.py b/samples/client/echo_api/python/openapi_client/models/tag.py index a7d8a798c442..905c39f0d1d2 100644 --- a/samples/client/echo_api/python/openapi_client/models/tag.py +++ b/samples/client/echo_api/python/openapi_client/models/tag.py @@ -34,7 +34,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py index 651c474e24d6..5401bd990d9d 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py +++ b/samples/client/echo_api/python/openapi_client/models/test_form_object_multipart_request_marker.py @@ -33,7 +33,7 @@ class TestFormObjectMultipartRequestMarker(BaseModel): TestFormObjectMultipartRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestFormObjectMultipartRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py index e197eed27dd5..eb2a6c6201f9 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.py @@ -36,7 +36,7 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod color: Optional[StrictStr] = None id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["size", "color", "id", "name"] + __properties: ClassVar[List[str]] = ["size", "color", "id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(BaseMod @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py index 6bb448a448f6..fb0c89eb00cc 100644 --- a/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py +++ b/samples/client/echo_api/python/openapi_client/models/test_query_style_form_explode_true_array_string_query_object_parameter.py @@ -33,7 +33,7 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter """ # noqa: E501 values: Optional[List[StrictStr]] = None - __properties: ClassVar[list[str]] = ["values"] + __properties: ClassVar[List[str]] = ["values"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py index 9d400f72eb9a..0d456a35c3a4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/another_fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ async def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -90,7 +91,7 @@ async def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -111,14 +112,14 @@ async def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -157,7 +158,7 @@ async def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -178,14 +179,14 @@ async def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -224,7 +225,7 @@ async def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -245,15 +246,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py index e6b8039808a5..4bca18df4343 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/default_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -41,14 +42,14 @@ async def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -83,7 +84,7 @@ async def foo_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -102,14 +103,14 @@ async def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -144,7 +145,7 @@ async def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -163,14 +164,14 @@ async def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -205,7 +206,7 @@ async def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -224,15 +225,15 @@ def _foo_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -253,7 +254,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py index 0055783b2166..04b92f2c140d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator @@ -60,14 +61,14 @@ async def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -105,7 +106,7 @@ async def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -126,14 +127,14 @@ async def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -171,7 +172,7 @@ async def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -192,14 +193,14 @@ async def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -237,7 +238,7 @@ async def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -258,15 +259,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -295,7 +296,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -323,14 +324,14 @@ async def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -368,7 +369,7 @@ async def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -389,14 +390,14 @@ async def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -434,7 +435,7 @@ async def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -455,14 +456,14 @@ async def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -500,7 +501,7 @@ async def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -521,15 +522,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +548,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ async def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -616,7 +617,7 @@ async def fake_health_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -636,14 +637,14 @@ async def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -678,7 +679,7 @@ async def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -698,14 +699,14 @@ async def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -740,7 +741,7 @@ async def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -760,15 +761,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -789,7 +790,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -819,14 +820,14 @@ async def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -870,7 +871,7 @@ async def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -893,14 +894,14 @@ async def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -944,7 +945,7 @@ async def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -967,14 +968,14 @@ async def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1018,7 +1019,7 @@ async def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -1041,15 +1042,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1085,7 +1086,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_signature_test' ] @@ -1114,14 +1115,14 @@ async def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1160,7 +1161,7 @@ async def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1181,14 +1182,14 @@ async def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1227,7 +1228,7 @@ async def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1248,14 +1249,14 @@ async def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1294,7 +1295,7 @@ async def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1315,15 +1316,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1359,7 +1360,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1387,14 +1388,14 @@ async def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1433,7 +1434,7 @@ async def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1454,14 +1455,14 @@ async def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1500,7 +1501,7 @@ async def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1521,14 +1522,14 @@ async def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1567,7 +1568,7 @@ async def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1588,15 +1589,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1632,7 +1633,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1660,14 +1661,14 @@ async def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1706,7 +1707,7 @@ async def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1727,14 +1728,14 @@ async def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1773,7 +1774,7 @@ async def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1794,14 +1795,14 @@ async def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1840,7 +1841,7 @@ async def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1861,15 +1862,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1905,7 +1906,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1933,14 +1934,14 @@ async def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1979,7 +1980,7 @@ async def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2000,14 +2001,14 @@ async def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2046,7 +2047,7 @@ async def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2067,14 +2068,14 @@ async def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2113,7 +2114,7 @@ async def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2134,15 +2135,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2178,7 +2179,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2207,14 +2208,14 @@ async def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2256,7 +2257,7 @@ async def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2278,14 +2279,14 @@ async def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2327,7 +2328,7 @@ async def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2349,14 +2350,14 @@ async def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2398,7 +2399,7 @@ async def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2420,16 +2421,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'param': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2469,7 +2470,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2496,14 +2497,14 @@ async def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2538,7 +2539,7 @@ async def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2558,14 +2559,14 @@ async def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2600,7 +2601,7 @@ async def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2620,14 +2621,14 @@ async def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2662,7 +2663,7 @@ async def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2682,15 +2683,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2711,7 +2712,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2738,14 +2739,14 @@ async def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2780,7 +2781,7 @@ async def fake_return_boolean( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2800,14 +2801,14 @@ async def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2842,7 +2843,7 @@ async def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2862,14 +2863,14 @@ async def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2904,7 +2905,7 @@ async def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2924,15 +2925,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2953,7 +2954,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2980,14 +2981,14 @@ async def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3022,7 +3023,7 @@ async def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3042,14 +3043,14 @@ async def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3084,7 +3085,7 @@ async def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3104,14 +3105,14 @@ async def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3146,7 +3147,7 @@ async def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3166,15 +3167,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3195,7 +3196,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3222,14 +3223,14 @@ async def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3264,7 +3265,7 @@ async def fake_return_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3284,14 +3285,14 @@ async def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3326,7 +3327,7 @@ async def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3346,14 +3347,14 @@ async def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3388,7 +3389,7 @@ async def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3408,15 +3409,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3437,7 +3438,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3464,14 +3465,14 @@ async def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3506,7 +3507,7 @@ async def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3526,14 +3527,14 @@ async def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3568,7 +3569,7 @@ async def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3588,14 +3589,14 @@ async def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3630,7 +3631,7 @@ async def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3650,15 +3651,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3679,7 +3680,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3706,14 +3707,14 @@ async def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3748,7 +3749,7 @@ async def fake_return_float( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3768,14 +3769,14 @@ async def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3810,7 +3811,7 @@ async def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3830,14 +3831,14 @@ async def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3872,7 +3873,7 @@ async def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3892,15 +3893,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3921,7 +3922,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3948,14 +3949,14 @@ async def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3990,7 +3991,7 @@ async def fake_return_int( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4010,14 +4011,14 @@ async def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4052,7 +4053,7 @@ async def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4072,14 +4073,14 @@ async def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4114,7 +4115,7 @@ async def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4134,15 +4135,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4163,7 +4164,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4190,14 +4191,14 @@ async def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4232,7 +4233,7 @@ async def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4252,14 +4253,14 @@ async def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4294,7 +4295,7 @@ async def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4314,14 +4315,14 @@ async def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4356,7 +4357,7 @@ async def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4376,15 +4377,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4405,7 +4406,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4432,14 +4433,14 @@ async def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4474,7 +4475,7 @@ async def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4494,14 +4495,14 @@ async def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4536,7 +4537,7 @@ async def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4556,14 +4557,14 @@ async def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4598,7 +4599,7 @@ async def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4618,15 +4619,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4647,7 +4648,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4674,14 +4675,14 @@ async def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4716,7 +4717,7 @@ async def fake_return_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4736,14 +4737,14 @@ async def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4778,7 +4779,7 @@ async def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4798,14 +4799,14 @@ async def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4840,7 +4841,7 @@ async def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4860,15 +4861,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4889,7 +4890,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4917,14 +4918,14 @@ async def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4962,7 +4963,7 @@ async def fake_uuid_example( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -4983,14 +4984,14 @@ async def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5028,7 +5029,7 @@ async def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5049,14 +5050,14 @@ async def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5094,7 +5095,7 @@ async def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5115,15 +5116,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5141,7 +5142,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5169,14 +5170,14 @@ async def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5215,7 +5216,7 @@ async def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5236,14 +5237,14 @@ async def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5282,7 +5283,7 @@ async def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5303,14 +5304,14 @@ async def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5349,7 +5350,7 @@ async def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5370,15 +5371,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5407,7 +5408,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5435,14 +5436,14 @@ async def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5481,7 +5482,7 @@ async def test_body_with_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5502,14 +5503,14 @@ async def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5548,7 +5549,7 @@ async def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5569,14 +5570,14 @@ async def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5615,7 +5616,7 @@ async def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5636,15 +5637,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5681,7 +5682,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5709,14 +5710,14 @@ async def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5755,7 +5756,7 @@ async def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5776,14 +5777,14 @@ async def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5822,7 +5823,7 @@ async def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5843,14 +5844,14 @@ async def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5889,7 +5890,7 @@ async def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5910,15 +5911,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5947,7 +5948,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5976,14 +5977,14 @@ async def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6024,7 +6025,7 @@ async def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6046,14 +6047,14 @@ async def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6094,7 +6095,7 @@ async def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6116,14 +6117,14 @@ async def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6164,7 +6165,7 @@ async def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6186,15 +6187,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6227,7 +6228,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6255,14 +6256,14 @@ async def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6301,7 +6302,7 @@ async def test_client_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6322,14 +6323,14 @@ async def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6368,7 +6369,7 @@ async def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6389,14 +6390,14 @@ async def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6435,7 +6436,7 @@ async def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6456,15 +6457,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6500,7 +6501,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6529,14 +6530,14 @@ async def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6577,7 +6578,7 @@ async def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6599,14 +6600,14 @@ async def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6647,7 +6648,7 @@ async def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6669,14 +6670,14 @@ async def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6717,7 +6718,7 @@ async def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6739,15 +6740,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6778,7 +6779,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6805,14 +6806,14 @@ async def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6848,7 +6849,7 @@ async def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6869,14 +6870,14 @@ async def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6912,7 +6913,7 @@ async def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6933,14 +6934,14 @@ async def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6976,7 +6977,7 @@ async def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6997,15 +6998,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7026,7 +7027,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7068,14 +7069,14 @@ async def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7156,7 +7157,7 @@ async def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7192,14 +7193,14 @@ async def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7280,7 +7281,7 @@ async def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7316,14 +7317,14 @@ async def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7404,7 +7405,7 @@ async def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7440,15 +7441,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7505,7 +7506,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_basic_test' ] @@ -7533,14 +7534,14 @@ async def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7575,7 +7576,7 @@ async def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7597,14 +7598,14 @@ async def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7639,7 +7640,7 @@ async def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7661,14 +7662,14 @@ async def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7703,7 +7704,7 @@ async def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7725,15 +7726,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7754,7 +7755,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7787,14 +7788,14 @@ async def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7848,7 +7849,7 @@ async def test_group_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7874,14 +7875,14 @@ async def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7935,7 +7936,7 @@ async def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7961,14 +7962,14 @@ async def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8022,7 +8023,7 @@ async def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -8048,15 +8049,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8090,7 +8091,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'bearer_test' ] @@ -8119,14 +8120,14 @@ async def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8165,7 +8166,7 @@ async def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8186,14 +8187,14 @@ async def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8232,7 +8233,7 @@ async def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8253,14 +8254,14 @@ async def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8299,7 +8300,7 @@ async def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8320,15 +8321,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8357,7 +8358,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8385,14 +8386,14 @@ async def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8431,7 +8432,7 @@ async def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8452,14 +8453,14 @@ async def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8498,7 +8499,7 @@ async def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8519,14 +8520,14 @@ async def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8565,7 +8566,7 @@ async def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8586,15 +8587,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8623,7 +8624,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8652,14 +8653,14 @@ async def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8701,7 +8702,7 @@ async def test_json_form_data( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8723,14 +8724,14 @@ async def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8772,7 +8773,7 @@ async def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8794,14 +8795,14 @@ async def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8843,7 +8844,7 @@ async def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8865,15 +8866,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8904,7 +8905,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8932,14 +8933,14 @@ async def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8977,7 +8978,7 @@ async def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8998,14 +8999,14 @@ async def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9043,7 +9044,7 @@ async def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9064,14 +9065,14 @@ async def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9109,7 +9110,7 @@ async def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9130,15 +9131,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9167,7 +9168,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9201,14 +9202,14 @@ async def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9265,7 +9266,7 @@ async def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9292,14 +9293,14 @@ async def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9356,7 +9357,7 @@ async def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9383,14 +9384,14 @@ async def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9447,7 +9448,7 @@ async def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9474,7 +9475,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9482,12 +9483,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9529,7 +9530,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9557,14 +9558,14 @@ async def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9603,7 +9604,7 @@ async def test_string_map_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9624,14 +9625,14 @@ async def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9670,7 +9671,7 @@ async def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9691,14 +9692,14 @@ async def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9737,7 +9738,7 @@ async def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9758,15 +9759,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9795,7 +9796,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9825,14 +9826,14 @@ async def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9877,7 +9878,7 @@ async def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9900,14 +9901,14 @@ async def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9952,7 +9953,7 @@ async def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9975,14 +9976,14 @@ async def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10027,7 +10028,7 @@ async def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -10050,15 +10051,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10098,7 +10099,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py index 21a312243695..53fb3b184e87 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_classname_tags123_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ async def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -90,7 +91,7 @@ async def test_classname( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -111,14 +112,14 @@ async def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -157,7 +158,7 @@ async def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -178,14 +179,14 @@ async def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -224,7 +225,7 @@ async def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -245,15 +246,15 @@ def _test_classname_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py index 276ddaf96a25..bf38df779595 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/import_test_datetime_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import datetime @@ -41,14 +42,14 @@ async def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -83,7 +84,7 @@ async def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -103,14 +104,14 @@ async def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -145,7 +146,7 @@ async def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -165,14 +166,14 @@ async def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -207,7 +208,7 @@ async def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -227,15 +228,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -256,7 +257,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py index f020789ead77..f4058216394b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/pet_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -46,14 +47,14 @@ async def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -92,7 +93,7 @@ async def add_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -114,14 +115,14 @@ async def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -160,7 +161,7 @@ async def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -182,14 +183,14 @@ async def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -228,7 +229,7 @@ async def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -250,15 +251,15 @@ def _add_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -288,7 +289,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -319,14 +320,14 @@ async def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -368,7 +369,7 @@ async def delete_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -391,14 +392,14 @@ async def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -440,7 +441,7 @@ async def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -463,14 +464,14 @@ async def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -512,7 +513,7 @@ async def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -535,15 +536,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -561,7 +562,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -590,14 +591,14 @@ async def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -636,7 +637,7 @@ async def find_pets_by_status( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -658,14 +659,14 @@ async def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -704,7 +705,7 @@ async def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -726,14 +727,14 @@ async def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -772,7 +773,7 @@ async def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -794,16 +795,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'status': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -829,7 +830,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -859,14 +860,14 @@ async def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -906,7 +907,7 @@ async def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -928,14 +929,14 @@ async def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -975,7 +976,7 @@ async def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -997,14 +998,14 @@ async def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1044,7 +1045,7 @@ async def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1066,16 +1067,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'tags': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1101,7 +1102,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1131,14 +1132,14 @@ async def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1177,7 +1178,7 @@ async def get_pet_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1200,14 +1201,14 @@ async def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1246,7 +1247,7 @@ async def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1269,14 +1270,14 @@ async def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1315,7 +1316,7 @@ async def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1338,15 +1339,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1370,7 +1371,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -1399,14 +1400,14 @@ async def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1445,7 +1446,7 @@ async def update_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1469,14 +1470,14 @@ async def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1515,7 +1516,7 @@ async def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1539,14 +1540,14 @@ async def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1585,7 +1586,7 @@ async def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1609,15 +1610,15 @@ def _update_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1647,7 +1648,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1679,14 +1680,14 @@ async def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1731,7 +1732,7 @@ async def update_pet_with_form( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1755,14 +1756,14 @@ async def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1807,7 +1808,7 @@ async def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1831,14 +1832,14 @@ async def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1883,7 +1884,7 @@ async def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1907,15 +1908,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1948,7 +1949,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -1979,14 +1980,14 @@ async def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2031,7 +2032,7 @@ async def upload_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2054,14 +2055,14 @@ async def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2106,7 +2107,7 @@ async def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2129,14 +2130,14 @@ async def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2181,7 +2182,7 @@ async def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2204,15 +2205,15 @@ def _upload_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2252,7 +2253,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -2283,14 +2284,14 @@ async def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2335,7 +2336,7 @@ async def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2358,14 +2359,14 @@ async def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2410,7 +2411,7 @@ async def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2433,14 +2434,14 @@ async def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2485,7 +2486,7 @@ async def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2508,15 +2509,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2556,7 +2557,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py index ca23debdd037..48eedc258b3d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/store_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -45,14 +46,14 @@ async def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -91,7 +92,7 @@ async def delete_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -113,14 +114,14 @@ async def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -159,7 +160,7 @@ async def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -181,14 +182,14 @@ async def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -227,7 +228,7 @@ async def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -249,15 +250,15 @@ def _delete_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -273,7 +274,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -300,14 +301,14 @@ async def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -343,7 +344,7 @@ async def get_inventory( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -363,14 +364,14 @@ async def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -406,7 +407,7 @@ async def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -426,14 +427,14 @@ async def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -469,7 +470,7 @@ async def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -489,15 +490,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -518,7 +519,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -547,14 +548,14 @@ async def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -593,7 +594,7 @@ async def get_order_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -616,14 +617,14 @@ async def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -662,7 +663,7 @@ async def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -685,14 +686,14 @@ async def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -731,7 +732,7 @@ async def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -754,15 +755,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -786,7 +787,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -814,14 +815,14 @@ async def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -860,7 +861,7 @@ async def place_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -882,14 +883,14 @@ async def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -928,7 +929,7 @@ async def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -950,14 +951,14 @@ async def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -996,7 +997,7 @@ async def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1018,15 +1019,15 @@ def _place_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1063,7 +1064,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py index b904f4ebe22c..683dfadd5e3b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/user_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictStr from typing import List @@ -45,14 +46,14 @@ async def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -91,7 +92,7 @@ async def create_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -111,14 +112,14 @@ async def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -157,7 +158,7 @@ async def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -177,14 +178,14 @@ async def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -223,7 +224,7 @@ async def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -249,15 +250,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -286,7 +287,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -314,14 +315,14 @@ async def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -360,7 +361,7 @@ async def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -380,14 +381,14 @@ async def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -426,7 +427,7 @@ async def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -446,14 +447,14 @@ async def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -492,7 +493,7 @@ async def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -512,16 +513,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -550,7 +551,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -578,14 +579,14 @@ async def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -624,7 +625,7 @@ async def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -644,14 +645,14 @@ async def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -690,7 +691,7 @@ async def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -710,14 +711,14 @@ async def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -756,7 +757,7 @@ async def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -776,16 +777,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -814,7 +815,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -842,14 +843,14 @@ async def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -888,7 +889,7 @@ async def delete_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -910,14 +911,14 @@ async def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -956,7 +957,7 @@ async def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -978,14 +979,14 @@ async def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1024,7 +1025,7 @@ async def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1046,15 +1047,15 @@ def _delete_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1070,7 +1071,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1098,14 +1099,14 @@ async def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1144,7 +1145,7 @@ async def get_user_by_name( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1167,14 +1168,14 @@ async def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1213,7 +1214,7 @@ async def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1236,14 +1237,14 @@ async def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1282,7 +1283,7 @@ async def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1305,15 +1306,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1337,7 +1338,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1366,14 +1367,14 @@ async def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1415,7 +1416,7 @@ async def login_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1438,14 +1439,14 @@ async def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1487,7 +1488,7 @@ async def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1510,14 +1511,14 @@ async def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1559,7 +1560,7 @@ async def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1582,15 +1583,15 @@ def _login_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1620,7 +1621,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1647,14 +1648,14 @@ async def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1690,7 +1691,7 @@ async def logout_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1709,14 +1710,14 @@ async def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1752,7 +1753,7 @@ async def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1771,14 +1772,14 @@ async def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1814,7 +1815,7 @@ async def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1833,15 +1834,15 @@ def _logout_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1855,7 +1856,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1884,14 +1885,14 @@ async def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1933,7 +1934,7 @@ async def update_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1956,14 +1957,14 @@ async def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2005,7 +2006,7 @@ async def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2028,14 +2029,14 @@ async def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2077,7 +2078,7 @@ async def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2100,15 +2101,15 @@ def _update_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2139,7 +2140,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py index f214d4109692..44c7239cded3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -289,7 +289,7 @@ async def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -438,16 +438,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -480,7 +480,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -510,7 +510,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -544,7 +544,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -577,10 +577,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -595,7 +595,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py index b00dab9134a7..129093dbd35b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/configuration.py @@ -18,7 +18,7 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -34,7 +34,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -131,13 +131,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -147,11 +147,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -259,16 +259,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -406,7 +406,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -649,7 +649,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -702,7 +702,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py index e4860d83a3a2..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py index 8ddebcba91df..368dc3499f1d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_class.py @@ -33,7 +33,7 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] + __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py index 4426dc91ba3c..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py index e9cc738c41e1..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py index 65cb4ef65da2..15eabda3d922 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_super_model.py @@ -32,7 +32,7 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - __properties: ClassVar[list[str]] = ["_name"] + __properties: ClassVar[List[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py index 13a654098ceb..7e6a596b83df 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/all_of_with_single_ref.py @@ -34,7 +34,7 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - __properties: ClassVar[list[str]] = ["username", "SingleRefType"] + __properties: ClassVar[List[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py index e39c276224f5..8d5d174c0f37 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/animal.py @@ -39,7 +39,7 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - __properties: ClassVar[list[str]] = ["className", "color"] + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py index f817350224d6..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py index 796377e20aa4..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py index 9a9f44848efc..5f82feb6e2cc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_model.py @@ -33,7 +33,7 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - __properties: ClassVar[list[str]] = ["another_property"] + __properties: ClassVar[List[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py index 55cc5344436b..cc795c789425 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[float]]] = Field(default=None, alias="ArrayArrayNumber") - __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] + __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py index 02444ceb7546..a3aa532ef568 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[float]] = Field(default=None, alias="ArrayNumber") - __properties: ClassVar[list[str]] = ["ArrayNumber"] + __properties: ClassVar[List[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py index bb578ee0eb84..29dc2461a1ca 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/array_test.py @@ -37,7 +37,7 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[float]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py index 674367a16f20..341b3038a503 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/base_discriminator.py @@ -38,7 +38,7 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - __properties: ClassVar[list[str]] = ["_typeName"] + __properties: ClassVar[List[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py index 9376880841b2..c4a0ec1b97d4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/basque_pig.py @@ -33,7 +33,7 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - __properties: ClassVar[list[str]] = ["className", "color"] + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py index a6ad58c02154..80db24107d70 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/bathing.py @@ -42,7 +42,7 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py index e0adedf4ddc2..743cd99b2eef 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/capitalization.py @@ -37,7 +37,7 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py index 6f48cc9c244a..fcd75bdff2a0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/cat.py @@ -33,7 +33,7 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - __properties: ClassVar[list[str]] = ["className", "color", "declawed"] + __properties: ClassVar[List[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py index 66ac9311ddf3..fac99d598f00 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/category.py @@ -33,7 +33,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py index 6a07e6712238..7223a583ff1e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_all_of_ref.py @@ -33,7 +33,7 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] + __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py index 1ee597534aa3..99c83abfac01 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/circular_reference_model.py @@ -33,7 +33,7 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - __properties: ClassVar[list[str]] = ["size", "nested"] + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py index 5edb03876a7b..400461e02968 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/class_model.py @@ -32,7 +32,7 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - __properties: ClassVar[list[str]] = ["_class"] + __properties: ClassVar[List[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py index 1f843c808685..8c63c47da726 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/client.py @@ -32,7 +32,7 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["client"] + __properties: ClassVar[List[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py index 0e177f19497f..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py index 55b03577baa3..6ce833112163 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature.py @@ -39,7 +39,7 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - __properties: ClassVar[list[str]] = ["info", "type"] + __properties: ClassVar[List[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py index 7950cbbfa909..cb5f3d2187d3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/creature_info.py @@ -32,7 +32,7 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py index bbc6b2b14fe9..3a70faaccaed 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/danish_pig.py @@ -33,7 +33,7 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - __properties: ClassVar[list[str]] = ["className", "size"] + __properties: ClassVar[List[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py index 10607d6d2430..61a9f5fc6cdd 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/deprecated_object.py @@ -32,7 +32,7 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py index 9c8d433b1a88..cb3672f8eef9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_sub.py @@ -32,7 +32,7 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - __properties: ClassVar[list[str]] = ["elementType"] + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py index 7fc88262bf00..f0d823854f2e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/discriminator_all_of_super.py @@ -37,7 +37,7 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - __properties: ClassVar[list[str]] = ["elementType"] + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -50,12 +50,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -64,8 +64,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py index ecc649284b64..d430cd28394d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dog.py @@ -33,7 +33,7 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["className", "color", "breed"] + __properties: ClassVar[List[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py index 8fb0002b4d4c..77cf3d22668d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/dummy_model.py @@ -33,7 +33,7 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - __properties: ClassVar[list[str]] = ["category", "self_ref"] + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py index 4353916ea658..5c0c559a79b5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_arrays.py @@ -35,11 +35,11 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[list[Literal['fish', 'crab']]] = Field( + array_enum: Optional[List[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] + __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -70,8 +70,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -83,7 +83,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py index 8647c70a3ab7..e43bd99a9026 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_ref_with_default_value.py @@ -33,7 +33,7 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - __properties: ClassVar[list[str]] = ["report_format"] + __properties: ClassVar[List[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py index 226c027206f0..1d8071852220 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py @@ -73,7 +73,7 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -150,8 +150,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -163,7 +163,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py index 6cca8fe89479..4d7607c83e85 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/feeding.py @@ -42,7 +42,7 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py index d4853e15fb8a..e09066bc7985 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file.py @@ -32,7 +32,7 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - __properties: ClassVar[list[str]] = ["sourceURI"] + __properties: ClassVar[List[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py index fc1fdefcf1a2..7f4607d4d11e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/file_schema_test_class.py @@ -34,7 +34,7 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - __properties: ClassVar[list[str]] = ["file", "files"] + __properties: ClassVar[List[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py index d9d28a80eece..ef5fcf8d1101 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/first_ref.py @@ -33,7 +33,7 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - __properties: ClassVar[list[str]] = ["category", "self_ref"] + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py index 4c3bb8c51570..d7bf4f0fe4d4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo.py @@ -32,7 +32,7 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - __properties: ClassVar[list[str]] = ["bar"] + __properties: ClassVar[List[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py index 9381fbebb463..194aede01f2b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/foo_get_default_response.py @@ -33,7 +33,7 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - __properties: ClassVar[list[str]] = ["string"] + __properties: ClassVar[List[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py index a4fdd51063d9..b4d75b7c3ebb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/format_test.py @@ -52,7 +52,7 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -102,8 +102,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -115,7 +115,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py index 8da99d2f77ba..8143e6b831e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/has_only_read_only.py @@ -33,7 +33,7 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["bar", "foo"] + __properties: ClassVar[List[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py index 5b1dbf7e31b9..9b3552b96f50 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/health_check_result.py @@ -32,7 +32,7 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - __properties: ClassVar[list[str]] = ["NullableMessage"] + __properties: ClassVar[List[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py index 3a67af555ed8..e4cfe348fa7a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/hunting_dog.py @@ -34,7 +34,7 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] + __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py index bfc2466f84d2..f5e05e503e6d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/info.py @@ -33,7 +33,7 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - __properties: ClassVar[list[str]] = ["_typeName", "val"] + __properties: ClassVar[List[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py index 0bb2fde1d2b9..106ac3338d9d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/inner_dict_with_property.py @@ -32,7 +32,7 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - __properties: ClassVar[list[str]] = ["aProperty"] + __properties: ClassVar[List[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py index 877c67c18150..12dd3cc6d878 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/input_all_of.py @@ -33,7 +33,7 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[list[str]] = ["some_data"] + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py index 041480fc4454..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py index 916381450b7c..cb77950831e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/list_class.py @@ -32,7 +32,7 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - __properties: ClassVar[list[str]] = ["123-list"] + __properties: ClassVar[List[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py index 095be98919d2..7a922a4e0d91 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_of_array_of_model.py @@ -33,7 +33,7 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] + __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py index 03384b4d53cd..cc9bede619cb 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/map_test.py @@ -38,7 +38,7 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -59,8 +59,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py index 8f7e07e50785..dd3070614469 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,7 +37,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] + __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py index 4e36a2cb3892..33898410ea6f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model200_response.py @@ -33,7 +33,7 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - __properties: ClassVar[list[str]] = ["name", "class"] + __properties: ClassVar[List[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py index b579f36f1109..34259444208a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_api_response.py @@ -34,7 +34,7 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["code", "type", "message"] + __properties: ClassVar[List[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py index e497ca984b7b..b2faf99974e9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_field.py @@ -32,7 +32,7 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - __properties: ClassVar[list[str]] = ["field"] + __properties: ClassVar[List[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py index 123588033b17..75a0160edae0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/model_return.py @@ -32,7 +32,7 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - __properties: ClassVar[list[str]] = ["return"] + __properties: ClassVar[List[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py index 3323d22c783c..eb8cffe6f8db 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/multi_arrays.py @@ -35,7 +35,7 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - __properties: ClassVar[list[str]] = ["tags", "files"] + __properties: ClassVar[List[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py index badab74b8ab1..23e15b2a27c4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/name.py @@ -35,7 +35,7 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] + __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py index cb9ac34e9245..c4db84b5d3a7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py index 95b96ae95e1f..7910909abf16 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/nullable_property.py @@ -34,7 +34,7 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -54,8 +54,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -67,7 +67,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py index 975163a341a5..0ae8254cc09d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/number_only.py @@ -32,7 +32,7 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[float] = Field(default=None, alias="JustNumber") - __properties: ClassVar[list[str]] = ["JustNumber"] + __properties: ClassVar[List[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py index c161cbaa62b3..291effd93c9a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_to_test_additional_properties.py @@ -32,7 +32,7 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - __properties: ClassVar[list[str]] = ["property"] + __properties: ClassVar[List[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py index 1596640c907b..87632eabe1c4 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/object_with_deprecated_fields.py @@ -36,7 +36,7 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[float] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] + __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py index 851d9d035790..4eec70bb3689 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/order.py @@ -41,7 +41,7 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -61,8 +61,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py index 94b3ee6fd5a4..efa446ba77ac 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_composite.py @@ -34,7 +34,7 @@ class OuterComposite(BaseModel): my_number: Optional[float] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] + __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py index 817823ed2e5e..2086db715860 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_object_with_enum_property.py @@ -35,7 +35,7 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - __properties: ClassVar[list[str]] = ["str_value", "value"] + __properties: ClassVar[List[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py index 6e015db568e9..726e3791b75f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent.py @@ -33,7 +33,7 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[list[str]] = ["optionalDict"] + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py index b011e2842c91..82ad666c7bce 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/parent_with_optional_dict.py @@ -33,7 +33,7 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[list[str]] = ["optionalDict"] + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py index b964497f9d5e..a7393e9aac07 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py index adb1d8c256da..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py index 24fdd90b2478..b637e2bcbc1e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/pony_sizes.py @@ -33,7 +33,7 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - __properties: ClassVar[list[str]] = ["type"] + __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py index 28620bd85c09..c8cc192b751f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/poop_cleaning.py @@ -42,7 +42,7 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py index e3c10c46b397..421cc1b32cb9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/primitive_string.py @@ -33,7 +33,7 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - __properties: ClassVar[list[str]] = ["_typeName", "_value"] + __properties: ClassVar[List[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py index 7dcc2cfe0a85..78c791c51d9e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_map.py @@ -33,7 +33,7 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[list[str]] = ["some_data"] + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py index 4d4cab25740e..997b1cbe4852 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/property_name_collision.py @@ -34,7 +34,7 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - __properties: ClassVar[list[str]] = ["_type", "type", "type_"] + __properties: ClassVar[List[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py index c47b5f3116f6..787352f1f1b9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/read_only_first.py @@ -33,7 +33,7 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["bar", "baz"] + __properties: ClassVar[List[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py index 49d42165a9a4..160f92af2556 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_circular_all_of_ref.py @@ -33,7 +33,7 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] + __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py index b813533b02a8..83eab4671e31 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/second_ref.py @@ -33,7 +33,7 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - __properties: ClassVar[list[str]] = ["category", "circular_ref"] + __properties: ClassVar[List[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py index 4ecd479fd2e2..109519a79c2c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/self_reference_model.py @@ -33,7 +33,7 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - __properties: ClassVar[list[str]] = ["size", "nested"] + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py index fd24a9ce795f..0e166b85b25e 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_model_name.py @@ -32,7 +32,7 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - __properties: ClassVar[list[str]] = ["$special[property.name]"] + __properties: ClassVar[List[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py index ab4a86cd180e..9020d535a958 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/special_name.py @@ -38,7 +38,7 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["property", "async", "schema"] + __properties: ClassVar[List[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -58,8 +58,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py index b6d0270dbbcf..83c168d40b93 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tag.py @@ -33,7 +33,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py index 2f9b67d6bed1..fd41f02910d3 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task.py @@ -35,7 +35,7 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - __properties: ClassVar[list[str]] = ["id", "activity"] + __properties: ClassVar[List[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py index f92328a9751d..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py index 4b33253298ac..ba4eddceed9d 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["reason400"] + __properties: ClassVar[List[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py index 7ba600e7c014..f7e0980aab0f 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["reason404"] + __properties: ClassVar[List[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py index c708ef356815..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["someProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py index 6afaf9d46598..b754467c085a 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_model_with_enum_default.py @@ -41,7 +41,7 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -61,8 +61,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 740db0725350..fb7159df131c 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,7 +32,7 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py index 6163f7029eb5..72373d6525d7 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/tiger.py @@ -32,7 +32,7 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["skill"] + __properties: ClassVar[List[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index d22818b54a18..68d64953f496 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,7 +33,7 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[list[str]] = ["dictProperty"] + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 6ea433b6a7ce..c8a84e8ada0b 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,7 +32,7 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[list[str]] = ["dictProperty"] + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py index e55e9e09be15..e6579e3773e0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,7 +32,7 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py index 066be276a5b0..1482cd191d21 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/user.py @@ -39,7 +39,7 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -49,8 +49,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -62,7 +62,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py index ec56272032a6..da7c16de93fc 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/with_nested_one_of.py @@ -36,7 +36,7 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py index c52fe689fc96..e0ef058f4677 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import Optional, Union +from typing import List, Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[list[str]]=None, + signed_headers: Optional[List[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py index 9d400f72eb9a..0d456a35c3a4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/another_fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ async def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -90,7 +91,7 @@ async def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -111,14 +112,14 @@ async def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -157,7 +158,7 @@ async def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -178,14 +179,14 @@ async def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -224,7 +225,7 @@ async def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -245,15 +246,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py index e6b8039808a5..4bca18df4343 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/default_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -41,14 +42,14 @@ async def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -83,7 +84,7 @@ async def foo_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -102,14 +103,14 @@ async def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -144,7 +145,7 @@ async def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -163,14 +164,14 @@ async def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -205,7 +206,7 @@ async def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -224,15 +225,15 @@ def _foo_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -253,7 +254,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py index 0055783b2166..04b92f2c140d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator @@ -60,14 +61,14 @@ async def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -105,7 +106,7 @@ async def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -126,14 +127,14 @@ async def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -171,7 +172,7 @@ async def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -192,14 +193,14 @@ async def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -237,7 +238,7 @@ async def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -258,15 +259,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -295,7 +296,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -323,14 +324,14 @@ async def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -368,7 +369,7 @@ async def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -389,14 +390,14 @@ async def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -434,7 +435,7 @@ async def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -455,14 +456,14 @@ async def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -500,7 +501,7 @@ async def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -521,15 +522,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +548,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ async def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -616,7 +617,7 @@ async def fake_health_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -636,14 +637,14 @@ async def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -678,7 +679,7 @@ async def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -698,14 +699,14 @@ async def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -740,7 +741,7 @@ async def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = await self.api_client.call_api( @@ -760,15 +761,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -789,7 +790,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -819,14 +820,14 @@ async def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -870,7 +871,7 @@ async def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -893,14 +894,14 @@ async def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -944,7 +945,7 @@ async def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -967,14 +968,14 @@ async def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1018,7 +1019,7 @@ async def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -1041,15 +1042,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1085,7 +1086,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_signature_test' ] @@ -1114,14 +1115,14 @@ async def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1160,7 +1161,7 @@ async def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1181,14 +1182,14 @@ async def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1227,7 +1228,7 @@ async def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1248,14 +1249,14 @@ async def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1294,7 +1295,7 @@ async def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -1315,15 +1316,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1359,7 +1360,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1387,14 +1388,14 @@ async def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1433,7 +1434,7 @@ async def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1454,14 +1455,14 @@ async def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1500,7 +1501,7 @@ async def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1521,14 +1522,14 @@ async def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1567,7 +1568,7 @@ async def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = await self.api_client.call_api( @@ -1588,15 +1589,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1632,7 +1633,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1660,14 +1661,14 @@ async def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1706,7 +1707,7 @@ async def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1727,14 +1728,14 @@ async def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1773,7 +1774,7 @@ async def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1794,14 +1795,14 @@ async def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1840,7 +1841,7 @@ async def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -1861,15 +1862,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1905,7 +1906,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1933,14 +1934,14 @@ async def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1979,7 +1980,7 @@ async def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2000,14 +2001,14 @@ async def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2046,7 +2047,7 @@ async def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2067,14 +2068,14 @@ async def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2113,7 +2114,7 @@ async def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -2134,15 +2135,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2178,7 +2179,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2207,14 +2208,14 @@ async def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2256,7 +2257,7 @@ async def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2278,14 +2279,14 @@ async def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2327,7 +2328,7 @@ async def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2349,14 +2350,14 @@ async def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2398,7 +2399,7 @@ async def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = await self.api_client.call_api( @@ -2420,16 +2421,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'param': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2469,7 +2470,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2496,14 +2497,14 @@ async def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2538,7 +2539,7 @@ async def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2558,14 +2559,14 @@ async def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2600,7 +2601,7 @@ async def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2620,14 +2621,14 @@ async def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2662,7 +2663,7 @@ async def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = await self.api_client.call_api( @@ -2682,15 +2683,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2711,7 +2712,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2738,14 +2739,14 @@ async def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2780,7 +2781,7 @@ async def fake_return_boolean( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2800,14 +2801,14 @@ async def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2842,7 +2843,7 @@ async def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2862,14 +2863,14 @@ async def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2904,7 +2905,7 @@ async def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = await self.api_client.call_api( @@ -2924,15 +2925,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2953,7 +2954,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2980,14 +2981,14 @@ async def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3022,7 +3023,7 @@ async def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3042,14 +3043,14 @@ async def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3084,7 +3085,7 @@ async def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3104,14 +3105,14 @@ async def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3146,7 +3147,7 @@ async def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = await self.api_client.call_api( @@ -3166,15 +3167,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3195,7 +3196,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3222,14 +3223,14 @@ async def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3264,7 +3265,7 @@ async def fake_return_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3284,14 +3285,14 @@ async def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3326,7 +3327,7 @@ async def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3346,14 +3347,14 @@ async def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3388,7 +3389,7 @@ async def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3408,15 +3409,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3437,7 +3438,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3464,14 +3465,14 @@ async def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3506,7 +3507,7 @@ async def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3526,14 +3527,14 @@ async def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3568,7 +3569,7 @@ async def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3588,14 +3589,14 @@ async def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3630,7 +3631,7 @@ async def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -3650,15 +3651,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3679,7 +3680,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3706,14 +3707,14 @@ async def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3748,7 +3749,7 @@ async def fake_return_float( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3768,14 +3769,14 @@ async def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3810,7 +3811,7 @@ async def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3830,14 +3831,14 @@ async def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3872,7 +3873,7 @@ async def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = await self.api_client.call_api( @@ -3892,15 +3893,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3921,7 +3922,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3948,14 +3949,14 @@ async def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3990,7 +3991,7 @@ async def fake_return_int( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4010,14 +4011,14 @@ async def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4052,7 +4053,7 @@ async def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4072,14 +4073,14 @@ async def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4114,7 +4115,7 @@ async def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = await self.api_client.call_api( @@ -4134,15 +4135,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4163,7 +4164,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4190,14 +4191,14 @@ async def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4232,7 +4233,7 @@ async def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4252,14 +4253,14 @@ async def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4294,7 +4295,7 @@ async def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4314,14 +4315,14 @@ async def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4356,7 +4357,7 @@ async def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = await self.api_client.call_api( @@ -4376,15 +4377,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4405,7 +4406,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4432,14 +4433,14 @@ async def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4474,7 +4475,7 @@ async def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4494,14 +4495,14 @@ async def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4536,7 +4537,7 @@ async def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4556,14 +4557,14 @@ async def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4598,7 +4599,7 @@ async def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4618,15 +4619,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4647,7 +4648,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4674,14 +4675,14 @@ async def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4716,7 +4717,7 @@ async def fake_return_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4736,14 +4737,14 @@ async def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4778,7 +4779,7 @@ async def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4798,14 +4799,14 @@ async def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4840,7 +4841,7 @@ async def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = await self.api_client.call_api( @@ -4860,15 +4861,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4889,7 +4890,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4917,14 +4918,14 @@ async def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4962,7 +4963,7 @@ async def fake_uuid_example( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -4983,14 +4984,14 @@ async def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5028,7 +5029,7 @@ async def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5049,14 +5050,14 @@ async def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5094,7 +5095,7 @@ async def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5115,15 +5116,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5141,7 +5142,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5169,14 +5170,14 @@ async def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5215,7 +5216,7 @@ async def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5236,14 +5237,14 @@ async def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5282,7 +5283,7 @@ async def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5303,14 +5304,14 @@ async def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5349,7 +5350,7 @@ async def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5370,15 +5371,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5407,7 +5408,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5435,14 +5436,14 @@ async def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5481,7 +5482,7 @@ async def test_body_with_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5502,14 +5503,14 @@ async def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5548,7 +5549,7 @@ async def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5569,14 +5570,14 @@ async def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5615,7 +5616,7 @@ async def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5636,15 +5637,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5681,7 +5682,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5709,14 +5710,14 @@ async def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5755,7 +5756,7 @@ async def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5776,14 +5777,14 @@ async def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5822,7 +5823,7 @@ async def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5843,14 +5844,14 @@ async def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5889,7 +5890,7 @@ async def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -5910,15 +5911,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5947,7 +5948,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5976,14 +5977,14 @@ async def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6024,7 +6025,7 @@ async def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6046,14 +6047,14 @@ async def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6094,7 +6095,7 @@ async def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6116,14 +6117,14 @@ async def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6164,7 +6165,7 @@ async def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6186,15 +6187,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6227,7 +6228,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6255,14 +6256,14 @@ async def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6301,7 +6302,7 @@ async def test_client_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6322,14 +6323,14 @@ async def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6368,7 +6369,7 @@ async def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6389,14 +6390,14 @@ async def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6435,7 +6436,7 @@ async def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -6456,15 +6457,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6500,7 +6501,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6529,14 +6530,14 @@ async def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6577,7 +6578,7 @@ async def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6599,14 +6600,14 @@ async def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6647,7 +6648,7 @@ async def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6669,14 +6670,14 @@ async def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6717,7 +6718,7 @@ async def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -6739,15 +6740,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6778,7 +6779,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6805,14 +6806,14 @@ async def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6848,7 +6849,7 @@ async def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6869,14 +6870,14 @@ async def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6912,7 +6913,7 @@ async def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6933,14 +6934,14 @@ async def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6976,7 +6977,7 @@ async def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6997,15 +6998,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7026,7 +7027,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7068,14 +7069,14 @@ async def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7156,7 +7157,7 @@ async def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7192,14 +7193,14 @@ async def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7280,7 +7281,7 @@ async def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7316,14 +7317,14 @@ async def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7404,7 +7405,7 @@ async def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7440,15 +7441,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7505,7 +7506,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_basic_test' ] @@ -7533,14 +7534,14 @@ async def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7575,7 +7576,7 @@ async def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7597,14 +7598,14 @@ async def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7639,7 +7640,7 @@ async def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7661,14 +7662,14 @@ async def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7703,7 +7704,7 @@ async def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7725,15 +7726,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7754,7 +7755,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7787,14 +7788,14 @@ async def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7848,7 +7849,7 @@ async def test_group_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7874,14 +7875,14 @@ async def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7935,7 +7936,7 @@ async def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -7961,14 +7962,14 @@ async def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8022,7 +8023,7 @@ async def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = await self.api_client.call_api( @@ -8048,15 +8049,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8090,7 +8091,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'bearer_test' ] @@ -8119,14 +8120,14 @@ async def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8165,7 +8166,7 @@ async def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8186,14 +8187,14 @@ async def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8232,7 +8233,7 @@ async def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8253,14 +8254,14 @@ async def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8299,7 +8300,7 @@ async def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8320,15 +8321,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8357,7 +8358,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8385,14 +8386,14 @@ async def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8431,7 +8432,7 @@ async def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8452,14 +8453,14 @@ async def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8498,7 +8499,7 @@ async def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8519,14 +8520,14 @@ async def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8565,7 +8566,7 @@ async def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8586,15 +8587,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8623,7 +8624,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8652,14 +8653,14 @@ async def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8701,7 +8702,7 @@ async def test_json_form_data( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8723,14 +8724,14 @@ async def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8772,7 +8773,7 @@ async def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8794,14 +8795,14 @@ async def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8843,7 +8844,7 @@ async def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8865,15 +8866,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8904,7 +8905,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8932,14 +8933,14 @@ async def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8977,7 +8978,7 @@ async def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -8998,14 +8999,14 @@ async def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9043,7 +9044,7 @@ async def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9064,14 +9065,14 @@ async def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9109,7 +9110,7 @@ async def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9130,15 +9131,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9167,7 +9168,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9201,14 +9202,14 @@ async def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9265,7 +9266,7 @@ async def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9292,14 +9293,14 @@ async def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9356,7 +9357,7 @@ async def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9383,14 +9384,14 @@ async def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9447,7 +9448,7 @@ async def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9474,7 +9475,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9482,12 +9483,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9529,7 +9530,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9557,14 +9558,14 @@ async def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9603,7 +9604,7 @@ async def test_string_map_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9624,14 +9625,14 @@ async def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9670,7 +9671,7 @@ async def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9691,14 +9692,14 @@ async def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9737,7 +9738,7 @@ async def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = await self.api_client.call_api( @@ -9758,15 +9759,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9795,7 +9796,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9825,14 +9826,14 @@ async def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9877,7 +9878,7 @@ async def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9900,14 +9901,14 @@ async def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9952,7 +9953,7 @@ async def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -9975,14 +9976,14 @@ async def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10027,7 +10028,7 @@ async def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -10050,15 +10051,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10098,7 +10099,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py index 21a312243695..53fb3b184e87 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_classname_tags123_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ async def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -90,7 +91,7 @@ async def test_classname( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -111,14 +112,14 @@ async def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -157,7 +158,7 @@ async def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -178,14 +179,14 @@ async def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -224,7 +225,7 @@ async def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = await self.api_client.call_api( @@ -245,15 +246,15 @@ def _test_classname_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py index 276ddaf96a25..bf38df779595 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/import_test_datetime_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import datetime @@ -41,14 +42,14 @@ async def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -83,7 +84,7 @@ async def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -103,14 +104,14 @@ async def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -145,7 +146,7 @@ async def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -165,14 +166,14 @@ async def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -207,7 +208,7 @@ async def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = await self.api_client.call_api( @@ -227,15 +228,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -256,7 +257,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py index f020789ead77..f4058216394b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/pet_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -46,14 +47,14 @@ async def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -92,7 +93,7 @@ async def add_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -114,14 +115,14 @@ async def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -160,7 +161,7 @@ async def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -182,14 +183,14 @@ async def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -228,7 +229,7 @@ async def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -250,15 +251,15 @@ def _add_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -288,7 +289,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -319,14 +320,14 @@ async def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -368,7 +369,7 @@ async def delete_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -391,14 +392,14 @@ async def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -440,7 +441,7 @@ async def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -463,14 +464,14 @@ async def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -512,7 +513,7 @@ async def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -535,15 +536,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -561,7 +562,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -590,14 +591,14 @@ async def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -636,7 +637,7 @@ async def find_pets_by_status( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -658,14 +659,14 @@ async def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -704,7 +705,7 @@ async def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -726,14 +727,14 @@ async def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -772,7 +773,7 @@ async def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -794,16 +795,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'status': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -829,7 +830,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -859,14 +860,14 @@ async def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -906,7 +907,7 @@ async def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -928,14 +929,14 @@ async def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -975,7 +976,7 @@ async def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -997,14 +998,14 @@ async def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1044,7 +1045,7 @@ async def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1066,16 +1067,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'tags': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1101,7 +1102,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1131,14 +1132,14 @@ async def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1177,7 +1178,7 @@ async def get_pet_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1200,14 +1201,14 @@ async def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1246,7 +1247,7 @@ async def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1269,14 +1270,14 @@ async def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1315,7 +1316,7 @@ async def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1338,15 +1339,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1370,7 +1371,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -1399,14 +1400,14 @@ async def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1445,7 +1446,7 @@ async def update_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1469,14 +1470,14 @@ async def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1515,7 +1516,7 @@ async def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1539,14 +1540,14 @@ async def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1585,7 +1586,7 @@ async def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1609,15 +1610,15 @@ def _update_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1647,7 +1648,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1679,14 +1680,14 @@ async def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1731,7 +1732,7 @@ async def update_pet_with_form( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1755,14 +1756,14 @@ async def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1807,7 +1808,7 @@ async def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1831,14 +1832,14 @@ async def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1883,7 +1884,7 @@ async def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1907,15 +1908,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1948,7 +1949,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -1979,14 +1980,14 @@ async def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2031,7 +2032,7 @@ async def upload_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2054,14 +2055,14 @@ async def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2106,7 +2107,7 @@ async def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2129,14 +2130,14 @@ async def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2181,7 +2182,7 @@ async def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2204,15 +2205,15 @@ def _upload_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2252,7 +2253,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -2283,14 +2284,14 @@ async def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2335,7 +2336,7 @@ async def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2358,14 +2359,14 @@ async def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2410,7 +2411,7 @@ async def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2433,14 +2434,14 @@ async def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2485,7 +2486,7 @@ async def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = await self.api_client.call_api( @@ -2508,15 +2509,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2556,7 +2557,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py index ca23debdd037..48eedc258b3d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/store_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -45,14 +46,14 @@ async def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -91,7 +92,7 @@ async def delete_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -113,14 +114,14 @@ async def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -159,7 +160,7 @@ async def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -181,14 +182,14 @@ async def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -227,7 +228,7 @@ async def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -249,15 +250,15 @@ def _delete_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -273,7 +274,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -300,14 +301,14 @@ async def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -343,7 +344,7 @@ async def get_inventory( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -363,14 +364,14 @@ async def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -406,7 +407,7 @@ async def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -426,14 +427,14 @@ async def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -469,7 +470,7 @@ async def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = await self.api_client.call_api( @@ -489,15 +490,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -518,7 +519,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -547,14 +548,14 @@ async def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -593,7 +594,7 @@ async def get_order_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -616,14 +617,14 @@ async def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -662,7 +663,7 @@ async def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -685,14 +686,14 @@ async def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -731,7 +732,7 @@ async def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -754,15 +755,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -786,7 +787,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -814,14 +815,14 @@ async def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -860,7 +861,7 @@ async def place_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -882,14 +883,14 @@ async def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -928,7 +929,7 @@ async def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -950,14 +951,14 @@ async def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -996,7 +997,7 @@ async def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1018,15 +1019,15 @@ def _place_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1063,7 +1064,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py index b904f4ebe22c..683dfadd5e3b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/user_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictStr from typing import List @@ -45,14 +46,14 @@ async def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -91,7 +92,7 @@ async def create_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -111,14 +112,14 @@ async def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -157,7 +158,7 @@ async def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -177,14 +178,14 @@ async def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -223,7 +224,7 @@ async def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -249,15 +250,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -286,7 +287,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -314,14 +315,14 @@ async def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -360,7 +361,7 @@ async def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -380,14 +381,14 @@ async def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -426,7 +427,7 @@ async def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -446,14 +447,14 @@ async def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -492,7 +493,7 @@ async def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -512,16 +513,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -550,7 +551,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -578,14 +579,14 @@ async def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -624,7 +625,7 @@ async def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -644,14 +645,14 @@ async def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -690,7 +691,7 @@ async def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -710,14 +711,14 @@ async def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -756,7 +757,7 @@ async def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -776,16 +777,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -814,7 +815,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -842,14 +843,14 @@ async def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -888,7 +889,7 @@ async def delete_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -910,14 +911,14 @@ async def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -956,7 +957,7 @@ async def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -978,14 +979,14 @@ async def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1024,7 +1025,7 @@ async def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1046,15 +1047,15 @@ def _delete_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1070,7 +1071,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1098,14 +1099,14 @@ async def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1144,7 +1145,7 @@ async def get_user_by_name( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1167,14 +1168,14 @@ async def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1213,7 +1214,7 @@ async def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1236,14 +1237,14 @@ async def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1282,7 +1283,7 @@ async def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1305,15 +1306,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1337,7 +1338,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1366,14 +1367,14 @@ async def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1415,7 +1416,7 @@ async def login_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1438,14 +1439,14 @@ async def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1487,7 +1488,7 @@ async def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1510,14 +1511,14 @@ async def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1559,7 +1560,7 @@ async def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1582,15 +1583,15 @@ def _login_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1620,7 +1621,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1647,14 +1648,14 @@ async def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1690,7 +1691,7 @@ async def logout_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1709,14 +1710,14 @@ async def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1752,7 +1753,7 @@ async def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1771,14 +1772,14 @@ async def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1814,7 +1815,7 @@ async def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = await self.api_client.call_api( *_param, @@ -1833,15 +1834,15 @@ def _logout_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1855,7 +1856,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1884,14 +1885,14 @@ async def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1933,7 +1934,7 @@ async def update_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1956,14 +1957,14 @@ async def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2005,7 +2006,7 @@ async def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2028,14 +2029,14 @@ async def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2077,7 +2078,7 @@ async def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2100,15 +2101,15 @@ def _update_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2139,7 +2140,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py index f214d4109692..44c7239cded3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -289,7 +289,7 @@ async def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -438,16 +438,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -480,7 +480,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -510,7 +510,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -544,7 +544,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -577,10 +577,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -595,7 +595,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py index b00dab9134a7..129093dbd35b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/configuration.py @@ -18,7 +18,7 @@ import logging from logging import FileHandler import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -34,7 +34,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -131,13 +131,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -147,11 +147,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -259,16 +259,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -406,7 +406,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -649,7 +649,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -702,7 +702,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py index e4860d83a3a2..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py index 8ddebcba91df..368dc3499f1d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_class.py @@ -33,7 +33,7 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] + __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py index 4426dc91ba3c..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py index e9cc738c41e1..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py index 65cb4ef65da2..15eabda3d922 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_super_model.py @@ -32,7 +32,7 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - __properties: ClassVar[list[str]] = ["_name"] + __properties: ClassVar[List[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py index 13a654098ceb..7e6a596b83df 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/all_of_with_single_ref.py @@ -34,7 +34,7 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - __properties: ClassVar[list[str]] = ["username", "SingleRefType"] + __properties: ClassVar[List[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py index e39c276224f5..8d5d174c0f37 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/animal.py @@ -39,7 +39,7 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - __properties: ClassVar[list[str]] = ["className", "color"] + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py index f817350224d6..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py index 796377e20aa4..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py index 9a9f44848efc..5f82feb6e2cc 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_model.py @@ -33,7 +33,7 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - __properties: ClassVar[list[str]] = ["another_property"] + __properties: ClassVar[List[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py index 55cc5344436b..cc795c789425 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[float]]] = Field(default=None, alias="ArrayArrayNumber") - __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] + __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py index 02444ceb7546..a3aa532ef568 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_of_number_only.py @@ -32,7 +32,7 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[float]] = Field(default=None, alias="ArrayNumber") - __properties: ClassVar[list[str]] = ["ArrayNumber"] + __properties: ClassVar[List[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py index bb578ee0eb84..29dc2461a1ca 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/array_test.py @@ -37,7 +37,7 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[float]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py index 674367a16f20..341b3038a503 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/base_discriminator.py @@ -38,7 +38,7 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - __properties: ClassVar[list[str]] = ["_typeName"] + __properties: ClassVar[List[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py index 9376880841b2..c4a0ec1b97d4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/basque_pig.py @@ -33,7 +33,7 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - __properties: ClassVar[list[str]] = ["className", "color"] + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py index a6ad58c02154..80db24107d70 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/bathing.py @@ -42,7 +42,7 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py index e0adedf4ddc2..743cd99b2eef 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/capitalization.py @@ -37,7 +37,7 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py index 6f48cc9c244a..fcd75bdff2a0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/cat.py @@ -33,7 +33,7 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - __properties: ClassVar[list[str]] = ["className", "color", "declawed"] + __properties: ClassVar[List[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py index 66ac9311ddf3..fac99d598f00 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/category.py @@ -33,7 +33,7 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py index 6a07e6712238..7223a583ff1e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_all_of_ref.py @@ -33,7 +33,7 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] + __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py index 1ee597534aa3..99c83abfac01 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/circular_reference_model.py @@ -33,7 +33,7 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - __properties: ClassVar[list[str]] = ["size", "nested"] + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py index 5edb03876a7b..400461e02968 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/class_model.py @@ -32,7 +32,7 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - __properties: ClassVar[list[str]] = ["_class"] + __properties: ClassVar[List[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py index 1f843c808685..8c63c47da726 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/client.py @@ -32,7 +32,7 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["client"] + __properties: ClassVar[List[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py index 0e177f19497f..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py index 55b03577baa3..6ce833112163 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature.py @@ -39,7 +39,7 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - __properties: ClassVar[list[str]] = ["info", "type"] + __properties: ClassVar[List[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py index 7950cbbfa909..cb5f3d2187d3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/creature_info.py @@ -32,7 +32,7 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py index bbc6b2b14fe9..3a70faaccaed 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/danish_pig.py @@ -33,7 +33,7 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - __properties: ClassVar[list[str]] = ["className", "size"] + __properties: ClassVar[List[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py index 10607d6d2430..61a9f5fc6cdd 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/deprecated_object.py @@ -32,7 +32,7 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py index 9c8d433b1a88..cb3672f8eef9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_sub.py @@ -32,7 +32,7 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - __properties: ClassVar[list[str]] = ["elementType"] + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py index 7fc88262bf00..f0d823854f2e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/discriminator_all_of_super.py @@ -37,7 +37,7 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - __properties: ClassVar[list[str]] = ["elementType"] + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -50,12 +50,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -64,8 +64,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py index ecc649284b64..d430cd28394d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dog.py @@ -33,7 +33,7 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["className", "color", "breed"] + __properties: ClassVar[List[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py index 8fb0002b4d4c..77cf3d22668d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/dummy_model.py @@ -33,7 +33,7 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - __properties: ClassVar[list[str]] = ["category", "self_ref"] + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py index 4353916ea658..5c0c559a79b5 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_arrays.py @@ -35,11 +35,11 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[list[Literal['fish', 'crab']]] = Field( + array_enum: Optional[List[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] + __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -70,8 +70,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -83,7 +83,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py index 8647c70a3ab7..e43bd99a9026 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_ref_with_default_value.py @@ -33,7 +33,7 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - __properties: ClassVar[list[str]] = ["report_format"] + __properties: ClassVar[List[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py index 226c027206f0..1d8071852220 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/enum_test.py @@ -73,7 +73,7 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -150,8 +150,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -163,7 +163,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py index 6cca8fe89479..4d7607c83e85 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/feeding.py @@ -42,7 +42,7 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py index d4853e15fb8a..e09066bc7985 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file.py @@ -32,7 +32,7 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - __properties: ClassVar[list[str]] = ["sourceURI"] + __properties: ClassVar[List[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py index fc1fdefcf1a2..7f4607d4d11e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/file_schema_test_class.py @@ -34,7 +34,7 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - __properties: ClassVar[list[str]] = ["file", "files"] + __properties: ClassVar[List[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py index d9d28a80eece..ef5fcf8d1101 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/first_ref.py @@ -33,7 +33,7 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - __properties: ClassVar[list[str]] = ["category", "self_ref"] + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py index 4c3bb8c51570..d7bf4f0fe4d4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo.py @@ -32,7 +32,7 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - __properties: ClassVar[list[str]] = ["bar"] + __properties: ClassVar[List[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py index 9381fbebb463..194aede01f2b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/foo_get_default_response.py @@ -33,7 +33,7 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - __properties: ClassVar[list[str]] = ["string"] + __properties: ClassVar[List[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py index a4fdd51063d9..b4d75b7c3ebb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/format_test.py @@ -52,7 +52,7 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -102,8 +102,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -115,7 +115,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py index 8da99d2f77ba..8143e6b831e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/has_only_read_only.py @@ -33,7 +33,7 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["bar", "foo"] + __properties: ClassVar[List[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py index 5b1dbf7e31b9..9b3552b96f50 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/health_check_result.py @@ -32,7 +32,7 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - __properties: ClassVar[list[str]] = ["NullableMessage"] + __properties: ClassVar[List[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py index 3a67af555ed8..e4cfe348fa7a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/hunting_dog.py @@ -34,7 +34,7 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] + __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py index bfc2466f84d2..f5e05e503e6d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/info.py @@ -33,7 +33,7 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - __properties: ClassVar[list[str]] = ["_typeName", "val"] + __properties: ClassVar[List[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py index 0bb2fde1d2b9..106ac3338d9d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/inner_dict_with_property.py @@ -32,7 +32,7 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - __properties: ClassVar[list[str]] = ["aProperty"] + __properties: ClassVar[List[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py index 877c67c18150..12dd3cc6d878 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/input_all_of.py @@ -33,7 +33,7 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[list[str]] = ["some_data"] + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py index 041480fc4454..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py index 916381450b7c..cb77950831e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/list_class.py @@ -32,7 +32,7 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - __properties: ClassVar[list[str]] = ["123-list"] + __properties: ClassVar[List[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py index 095be98919d2..7a922a4e0d91 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_of_array_of_model.py @@ -33,7 +33,7 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] + __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py index 03384b4d53cd..cc9bede619cb 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/map_test.py @@ -38,7 +38,7 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -59,8 +59,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py index 8f7e07e50785..dd3070614469 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,7 +37,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] + __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py index 4e36a2cb3892..33898410ea6f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model200_response.py @@ -33,7 +33,7 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - __properties: ClassVar[list[str]] = ["name", "class"] + __properties: ClassVar[List[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py index b579f36f1109..34259444208a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_api_response.py @@ -34,7 +34,7 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["code", "type", "message"] + __properties: ClassVar[List[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py index e497ca984b7b..b2faf99974e9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_field.py @@ -32,7 +32,7 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - __properties: ClassVar[list[str]] = ["field"] + __properties: ClassVar[List[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py index 123588033b17..75a0160edae0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/model_return.py @@ -32,7 +32,7 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - __properties: ClassVar[list[str]] = ["return"] + __properties: ClassVar[List[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py index 3323d22c783c..eb8cffe6f8db 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/multi_arrays.py @@ -35,7 +35,7 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - __properties: ClassVar[list[str]] = ["tags", "files"] + __properties: ClassVar[List[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py index badab74b8ab1..23e15b2a27c4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/name.py @@ -35,7 +35,7 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] + __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py index cb9ac34e9245..c4db84b5d3a7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py index 95b96ae95e1f..7910909abf16 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/nullable_property.py @@ -34,7 +34,7 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -54,8 +54,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -67,7 +67,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py index 975163a341a5..0ae8254cc09d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/number_only.py @@ -32,7 +32,7 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[float] = Field(default=None, alias="JustNumber") - __properties: ClassVar[list[str]] = ["JustNumber"] + __properties: ClassVar[List[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py index c161cbaa62b3..291effd93c9a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_to_test_additional_properties.py @@ -32,7 +32,7 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - __properties: ClassVar[list[str]] = ["property"] + __properties: ClassVar[List[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py index 1596640c907b..87632eabe1c4 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/object_with_deprecated_fields.py @@ -36,7 +36,7 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[float] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] + __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py index 851d9d035790..4eec70bb3689 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/order.py @@ -41,7 +41,7 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -61,8 +61,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py index 94b3ee6fd5a4..efa446ba77ac 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_composite.py @@ -34,7 +34,7 @@ class OuterComposite(BaseModel): my_number: Optional[float] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] + __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py index 817823ed2e5e..2086db715860 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/outer_object_with_enum_property.py @@ -35,7 +35,7 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - __properties: ClassVar[list[str]] = ["str_value", "value"] + __properties: ClassVar[List[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py index 6e015db568e9..726e3791b75f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent.py @@ -33,7 +33,7 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[list[str]] = ["optionalDict"] + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py index b011e2842c91..82ad666c7bce 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/parent_with_optional_dict.py @@ -33,7 +33,7 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - __properties: ClassVar[list[str]] = ["optionalDict"] + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py index b964497f9d5e..a7393e9aac07 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pet.py @@ -43,7 +43,7 @@ class Pet(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -63,8 +63,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -76,7 +76,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py index adb1d8c256da..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py index 24fdd90b2478..b637e2bcbc1e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/pony_sizes.py @@ -33,7 +33,7 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - __properties: ClassVar[list[str]] = ["type"] + __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py index 28620bd85c09..c8cc192b751f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/poop_cleaning.py @@ -42,7 +42,7 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -66,8 +66,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py index e3c10c46b397..421cc1b32cb9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/primitive_string.py @@ -33,7 +33,7 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - __properties: ClassVar[list[str]] = ["_typeName", "_value"] + __properties: ClassVar[List[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py index 7dcc2cfe0a85..78c791c51d9e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_map.py @@ -33,7 +33,7 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - __properties: ClassVar[list[str]] = ["some_data"] + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py index 4d4cab25740e..997b1cbe4852 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/property_name_collision.py @@ -34,7 +34,7 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - __properties: ClassVar[list[str]] = ["_type", "type", "type_"] + __properties: ClassVar[List[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py index c47b5f3116f6..787352f1f1b9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/read_only_first.py @@ -33,7 +33,7 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["bar", "baz"] + __properties: ClassVar[List[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py index 49d42165a9a4..160f92af2556 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_circular_all_of_ref.py @@ -33,7 +33,7 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] + __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py index b813533b02a8..83eab4671e31 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/second_ref.py @@ -33,7 +33,7 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - __properties: ClassVar[list[str]] = ["category", "circular_ref"] + __properties: ClassVar[List[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py index 4ecd479fd2e2..109519a79c2c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/self_reference_model.py @@ -33,7 +33,7 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - __properties: ClassVar[list[str]] = ["size", "nested"] + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py index fd24a9ce795f..0e166b85b25e 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_model_name.py @@ -32,7 +32,7 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - __properties: ClassVar[list[str]] = ["$special[property.name]"] + __properties: ClassVar[List[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py index ab4a86cd180e..9020d535a958 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/special_name.py @@ -38,7 +38,7 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - __properties: ClassVar[list[str]] = ["property", "async", "schema"] + __properties: ClassVar[List[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -58,8 +58,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -71,7 +71,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py index b6d0270dbbcf..83c168d40b93 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tag.py @@ -33,7 +33,7 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["id", "name"] + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py index 2f9b67d6bed1..fd41f02910d3 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task.py @@ -35,7 +35,7 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - __properties: ClassVar[list[str]] = ["id", "activity"] + __properties: ClassVar[List[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py index f92328a9751d..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py index 4b33253298ac..ba4eddceed9d 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["reason400"] + __properties: ClassVar[List[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py index 7ba600e7c014..f7e0980aab0f 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,7 +32,7 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["reason404"] + __properties: ClassVar[List[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py index c708ef356815..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["someProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py index 6afaf9d46598..b754467c085a 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_model_with_enum_default.py @@ -41,7 +41,7 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -61,8 +61,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -74,7 +74,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 740db0725350..fb7159df131c 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,7 +32,7 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py index 6163f7029eb5..72373d6525d7 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/tiger.py @@ -32,7 +32,7 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["skill"] + __properties: ClassVar[List[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index d22818b54a18..68d64953f496 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,7 +33,7 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[list[str]] = ["dictProperty"] + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 6ea433b6a7ce..c8a84e8ada0b 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,7 +32,7 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - __properties: ClassVar[list[str]] = ["dictProperty"] + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py index e55e9e09be15..e6579e3773e0 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,7 +32,7 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - __properties: ClassVar[list[str]] = ["name"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -42,8 +42,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -55,7 +55,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py index 066be276a5b0..1482cd191d21 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/user.py @@ -39,7 +39,7 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -49,8 +49,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -62,7 +62,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py index ec56272032a6..da7c16de93fc 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/models/with_nested_one_of.py @@ -36,7 +36,7 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py index c52fe689fc96..e0ef058f4677 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import Optional, Union +from typing import List, Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[list[str]]=None, + signed_headers: Optional[List[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py index a9e011f9d7e7..1e19c6d880d1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/another_fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -90,7 +91,7 @@ def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -111,14 +112,14 @@ def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -157,7 +158,7 @@ def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -178,14 +179,14 @@ def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -224,7 +225,7 @@ def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -245,15 +246,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py index d299b8f0e50a..5f05c540a238 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/default_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -41,14 +42,14 @@ def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -83,7 +84,7 @@ def foo_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -102,14 +103,14 @@ def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -144,7 +145,7 @@ def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -163,14 +164,14 @@ def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -205,7 +206,7 @@ def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -224,15 +225,15 @@ def _foo_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -253,7 +254,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py index 244714f54f60..6d99595e3059 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator @@ -60,14 +61,14 @@ def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -105,7 +106,7 @@ def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -126,14 +127,14 @@ def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -171,7 +172,7 @@ def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -192,14 +193,14 @@ def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -237,7 +238,7 @@ def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -258,15 +259,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -295,7 +296,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -323,14 +324,14 @@ def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -368,7 +369,7 @@ def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -389,14 +390,14 @@ def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -434,7 +435,7 @@ def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -455,14 +456,14 @@ def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -500,7 +501,7 @@ def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -521,15 +522,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +548,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -616,7 +617,7 @@ def fake_health_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -636,14 +637,14 @@ def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -678,7 +679,7 @@ def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -698,14 +699,14 @@ def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -740,7 +741,7 @@ def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -760,15 +761,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -789,7 +790,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -819,14 +820,14 @@ def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -870,7 +871,7 @@ def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -893,14 +894,14 @@ def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -944,7 +945,7 @@ def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -967,14 +968,14 @@ def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1018,7 +1019,7 @@ def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -1041,15 +1042,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1085,7 +1086,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_signature_test' ] @@ -1114,14 +1115,14 @@ def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1160,7 +1161,7 @@ def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1181,14 +1182,14 @@ def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1227,7 +1228,7 @@ def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1248,14 +1249,14 @@ def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1294,7 +1295,7 @@ def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1315,15 +1316,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1359,7 +1360,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1387,14 +1388,14 @@ def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1433,7 +1434,7 @@ def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1454,14 +1455,14 @@ def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1500,7 +1501,7 @@ def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1521,14 +1522,14 @@ def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1567,7 +1568,7 @@ def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1588,15 +1589,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1632,7 +1633,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1660,14 +1661,14 @@ def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1706,7 +1707,7 @@ def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1727,14 +1728,14 @@ def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1773,7 +1774,7 @@ def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1794,14 +1795,14 @@ def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1840,7 +1841,7 @@ def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1861,15 +1862,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1905,7 +1906,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1933,14 +1934,14 @@ def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1979,7 +1980,7 @@ def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2000,14 +2001,14 @@ def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2046,7 +2047,7 @@ def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2067,14 +2068,14 @@ def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2113,7 +2114,7 @@ def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2134,15 +2135,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2178,7 +2179,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2207,14 +2208,14 @@ def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2256,7 +2257,7 @@ def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2278,14 +2279,14 @@ def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2327,7 +2328,7 @@ def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2349,14 +2350,14 @@ def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2398,7 +2399,7 @@ def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2420,16 +2421,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'param': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2469,7 +2470,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2496,14 +2497,14 @@ def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2538,7 +2539,7 @@ def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2558,14 +2559,14 @@ def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2600,7 +2601,7 @@ def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2620,14 +2621,14 @@ def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2662,7 +2663,7 @@ def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2682,15 +2683,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2711,7 +2712,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2738,14 +2739,14 @@ def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2780,7 +2781,7 @@ def fake_return_boolean( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2800,14 +2801,14 @@ def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2842,7 +2843,7 @@ def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2862,14 +2863,14 @@ def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2904,7 +2905,7 @@ def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2924,15 +2925,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2953,7 +2954,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2980,14 +2981,14 @@ def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3022,7 +3023,7 @@ def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3042,14 +3043,14 @@ def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3084,7 +3085,7 @@ def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3104,14 +3105,14 @@ def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3146,7 +3147,7 @@ def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3166,15 +3167,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3195,7 +3196,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3222,14 +3223,14 @@ def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3264,7 +3265,7 @@ def fake_return_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3284,14 +3285,14 @@ def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3326,7 +3327,7 @@ def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3346,14 +3347,14 @@ def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3388,7 +3389,7 @@ def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3408,15 +3409,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3437,7 +3438,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3464,14 +3465,14 @@ def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3506,7 +3507,7 @@ def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3526,14 +3527,14 @@ def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3568,7 +3569,7 @@ def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3588,14 +3589,14 @@ def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3630,7 +3631,7 @@ def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3650,15 +3651,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3679,7 +3680,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3706,14 +3707,14 @@ def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3748,7 +3749,7 @@ def fake_return_float( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3768,14 +3769,14 @@ def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3810,7 +3811,7 @@ def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3830,14 +3831,14 @@ def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3872,7 +3873,7 @@ def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3892,15 +3893,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3921,7 +3922,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3948,14 +3949,14 @@ def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3990,7 +3991,7 @@ def fake_return_int( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4010,14 +4011,14 @@ def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4052,7 +4053,7 @@ def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4072,14 +4073,14 @@ def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4114,7 +4115,7 @@ def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4134,15 +4135,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4163,7 +4164,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4190,14 +4191,14 @@ def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4232,7 +4233,7 @@ def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4252,14 +4253,14 @@ def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4294,7 +4295,7 @@ def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4314,14 +4315,14 @@ def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4356,7 +4357,7 @@ def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4376,15 +4377,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4405,7 +4406,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4432,14 +4433,14 @@ def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4474,7 +4475,7 @@ def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4494,14 +4495,14 @@ def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4536,7 +4537,7 @@ def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4556,14 +4557,14 @@ def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4598,7 +4599,7 @@ def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4618,15 +4619,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4647,7 +4648,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4674,14 +4675,14 @@ def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4716,7 +4717,7 @@ def fake_return_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4736,14 +4737,14 @@ def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4778,7 +4779,7 @@ def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4798,14 +4799,14 @@ def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4840,7 +4841,7 @@ def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4860,15 +4861,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4889,7 +4890,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4917,14 +4918,14 @@ def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4962,7 +4963,7 @@ def fake_uuid_example( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -4983,14 +4984,14 @@ def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5028,7 +5029,7 @@ def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5049,14 +5050,14 @@ def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5094,7 +5095,7 @@ def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5115,15 +5116,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5141,7 +5142,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5169,14 +5170,14 @@ def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5215,7 +5216,7 @@ def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5236,14 +5237,14 @@ def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5282,7 +5283,7 @@ def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5303,14 +5304,14 @@ def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5349,7 +5350,7 @@ def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5370,15 +5371,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5407,7 +5408,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5435,14 +5436,14 @@ def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5481,7 +5482,7 @@ def test_body_with_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5502,14 +5503,14 @@ def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5548,7 +5549,7 @@ def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5569,14 +5570,14 @@ def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5615,7 +5616,7 @@ def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5636,15 +5637,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5681,7 +5682,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5709,14 +5710,14 @@ def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5755,7 +5756,7 @@ def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5776,14 +5777,14 @@ def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5822,7 +5823,7 @@ def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5843,14 +5844,14 @@ def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5889,7 +5890,7 @@ def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5910,15 +5911,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5947,7 +5948,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5976,14 +5977,14 @@ def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6024,7 +6025,7 @@ def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6046,14 +6047,14 @@ def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6094,7 +6095,7 @@ def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6116,14 +6117,14 @@ def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6164,7 +6165,7 @@ def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6186,15 +6187,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6227,7 +6228,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6255,14 +6256,14 @@ def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6301,7 +6302,7 @@ def test_client_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6322,14 +6323,14 @@ def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6368,7 +6369,7 @@ def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6389,14 +6390,14 @@ def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6435,7 +6436,7 @@ def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6456,15 +6457,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6500,7 +6501,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6529,14 +6530,14 @@ def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6577,7 +6578,7 @@ def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6599,14 +6600,14 @@ def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6647,7 +6648,7 @@ def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6669,14 +6670,14 @@ def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6717,7 +6718,7 @@ def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6739,15 +6740,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6778,7 +6779,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6805,14 +6806,14 @@ def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6848,7 +6849,7 @@ def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6869,14 +6870,14 @@ def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6912,7 +6913,7 @@ def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6933,14 +6934,14 @@ def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6976,7 +6977,7 @@ def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6997,15 +6998,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7026,7 +7027,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7068,14 +7069,14 @@ def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7156,7 +7157,7 @@ def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7192,14 +7193,14 @@ def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7280,7 +7281,7 @@ def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7316,14 +7317,14 @@ def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7404,7 +7405,7 @@ def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7440,15 +7441,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7505,7 +7506,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_basic_test' ] @@ -7533,14 +7534,14 @@ def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7575,7 +7576,7 @@ def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7597,14 +7598,14 @@ def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7639,7 +7640,7 @@ def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7661,14 +7662,14 @@ def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7703,7 +7704,7 @@ def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7725,15 +7726,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7754,7 +7755,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7787,14 +7788,14 @@ def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7848,7 +7849,7 @@ def test_group_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7874,14 +7875,14 @@ def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7935,7 +7936,7 @@ def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7961,14 +7962,14 @@ def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8022,7 +8023,7 @@ def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -8048,15 +8049,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8090,7 +8091,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'bearer_test' ] @@ -8119,14 +8120,14 @@ def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8165,7 +8166,7 @@ def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8186,14 +8187,14 @@ def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8232,7 +8233,7 @@ def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8253,14 +8254,14 @@ def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8299,7 +8300,7 @@ def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8320,15 +8321,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8357,7 +8358,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8385,14 +8386,14 @@ def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8431,7 +8432,7 @@ def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8452,14 +8453,14 @@ def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8498,7 +8499,7 @@ def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8519,14 +8520,14 @@ def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8565,7 +8566,7 @@ def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8586,15 +8587,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8623,7 +8624,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8652,14 +8653,14 @@ def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8701,7 +8702,7 @@ def test_json_form_data( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8723,14 +8724,14 @@ def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8772,7 +8773,7 @@ def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8794,14 +8795,14 @@ def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8843,7 +8844,7 @@ def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8865,15 +8866,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8904,7 +8905,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8932,14 +8933,14 @@ def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8977,7 +8978,7 @@ def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8998,14 +8999,14 @@ def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9043,7 +9044,7 @@ def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9064,14 +9065,14 @@ def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9109,7 +9110,7 @@ def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9130,15 +9131,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9167,7 +9168,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9201,14 +9202,14 @@ def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9265,7 +9266,7 @@ def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9292,14 +9293,14 @@ def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9356,7 +9357,7 @@ def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9383,14 +9384,14 @@ def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9447,7 +9448,7 @@ def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9474,7 +9475,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9482,12 +9483,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9529,7 +9530,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9557,14 +9558,14 @@ def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9603,7 +9604,7 @@ def test_string_map_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9624,14 +9625,14 @@ def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9670,7 +9671,7 @@ def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9691,14 +9692,14 @@ def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9737,7 +9738,7 @@ def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9758,15 +9759,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9795,7 +9796,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9825,14 +9826,14 @@ def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9877,7 +9878,7 @@ def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9900,14 +9901,14 @@ def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9952,7 +9953,7 @@ def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9975,14 +9976,14 @@ def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10027,7 +10028,7 @@ def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -10050,15 +10051,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10098,7 +10099,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py index 5cafd6d486fb..c5596bef9393 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_classname_tags123_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -90,7 +91,7 @@ def test_classname( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -111,14 +112,14 @@ def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -157,7 +158,7 @@ def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -178,14 +179,14 @@ def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -224,7 +225,7 @@ def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -245,15 +246,15 @@ def _test_classname_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py index ab56380ac74d..a59a3c99cbc4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/import_test_datetime_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import datetime @@ -41,14 +42,14 @@ def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -83,7 +84,7 @@ def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -103,14 +104,14 @@ def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -145,7 +146,7 @@ def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -165,14 +166,14 @@ def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -207,7 +208,7 @@ def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -227,15 +228,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -256,7 +257,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py index 2c97d4e70d07..21539d3dde23 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/pet_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -46,14 +47,14 @@ def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -92,7 +93,7 @@ def add_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -114,14 +115,14 @@ def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -160,7 +161,7 @@ def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -182,14 +183,14 @@ def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -228,7 +229,7 @@ def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -250,15 +251,15 @@ def _add_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -288,7 +289,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -319,14 +320,14 @@ def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -368,7 +369,7 @@ def delete_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -391,14 +392,14 @@ def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -440,7 +441,7 @@ def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -463,14 +464,14 @@ def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -512,7 +513,7 @@ def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -535,15 +536,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -561,7 +562,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -590,14 +591,14 @@ def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -636,7 +637,7 @@ def find_pets_by_status( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -658,14 +659,14 @@ def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -704,7 +705,7 @@ def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -726,14 +727,14 @@ def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -772,7 +773,7 @@ def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -794,16 +795,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'status': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -829,7 +830,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -859,14 +860,14 @@ def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -906,7 +907,7 @@ def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -928,14 +929,14 @@ def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -975,7 +976,7 @@ def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -997,14 +998,14 @@ def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1044,7 +1045,7 @@ def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1066,16 +1067,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'tags': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1101,7 +1102,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1131,14 +1132,14 @@ def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1177,7 +1178,7 @@ def get_pet_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1200,14 +1201,14 @@ def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1246,7 +1247,7 @@ def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1269,14 +1270,14 @@ def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1315,7 +1316,7 @@ def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1338,15 +1339,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1370,7 +1371,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -1399,14 +1400,14 @@ def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1445,7 +1446,7 @@ def update_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1469,14 +1470,14 @@ def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1515,7 +1516,7 @@ def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1539,14 +1540,14 @@ def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1585,7 +1586,7 @@ def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1609,15 +1610,15 @@ def _update_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1647,7 +1648,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1679,14 +1680,14 @@ def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1731,7 +1732,7 @@ def update_pet_with_form( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1755,14 +1756,14 @@ def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1807,7 +1808,7 @@ def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1831,14 +1832,14 @@ def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1883,7 +1884,7 @@ def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1907,15 +1908,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1948,7 +1949,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -1979,14 +1980,14 @@ def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2031,7 +2032,7 @@ def upload_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2054,14 +2055,14 @@ def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2106,7 +2107,7 @@ def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2129,14 +2130,14 @@ def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2181,7 +2182,7 @@ def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2204,15 +2205,15 @@ def _upload_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2252,7 +2253,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -2283,14 +2284,14 @@ def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2335,7 +2336,7 @@ def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2358,14 +2359,14 @@ def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2410,7 +2411,7 @@ def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2433,14 +2434,14 @@ def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2485,7 +2486,7 @@ def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2508,15 +2509,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2556,7 +2557,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py index 316a6f0ab3f4..edb9dce2f565 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/store_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -45,14 +46,14 @@ def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -91,7 +92,7 @@ def delete_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -113,14 +114,14 @@ def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -159,7 +160,7 @@ def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -181,14 +182,14 @@ def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -227,7 +228,7 @@ def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -249,15 +250,15 @@ def _delete_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -273,7 +274,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -300,14 +301,14 @@ def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -343,7 +344,7 @@ def get_inventory( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -363,14 +364,14 @@ def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -406,7 +407,7 @@ def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -426,14 +427,14 @@ def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -469,7 +470,7 @@ def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -489,15 +490,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -518,7 +519,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -547,14 +548,14 @@ def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -593,7 +594,7 @@ def get_order_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -616,14 +617,14 @@ def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -662,7 +663,7 @@ def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -685,14 +686,14 @@ def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -731,7 +732,7 @@ def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -754,15 +755,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -786,7 +787,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -814,14 +815,14 @@ def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -860,7 +861,7 @@ def place_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -882,14 +883,14 @@ def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -928,7 +929,7 @@ def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -950,14 +951,14 @@ def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -996,7 +997,7 @@ def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1018,15 +1019,15 @@ def _place_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1063,7 +1064,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py index c0611ae9f27f..b19c4fb54a4f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/user_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictStr from typing import List @@ -45,14 +46,14 @@ def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -91,7 +92,7 @@ def create_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -111,14 +112,14 @@ def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -157,7 +158,7 @@ def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -177,14 +178,14 @@ def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -223,7 +224,7 @@ def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -249,15 +250,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -286,7 +287,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -314,14 +315,14 @@ def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -360,7 +361,7 @@ def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -380,14 +381,14 @@ def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -426,7 +427,7 @@ def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -446,14 +447,14 @@ def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -492,7 +493,7 @@ def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -512,16 +513,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -550,7 +551,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -578,14 +579,14 @@ def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -624,7 +625,7 @@ def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -644,14 +645,14 @@ def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -690,7 +691,7 @@ def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -710,14 +711,14 @@ def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -756,7 +757,7 @@ def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -776,16 +777,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -814,7 +815,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -842,14 +843,14 @@ def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -888,7 +889,7 @@ def delete_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -910,14 +911,14 @@ def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -956,7 +957,7 @@ def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -978,14 +979,14 @@ def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1024,7 +1025,7 @@ def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1046,15 +1047,15 @@ def _delete_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1070,7 +1071,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1098,14 +1099,14 @@ def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1144,7 +1145,7 @@ def get_user_by_name( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1167,14 +1168,14 @@ def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1213,7 +1214,7 @@ def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1236,14 +1237,14 @@ def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1282,7 +1283,7 @@ def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1305,15 +1306,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1337,7 +1338,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1366,14 +1367,14 @@ def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1415,7 +1416,7 @@ def login_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1438,14 +1439,14 @@ def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1487,7 +1488,7 @@ def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1510,14 +1511,14 @@ def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1559,7 +1560,7 @@ def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1582,15 +1583,15 @@ def _login_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1620,7 +1621,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1647,14 +1648,14 @@ def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1690,7 +1691,7 @@ def logout_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1709,14 +1710,14 @@ def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1752,7 +1753,7 @@ def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1771,14 +1772,14 @@ def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1814,7 +1815,7 @@ def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1833,15 +1834,15 @@ def _logout_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1855,7 +1856,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1884,14 +1885,14 @@ def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1933,7 +1934,7 @@ def update_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1956,14 +1957,14 @@ def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2005,7 +2006,7 @@ def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2028,14 +2029,14 @@ def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2077,7 +2078,7 @@ def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2100,15 +2101,15 @@ def _update_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2139,7 +2140,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py index c37f6b52d77f..1d210a1670dd 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -286,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -435,16 +435,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -477,7 +477,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -507,7 +507,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -541,7 +541,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -574,10 +574,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -592,7 +592,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py index 3137ff1f0c65..2d009246937e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -132,13 +132,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -148,11 +148,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -260,16 +260,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -411,7 +411,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -654,7 +654,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -707,7 +707,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py index e4860d83a3a2..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py index 6b7761f5bd2f..b5e08aa86a4f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_class.py @@ -33,8 +33,8 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py index 4426dc91ba3c..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py index e9cc738c41e1..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py index babb65c478e7..8db6944f75ff 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_super_model.py @@ -32,8 +32,8 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py index f53a08cbf80a..120572007721 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/all_of_with_single_ref.py @@ -34,8 +34,8 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["username", "SingleRefType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py index fb1a4b786fc6..8568510ee341 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/animal.py @@ -39,8 +39,8 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py index f817350224d6..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py index 796377e20aa4..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py index 71b8e3fb2f54..de8ba7802883 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_model.py @@ -33,8 +33,8 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["another_property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py index 9e99cb7b32ff..1e1d7f9045b0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[StrictFloat]]] = Field(default=None, alias="ArrayArrayNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py index dc1301ca0b52..85841f097156 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[StrictFloat]] = Field(default=None, alias="ArrayNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["ArrayNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py index 41f4393117c6..45c6534000d4 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/array_test.py @@ -37,8 +37,8 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[StrictFloat]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py index 71d61aa8ce90..0f0e7cd5fb49 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/base_discriminator.py @@ -38,8 +38,8 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py index c2a7cec0d209..c2cd8dbbb1e1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/basque_pig.py @@ -33,8 +33,8 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py index 37f7c81a43c2..93ac4500d0fe 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/bathing.py @@ -42,8 +42,8 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py index 0458520c52bf..805fe4108b51 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/capitalization.py @@ -37,8 +37,8 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py index 07850cabddfe..b68c93781b91 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/cat.py @@ -33,8 +33,8 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color", "declawed"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py index 138294ba8030..1ea75403b948 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/category.py @@ -33,8 +33,8 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py index 2b4e43d147b9..e6f645e0a24c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_all_of_ref.py @@ -33,8 +33,8 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py index 8f3759942c1a..892d9711402f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/circular_reference_model.py @@ -33,8 +33,8 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py index 68f9f3e159c5..0853fb65bad8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/class_model.py @@ -32,8 +32,8 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_class"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py index 46297a9eecb8..183726d18db3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/client.py @@ -32,8 +32,8 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["client"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py index 0e177f19497f..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py index aaab8be31a7e..2fc7149a5d87 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature.py @@ -39,8 +39,8 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["info", "type"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py index 18f5ac2b20d5..2f4938fe02a0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/creature_info.py @@ -32,8 +32,8 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py index 3ad181c41e6e..89f884552e9f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/danish_pig.py @@ -33,8 +33,8 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "size"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py index b6b8d87a791c..dd6cd83d3837 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/deprecated_object.py @@ -32,8 +32,8 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py index fd08b5a95ec4..868f74dcb5c7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_sub.py @@ -32,8 +32,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["elementType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py index c84fd0837567..6278ab30f2d3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/discriminator_all_of_super.py @@ -37,8 +37,8 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["elementType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py index 6f3a8bf16a64..f5d54fc52e02 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dog.py @@ -33,8 +33,8 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color", "breed"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py index 6891dd199afa..8046e431efcc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/dummy_model.py @@ -33,8 +33,8 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "self_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py index bcdb97590489..9058e733f38d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_arrays.py @@ -35,12 +35,12 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[list[Literal['fish', 'crab']]] = Field( + array_enum: Optional[List[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -71,8 +71,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -84,7 +84,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py index cea6ffb4cd0c..3e449adf0e6f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_ref_with_default_value.py @@ -33,8 +33,8 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["report_format"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py index 08e526ae4573..073dedc9bdc6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/enum_test.py @@ -73,8 +73,8 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -151,8 +151,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -164,7 +164,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py index bb03e56b8ba4..e09011847472 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/feeding.py @@ -42,8 +42,8 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py index 814fc4ece668..eac2fc3fa75f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file.py @@ -32,8 +32,8 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["sourceURI"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py index d29a4bc3a0b9..87305783132d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/file_schema_test_class.py @@ -34,8 +34,8 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["file", "files"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py index 432efb9e1d4a..aa09b8fc35d1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/first_ref.py @@ -33,8 +33,8 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "self_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py index 71e7e5c827f0..54b789dc9898 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo.py @@ -32,8 +32,8 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py index 3e41f5162438..57b8300cf68a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/foo_get_default_response.py @@ -33,8 +33,8 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["string"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py index a209834dc04f..0a0d3f749467 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/format_test.py @@ -52,8 +52,8 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -103,8 +103,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -116,7 +116,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py index 2d16e060d401..c257362d962c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/has_only_read_only.py @@ -33,8 +33,8 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar", "foo"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py index 79e5d7aa611e..ee3556ed4bd9 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/health_check_result.py @@ -32,8 +32,8 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["NullableMessage"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py index 797da2507599..ed6f42ca5e72 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/hunting_dog.py @@ -34,8 +34,8 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py index 528ceadccfae..eb39bdbbf9b3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/info.py @@ -33,8 +33,8 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName", "val"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py index bd03cd124b6c..8f9dccae1049 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/inner_dict_with_property.py @@ -32,8 +32,8 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["aProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py index 99d18a83c69f..6efebc64bb8e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/input_all_of.py @@ -33,8 +33,8 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["some_data"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py index 041480fc4454..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py index 4d6440538fbe..dbb29d6bb664 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/list_class.py @@ -32,8 +32,8 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["123-list"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py index 56f7376400ed..a126c9d91a52 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_of_array_of_model.py @@ -33,8 +33,8 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py index 882dc263e8b9..46761c0c152c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/map_test.py @@ -38,8 +38,8 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -60,8 +60,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -73,7 +73,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py index ec2c0ee5f776..f48e64f4d4e1 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,8 +37,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py index 67d1e0f19e33..0c8d37878e27 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model200_response.py @@ -33,8 +33,8 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name", "class"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py index 059861c9a1c6..7f8083a2c723 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_api_response.py @@ -34,8 +34,8 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["code", "type", "message"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py index 9bc84204184d..ade9abbc7c5a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_field.py @@ -32,8 +32,8 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["field"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py index 10ff4bc5fffc..dd0b7c0543db 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/model_return.py @@ -32,8 +32,8 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["return"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py index 681da26a2146..f6a8d5f85471 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/multi_arrays.py @@ -35,8 +35,8 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["tags", "files"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py index e80b30d8b057..789ef0f1d4a3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/name.py @@ -35,8 +35,8 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py index f4ba14002321..3a45254f66e8 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py index c5d4a5b66cdb..02b7aad029f2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/nullable_property.py @@ -34,8 +34,8 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -55,8 +55,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -68,7 +68,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py index d2dd89400fa8..212c773d7c2c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/number_only.py @@ -32,8 +32,8 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[StrictFloat] = Field(default=None, alias="JustNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["JustNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py index 4bd8e91e5a18..b7f82ceecb7f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_to_test_additional_properties.py @@ -32,8 +32,8 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py index 062ce86cf36c..58177ea3b446 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/object_with_deprecated_fields.py @@ -36,8 +36,8 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[StrictFloat] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py index 258c71f1a1fe..14c2747d90f2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,7 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py index 699ec96ce34a..f041cc53d7ee 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/order.py @@ -41,8 +41,8 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -62,8 +62,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py index c4251f7e2e00..3e3f8b2c937a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_composite.py @@ -34,8 +34,8 @@ class OuterComposite(BaseModel): my_number: Optional[StrictFloat] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py index 59fa5e9e8d68..e57f5bced289 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/outer_object_with_enum_property.py @@ -35,8 +35,8 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["str_value", "value"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py index 64082097b8e8..ad733ac8da5d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent.py @@ -33,8 +33,8 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["optionalDict"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py index 102548dfd483..4478538d6f3d 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/parent_with_optional_dict.py @@ -33,8 +33,8 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["optionalDict"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py index b0735f8ebc7f..c3a7db673d05 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pet.py @@ -43,8 +43,8 @@ class Pet(BaseModel): None, description="pet status in the store" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -64,8 +64,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py index adb1d8c256da..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py index f6374a7a04d0..dd567f0fe33a 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/pony_sizes.py @@ -33,8 +33,8 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["type"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py index b2902161a1fd..66989c9df600 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/poop_cleaning.py @@ -42,8 +42,8 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py index 7a3aefcac9df..fbea28277e65 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/primitive_string.py @@ -33,8 +33,8 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName", "_value"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py index 70756483156b..76ea44f26a87 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_map.py @@ -33,8 +33,8 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["some_data"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py index fba0f10540fc..057c7f6c1a4b 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/property_name_collision.py @@ -34,8 +34,8 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_type", "type", "type_"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py index 9ead2b27d8fe..2cf760a02076 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/read_only_first.py @@ -33,8 +33,8 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar", "baz"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py index a20742ece3fd..be7983dc2f20 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_circular_all_of_ref.py @@ -33,8 +33,8 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py index 555705e34ea8..a10a60ccf21f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/second_ref.py @@ -33,8 +33,8 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "circular_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py index c43282d64850..4343e2220413 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/self_reference_model.py @@ -33,8 +33,8 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py index 63ce4fe1e184..8c015def6b52 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_model_name.py @@ -32,8 +32,8 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["$special[property.name]"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py index d094362fe10e..8b975e1994c0 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/special_name.py @@ -38,8 +38,8 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["property", "async", "schema"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -59,8 +59,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py index a3431a14e3dd..2ef47be87be6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tag.py @@ -33,8 +33,8 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py index d227d8a38452..663316edfa32 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task.py @@ -35,8 +35,8 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "activity"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py index f92328a9751d..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py index 705e62291011..5fee02f6f074 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["reason400"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py index d29ee076dc29..667c21b33ee7 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["reason404"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py index c708ef356815..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["someProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py index eb1d3f814063..11a7f8d8be53 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_model_with_enum_default.py @@ -41,8 +41,8 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -62,8 +62,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 49114938ade7..b1903937130e 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,8 +32,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py index 83e8d0251bc3..2fa9f7b85517 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/tiger.py @@ -32,8 +32,8 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["skill"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index ab0656bb6e30..025fbcecb0a3 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,8 +33,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["dictProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 193ad8f9ef73..c8aa25e7e51f 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,8 +32,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["dictProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py index e1f9c7966ff8..9c861c822ea2 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,8 +32,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py index 1fbbdbac65af..3c1d1f299a0c 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/user.py @@ -39,8 +39,8 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -50,8 +50,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py index 12547cf536c3..732dcf720ecc 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/models/with_nested_one_of.py @@ -36,8 +36,8 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py index c52fe689fc96..e0ef058f4677 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import Optional, Union +from typing import List, Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[list[str]]=None, + signed_headers: Optional[List[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py index a9e011f9d7e7..1e19c6d880d1 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/another_fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ def call_123_test_special_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test special tags @@ -90,7 +91,7 @@ def call_123_test_special_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -111,14 +112,14 @@ def call_123_test_special_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test special tags @@ -157,7 +158,7 @@ def call_123_test_special_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -178,14 +179,14 @@ def call_123_test_special_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test special tags @@ -224,7 +225,7 @@ def call_123_test_special_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -245,15 +246,15 @@ def _call_123_test_special_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _call_123_test_special_tags_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py index d299b8f0e50a..5f05c540a238 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/default_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from petstore_api.models.foo_get_default_response import FooGetDefaultResponse @@ -41,14 +42,14 @@ def foo_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FooGetDefaultResponse: """foo_get @@ -83,7 +84,7 @@ def foo_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -102,14 +103,14 @@ def foo_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[FooGetDefaultResponse]: """foo_get @@ -144,7 +145,7 @@ def foo_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -163,14 +164,14 @@ def foo_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """foo_get @@ -205,7 +206,7 @@ def foo_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -224,15 +225,15 @@ def _foo_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -253,7 +254,7 @@ def _foo_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py index 244714f54f60..6d99595e3059 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import date, datetime from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator @@ -60,14 +61,14 @@ def fake_any_type_request_body( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test any type request body @@ -105,7 +106,7 @@ def fake_any_type_request_body( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -126,14 +127,14 @@ def fake_any_type_request_body_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test any type request body @@ -171,7 +172,7 @@ def fake_any_type_request_body_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -192,14 +193,14 @@ def fake_any_type_request_body_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test any type request body @@ -237,7 +238,7 @@ def fake_any_type_request_body_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -258,15 +259,15 @@ def _fake_any_type_request_body_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -295,7 +296,7 @@ def _fake_any_type_request_body_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -323,14 +324,14 @@ def fake_enum_ref_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test enum reference query parameter @@ -368,7 +369,7 @@ def fake_enum_ref_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -389,14 +390,14 @@ def fake_enum_ref_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test enum reference query parameter @@ -434,7 +435,7 @@ def fake_enum_ref_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -455,14 +456,14 @@ def fake_enum_ref_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum reference query parameter @@ -500,7 +501,7 @@ def fake_enum_ref_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -521,15 +522,15 @@ def _fake_enum_ref_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -547,7 +548,7 @@ def _fake_enum_ref_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -574,14 +575,14 @@ def fake_health_get( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> HealthCheckResult: """Health check endpoint @@ -616,7 +617,7 @@ def fake_health_get( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -636,14 +637,14 @@ def fake_health_get_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[HealthCheckResult]: """Health check endpoint @@ -678,7 +679,7 @@ def fake_health_get_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -698,14 +699,14 @@ def fake_health_get_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Health check endpoint @@ -740,7 +741,7 @@ def fake_health_get_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "HealthCheckResult", } response_data = self.api_client.call_api( @@ -760,15 +761,15 @@ def _fake_health_get_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -789,7 +790,7 @@ def _fake_health_get_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -819,14 +820,14 @@ def fake_http_signature_test( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test http signature authentication @@ -870,7 +871,7 @@ def fake_http_signature_test( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -893,14 +894,14 @@ def fake_http_signature_test_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test http signature authentication @@ -944,7 +945,7 @@ def fake_http_signature_test_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -967,14 +968,14 @@ def fake_http_signature_test_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test http signature authentication @@ -1018,7 +1019,7 @@ def fake_http_signature_test_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -1041,15 +1042,15 @@ def _fake_http_signature_test_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1085,7 +1086,7 @@ def _fake_http_signature_test_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_signature_test' ] @@ -1114,14 +1115,14 @@ def fake_outer_boolean_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """fake_outer_boolean_serialize @@ -1160,7 +1161,7 @@ def fake_outer_boolean_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1181,14 +1182,14 @@ def fake_outer_boolean_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """fake_outer_boolean_serialize @@ -1227,7 +1228,7 @@ def fake_outer_boolean_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1248,14 +1249,14 @@ def fake_outer_boolean_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_boolean_serialize @@ -1294,7 +1295,7 @@ def fake_outer_boolean_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -1315,15 +1316,15 @@ def _fake_outer_boolean_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1359,7 +1360,7 @@ def _fake_outer_boolean_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1387,14 +1388,14 @@ def fake_outer_composite_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterComposite: """fake_outer_composite_serialize @@ -1433,7 +1434,7 @@ def fake_outer_composite_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1454,14 +1455,14 @@ def fake_outer_composite_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterComposite]: """fake_outer_composite_serialize @@ -1500,7 +1501,7 @@ def fake_outer_composite_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1521,14 +1522,14 @@ def fake_outer_composite_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_composite_serialize @@ -1567,7 +1568,7 @@ def fake_outer_composite_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterComposite", } response_data = self.api_client.call_api( @@ -1588,15 +1589,15 @@ def _fake_outer_composite_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1632,7 +1633,7 @@ def _fake_outer_composite_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1660,14 +1661,14 @@ def fake_outer_number_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """fake_outer_number_serialize @@ -1706,7 +1707,7 @@ def fake_outer_number_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1727,14 +1728,14 @@ def fake_outer_number_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """fake_outer_number_serialize @@ -1773,7 +1774,7 @@ def fake_outer_number_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1794,14 +1795,14 @@ def fake_outer_number_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_number_serialize @@ -1840,7 +1841,7 @@ def fake_outer_number_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -1861,15 +1862,15 @@ def _fake_outer_number_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1905,7 +1906,7 @@ def _fake_outer_number_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1933,14 +1934,14 @@ def fake_outer_string_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """fake_outer_string_serialize @@ -1979,7 +1980,7 @@ def fake_outer_string_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2000,14 +2001,14 @@ def fake_outer_string_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """fake_outer_string_serialize @@ -2046,7 +2047,7 @@ def fake_outer_string_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2067,14 +2068,14 @@ def fake_outer_string_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_outer_string_serialize @@ -2113,7 +2114,7 @@ def fake_outer_string_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -2134,15 +2135,15 @@ def _fake_outer_string_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2178,7 +2179,7 @@ def _fake_outer_string_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2207,14 +2208,14 @@ def fake_property_enum_integer_serialize( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OuterObjectWithEnumProperty: """fake_property_enum_integer_serialize @@ -2256,7 +2257,7 @@ def fake_property_enum_integer_serialize( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2278,14 +2279,14 @@ def fake_property_enum_integer_serialize_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[OuterObjectWithEnumProperty]: """fake_property_enum_integer_serialize @@ -2327,7 +2328,7 @@ def fake_property_enum_integer_serialize_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2349,14 +2350,14 @@ def fake_property_enum_integer_serialize_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """fake_property_enum_integer_serialize @@ -2398,7 +2399,7 @@ def fake_property_enum_integer_serialize_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "OuterObjectWithEnumProperty", } response_data = self.api_client.call_api( @@ -2420,16 +2421,16 @@ def _fake_property_enum_integer_serialize_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'param': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2469,7 +2470,7 @@ def _fake_property_enum_integer_serialize_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2496,14 +2497,14 @@ def fake_ref_enum_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EnumClass: """test ref to enum string @@ -2538,7 +2539,7 @@ def fake_ref_enum_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2558,14 +2559,14 @@ def fake_ref_enum_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EnumClass]: """test ref to enum string @@ -2600,7 +2601,7 @@ def fake_ref_enum_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2620,14 +2621,14 @@ def fake_ref_enum_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test ref to enum string @@ -2662,7 +2663,7 @@ def fake_ref_enum_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "EnumClass", } response_data = self.api_client.call_api( @@ -2682,15 +2683,15 @@ def _fake_ref_enum_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2711,7 +2712,7 @@ def _fake_ref_enum_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2738,14 +2739,14 @@ def fake_return_boolean( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bool: """test returning boolean @@ -2780,7 +2781,7 @@ def fake_return_boolean( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2800,14 +2801,14 @@ def fake_return_boolean_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bool]: """test returning boolean @@ -2842,7 +2843,7 @@ def fake_return_boolean_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2862,14 +2863,14 @@ def fake_return_boolean_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning boolean @@ -2904,7 +2905,7 @@ def fake_return_boolean_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bool", } response_data = self.api_client.call_api( @@ -2924,15 +2925,15 @@ def _fake_return_boolean_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2953,7 +2954,7 @@ def _fake_return_boolean_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -2980,14 +2981,14 @@ def fake_return_byte_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> bytearray: """test byte like json @@ -3022,7 +3023,7 @@ def fake_return_byte_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3042,14 +3043,14 @@ def fake_return_byte_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[bytearray]: """test byte like json @@ -3084,7 +3085,7 @@ def fake_return_byte_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3104,14 +3105,14 @@ def fake_return_byte_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test byte like json @@ -3146,7 +3147,7 @@ def fake_return_byte_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "bytearray", } response_data = self.api_client.call_api( @@ -3166,15 +3167,15 @@ def _fake_return_byte_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3195,7 +3196,7 @@ def _fake_return_byte_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3222,14 +3223,14 @@ def fake_return_enum( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning enum @@ -3264,7 +3265,7 @@ def fake_return_enum( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3284,14 +3285,14 @@ def fake_return_enum_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning enum @@ -3326,7 +3327,7 @@ def fake_return_enum_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3346,14 +3347,14 @@ def fake_return_enum_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning enum @@ -3388,7 +3389,7 @@ def fake_return_enum_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3408,15 +3409,15 @@ def _fake_return_enum_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3437,7 +3438,7 @@ def _fake_return_enum_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3464,14 +3465,14 @@ def fake_return_enum_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test enum like json @@ -3506,7 +3507,7 @@ def fake_return_enum_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3526,14 +3527,14 @@ def fake_return_enum_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test enum like json @@ -3568,7 +3569,7 @@ def fake_return_enum_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3588,14 +3589,14 @@ def fake_return_enum_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test enum like json @@ -3630,7 +3631,7 @@ def fake_return_enum_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -3650,15 +3651,15 @@ def _fake_return_enum_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3679,7 +3680,7 @@ def _fake_return_enum_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3706,14 +3707,14 @@ def fake_return_float( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> float: """test returning float @@ -3748,7 +3749,7 @@ def fake_return_float( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3768,14 +3769,14 @@ def fake_return_float_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[float]: """test returning float @@ -3810,7 +3811,7 @@ def fake_return_float_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3830,14 +3831,14 @@ def fake_return_float_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning float @@ -3872,7 +3873,7 @@ def fake_return_float_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "float", } response_data = self.api_client.call_api( @@ -3892,15 +3893,15 @@ def _fake_return_float_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -3921,7 +3922,7 @@ def _fake_return_float_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -3948,14 +3949,14 @@ def fake_return_int( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> int: """test returning int @@ -3990,7 +3991,7 @@ def fake_return_int( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4010,14 +4011,14 @@ def fake_return_int_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[int]: """test returning int @@ -4052,7 +4053,7 @@ def fake_return_int_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4072,14 +4073,14 @@ def fake_return_int_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning int @@ -4114,7 +4115,7 @@ def fake_return_int_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "int", } response_data = self.api_client.call_api( @@ -4134,15 +4135,15 @@ def _fake_return_int_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4163,7 +4164,7 @@ def _fake_return_int_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4190,14 +4191,14 @@ def fake_return_list_of_objects( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[List[Tag]]: """test returning list of objects @@ -4232,7 +4233,7 @@ def fake_return_list_of_objects( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4252,14 +4253,14 @@ def fake_return_list_of_objects_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[List[Tag]]]: """test returning list of objects @@ -4294,7 +4295,7 @@ def fake_return_list_of_objects_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4314,14 +4315,14 @@ def fake_return_list_of_objects_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning list of objects @@ -4356,7 +4357,7 @@ def fake_return_list_of_objects_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[List[Tag]]", } response_data = self.api_client.call_api( @@ -4376,15 +4377,15 @@ def _fake_return_list_of_objects_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4405,7 +4406,7 @@ def _fake_return_list_of_objects_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4432,14 +4433,14 @@ def fake_return_str_like_json( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test str like json @@ -4474,7 +4475,7 @@ def fake_return_str_like_json( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4494,14 +4495,14 @@ def fake_return_str_like_json_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test str like json @@ -4536,7 +4537,7 @@ def fake_return_str_like_json_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4556,14 +4557,14 @@ def fake_return_str_like_json_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test str like json @@ -4598,7 +4599,7 @@ def fake_return_str_like_json_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4618,15 +4619,15 @@ def _fake_return_str_like_json_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4647,7 +4648,7 @@ def _fake_return_str_like_json_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4674,14 +4675,14 @@ def fake_return_string( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """test returning string @@ -4716,7 +4717,7 @@ def fake_return_string( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4736,14 +4737,14 @@ def fake_return_string_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """test returning string @@ -4778,7 +4779,7 @@ def fake_return_string_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4798,14 +4799,14 @@ def fake_return_string_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test returning string @@ -4840,7 +4841,7 @@ def fake_return_string_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", } response_data = self.api_client.call_api( @@ -4860,15 +4861,15 @@ def _fake_return_string_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -4889,7 +4890,7 @@ def _fake_return_string_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -4917,14 +4918,14 @@ def fake_uuid_example( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test uuid example @@ -4962,7 +4963,7 @@ def fake_uuid_example( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -4983,14 +4984,14 @@ def fake_uuid_example_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test uuid example @@ -5028,7 +5029,7 @@ def fake_uuid_example_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5049,14 +5050,14 @@ def fake_uuid_example_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test uuid example @@ -5094,7 +5095,7 @@ def fake_uuid_example_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5115,15 +5116,15 @@ def _fake_uuid_example_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5141,7 +5142,7 @@ def _fake_uuid_example_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5169,14 +5170,14 @@ def test_additional_properties_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced additionalProperties @@ -5215,7 +5216,7 @@ def test_additional_properties_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5236,14 +5237,14 @@ def test_additional_properties_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced additionalProperties @@ -5282,7 +5283,7 @@ def test_additional_properties_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5303,14 +5304,14 @@ def test_additional_properties_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced additionalProperties @@ -5349,7 +5350,7 @@ def test_additional_properties_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5370,15 +5371,15 @@ def _test_additional_properties_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5407,7 +5408,7 @@ def _test_additional_properties_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5435,14 +5436,14 @@ def test_body_with_binary( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_binary @@ -5481,7 +5482,7 @@ def test_body_with_binary( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5502,14 +5503,14 @@ def test_body_with_binary_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_binary @@ -5548,7 +5549,7 @@ def test_body_with_binary_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5569,14 +5570,14 @@ def test_body_with_binary_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_binary @@ -5615,7 +5616,7 @@ def test_body_with_binary_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5636,15 +5637,15 @@ def _test_body_with_binary_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5681,7 +5682,7 @@ def _test_body_with_binary_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5709,14 +5710,14 @@ def test_body_with_file_schema( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_file_schema @@ -5755,7 +5756,7 @@ def test_body_with_file_schema( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5776,14 +5777,14 @@ def test_body_with_file_schema_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_file_schema @@ -5822,7 +5823,7 @@ def test_body_with_file_schema_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5843,14 +5844,14 @@ def test_body_with_file_schema_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_file_schema @@ -5889,7 +5890,7 @@ def test_body_with_file_schema_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -5910,15 +5911,15 @@ def _test_body_with_file_schema_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -5947,7 +5948,7 @@ def _test_body_with_file_schema_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -5976,14 +5977,14 @@ def test_body_with_query_params( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_body_with_query_params @@ -6024,7 +6025,7 @@ def test_body_with_query_params( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6046,14 +6047,14 @@ def test_body_with_query_params_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_body_with_query_params @@ -6094,7 +6095,7 @@ def test_body_with_query_params_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6116,14 +6117,14 @@ def test_body_with_query_params_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_body_with_query_params @@ -6164,7 +6165,7 @@ def test_body_with_query_params_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6186,15 +6187,15 @@ def _test_body_with_query_params_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6227,7 +6228,7 @@ def _test_body_with_query_params_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6255,14 +6256,14 @@ def test_client_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test \"client\" model @@ -6301,7 +6302,7 @@ def test_client_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6322,14 +6323,14 @@ def test_client_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test \"client\" model @@ -6368,7 +6369,7 @@ def test_client_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6389,14 +6390,14 @@ def test_client_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test \"client\" model @@ -6435,7 +6436,7 @@ def test_client_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -6456,15 +6457,15 @@ def _test_client_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6500,7 +6501,7 @@ def _test_client_model_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6529,14 +6530,14 @@ def test_date_time_query_parameter( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_date_time_query_parameter @@ -6577,7 +6578,7 @@ def test_date_time_query_parameter( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6599,14 +6600,14 @@ def test_date_time_query_parameter_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_date_time_query_parameter @@ -6647,7 +6648,7 @@ def test_date_time_query_parameter_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6669,14 +6670,14 @@ def test_date_time_query_parameter_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_date_time_query_parameter @@ -6717,7 +6718,7 @@ def test_date_time_query_parameter_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -6739,15 +6740,15 @@ def _test_date_time_query_parameter_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -6778,7 +6779,7 @@ def _test_date_time_query_parameter_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -6805,14 +6806,14 @@ def test_empty_and_non_empty_responses( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test empty and non-empty responses @@ -6848,7 +6849,7 @@ def test_empty_and_non_empty_responses( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6869,14 +6870,14 @@ def test_empty_and_non_empty_responses_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test empty and non-empty responses @@ -6912,7 +6913,7 @@ def test_empty_and_non_empty_responses_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6933,14 +6934,14 @@ def test_empty_and_non_empty_responses_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test empty and non-empty responses @@ -6976,7 +6977,7 @@ def test_empty_and_non_empty_responses_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '206': "str", } @@ -6997,15 +6998,15 @@ def _test_empty_and_non_empty_responses_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7026,7 +7027,7 @@ def _test_empty_and_non_empty_responses_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7068,14 +7069,14 @@ def test_endpoint_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7156,7 +7157,7 @@ def test_endpoint_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7192,14 +7193,14 @@ def test_endpoint_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7280,7 +7281,7 @@ def test_endpoint_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7316,14 +7317,14 @@ def test_endpoint_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -7404,7 +7405,7 @@ def test_endpoint_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -7440,15 +7441,15 @@ def _test_endpoint_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7505,7 +7506,7 @@ def _test_endpoint_parameters_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'http_basic_test' ] @@ -7533,14 +7534,14 @@ def test_error_responses_with_model( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test error responses with model @@ -7575,7 +7576,7 @@ def test_error_responses_with_model( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7597,14 +7598,14 @@ def test_error_responses_with_model_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test error responses with model @@ -7639,7 +7640,7 @@ def test_error_responses_with_model_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7661,14 +7662,14 @@ def test_error_responses_with_model_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test error responses with model @@ -7703,7 +7704,7 @@ def test_error_responses_with_model_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '204': None, '400': "TestErrorResponsesWithModel400Response", '404': "TestErrorResponsesWithModel404Response", @@ -7725,15 +7726,15 @@ def _test_error_responses_with_model_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -7754,7 +7755,7 @@ def _test_error_responses_with_model_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -7787,14 +7788,14 @@ def test_group_parameters( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Fake endpoint to test group parameters (optional) @@ -7848,7 +7849,7 @@ def test_group_parameters( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7874,14 +7875,14 @@ def test_group_parameters_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Fake endpoint to test group parameters (optional) @@ -7935,7 +7936,7 @@ def test_group_parameters_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -7961,14 +7962,14 @@ def test_group_parameters_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Fake endpoint to test group parameters (optional) @@ -8022,7 +8023,7 @@ def test_group_parameters_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, } response_data = self.api_client.call_api( @@ -8048,15 +8049,15 @@ def _test_group_parameters_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8090,7 +8091,7 @@ def _test_group_parameters_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'bearer_test' ] @@ -8119,14 +8120,14 @@ def test_inline_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline additionalProperties @@ -8165,7 +8166,7 @@ def test_inline_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8186,14 +8187,14 @@ def test_inline_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline additionalProperties @@ -8232,7 +8233,7 @@ def test_inline_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8253,14 +8254,14 @@ def test_inline_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline additionalProperties @@ -8299,7 +8300,7 @@ def test_inline_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8320,15 +8321,15 @@ def _test_inline_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8357,7 +8358,7 @@ def _test_inline_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8385,14 +8386,14 @@ def test_inline_freeform_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test inline free-form additionalProperties @@ -8431,7 +8432,7 @@ def test_inline_freeform_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8452,14 +8453,14 @@ def test_inline_freeform_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test inline free-form additionalProperties @@ -8498,7 +8499,7 @@ def test_inline_freeform_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8519,14 +8520,14 @@ def test_inline_freeform_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test inline free-form additionalProperties @@ -8565,7 +8566,7 @@ def test_inline_freeform_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8586,15 +8587,15 @@ def _test_inline_freeform_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8623,7 +8624,7 @@ def _test_inline_freeform_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8652,14 +8653,14 @@ def test_json_form_data( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test json serialization of form data @@ -8701,7 +8702,7 @@ def test_json_form_data( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8723,14 +8724,14 @@ def test_json_form_data_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test json serialization of form data @@ -8772,7 +8773,7 @@ def test_json_form_data_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8794,14 +8795,14 @@ def test_json_form_data_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test json serialization of form data @@ -8843,7 +8844,7 @@ def test_json_form_data_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8865,15 +8866,15 @@ def _test_json_form_data_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -8904,7 +8905,7 @@ def _test_json_form_data_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -8932,14 +8933,14 @@ def test_object_for_multipart_requests( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_object_for_multipart_requests @@ -8977,7 +8978,7 @@ def test_object_for_multipart_requests( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -8998,14 +8999,14 @@ def test_object_for_multipart_requests_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_object_for_multipart_requests @@ -9043,7 +9044,7 @@ def test_object_for_multipart_requests_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9064,14 +9065,14 @@ def test_object_for_multipart_requests_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_object_for_multipart_requests @@ -9109,7 +9110,7 @@ def test_object_for_multipart_requests_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9130,15 +9131,15 @@ def _test_object_for_multipart_requests_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9167,7 +9168,7 @@ def _test_object_for_multipart_requests_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9201,14 +9202,14 @@ def test_query_parameter_collection_format( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test_query_parameter_collection_format @@ -9265,7 +9266,7 @@ def test_query_parameter_collection_format( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9292,14 +9293,14 @@ def test_query_parameter_collection_format_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test_query_parameter_collection_format @@ -9356,7 +9357,7 @@ def test_query_parameter_collection_format_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9383,14 +9384,14 @@ def test_query_parameter_collection_format_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test_query_parameter_collection_format @@ -9447,7 +9448,7 @@ def test_query_parameter_collection_format_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9474,7 +9475,7 @@ def _test_query_parameter_collection_format_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'pipe': 'pipes', 'ioutil': 'csv', 'http': 'ssv', @@ -9482,12 +9483,12 @@ def _test_query_parameter_collection_format_serialize( 'context': 'multi', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9529,7 +9530,7 @@ def _test_query_parameter_collection_format_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9557,14 +9558,14 @@ def test_string_map_reference( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """test referenced string map @@ -9603,7 +9604,7 @@ def test_string_map_reference( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9624,14 +9625,14 @@ def test_string_map_reference_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """test referenced string map @@ -9670,7 +9671,7 @@ def test_string_map_reference_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9691,14 +9692,14 @@ def test_string_map_reference_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test referenced string map @@ -9737,7 +9738,7 @@ def test_string_map_reference_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, } response_data = self.api_client.call_api( @@ -9758,15 +9759,15 @@ def _test_string_map_reference_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -9795,7 +9796,7 @@ def _test_string_map_reference_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -9825,14 +9826,14 @@ def upload_file_with_additional_properties( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads a file and additional properties using multipart/form-data @@ -9877,7 +9878,7 @@ def upload_file_with_additional_properties( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9900,14 +9901,14 @@ def upload_file_with_additional_properties_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads a file and additional properties using multipart/form-data @@ -9952,7 +9953,7 @@ def upload_file_with_additional_properties_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -9975,14 +9976,14 @@ def upload_file_with_additional_properties_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads a file and additional properties using multipart/form-data @@ -10027,7 +10028,7 @@ def upload_file_with_additional_properties_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -10050,15 +10051,15 @@ def _upload_file_with_additional_properties_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -10098,7 +10099,7 @@ def _upload_file_with_additional_properties_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py index 5cafd6d486fb..c5596bef9393 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_classname_tags123_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field from typing_extensions import Annotated @@ -44,14 +45,14 @@ def test_classname( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Client: """To test class name in snake case @@ -90,7 +91,7 @@ def test_classname( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -111,14 +112,14 @@ def test_classname_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Client]: """To test class name in snake case @@ -157,7 +158,7 @@ def test_classname_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -178,14 +179,14 @@ def test_classname_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """To test class name in snake case @@ -224,7 +225,7 @@ def test_classname_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Client", } response_data = self.api_client.call_api( @@ -245,15 +246,15 @@ def _test_classname_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -289,7 +290,7 @@ def _test_classname_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key_query' ] diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py index ab56380ac74d..a59a3c99cbc4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/import_test_datetime_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from datetime import datetime @@ -41,14 +42,14 @@ def import_test_return_datetime( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> datetime: """test date time @@ -83,7 +84,7 @@ def import_test_return_datetime( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -103,14 +104,14 @@ def import_test_return_datetime_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[datetime]: """test date time @@ -145,7 +146,7 @@ def import_test_return_datetime_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -165,14 +166,14 @@ def import_test_return_datetime_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """test date time @@ -207,7 +208,7 @@ def import_test_return_datetime_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "datetime", } response_data = self.api_client.call_api( @@ -227,15 +228,15 @@ def _import_test_return_datetime_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -256,7 +257,7 @@ def _import_test_return_datetime_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py index 2c97d4e70d07..21539d3dde23 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/pet_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictBytes, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union @@ -46,14 +47,14 @@ def add_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Add a new pet to the store @@ -92,7 +93,7 @@ def add_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -114,14 +115,14 @@ def add_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Add a new pet to the store @@ -160,7 +161,7 @@ def add_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -182,14 +183,14 @@ def add_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Add a new pet to the store @@ -228,7 +229,7 @@ def add_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -250,15 +251,15 @@ def _add_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -288,7 +289,7 @@ def _add_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -319,14 +320,14 @@ def delete_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Deletes a pet @@ -368,7 +369,7 @@ def delete_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -391,14 +392,14 @@ def delete_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Deletes a pet @@ -440,7 +441,7 @@ def delete_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -463,14 +464,14 @@ def delete_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Deletes a pet @@ -512,7 +513,7 @@ def delete_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, } @@ -535,15 +536,15 @@ def _delete_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -561,7 +562,7 @@ def _delete_pet_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -590,14 +591,14 @@ def find_pets_by_status( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """Finds Pets by status @@ -636,7 +637,7 @@ def find_pets_by_status( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -658,14 +659,14 @@ def find_pets_by_status_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """Finds Pets by status @@ -704,7 +705,7 @@ def find_pets_by_status_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -726,14 +727,14 @@ def find_pets_by_status_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Finds Pets by status @@ -772,7 +773,7 @@ def find_pets_by_status_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -794,16 +795,16 @@ def _find_pets_by_status_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'status': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -829,7 +830,7 @@ def _find_pets_by_status_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -859,14 +860,14 @@ def find_pets_by_tags( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> List[Pet]: """(Deprecated) Finds Pets by tags @@ -906,7 +907,7 @@ def find_pets_by_tags( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -928,14 +929,14 @@ def find_pets_by_tags_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[List[Pet]]: """(Deprecated) Finds Pets by tags @@ -975,7 +976,7 @@ def find_pets_by_tags_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -997,14 +998,14 @@ def find_pets_by_tags_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """(Deprecated) Finds Pets by tags @@ -1044,7 +1045,7 @@ def find_pets_by_tags_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "List[Pet]", '400': None, } @@ -1066,16 +1067,16 @@ def _find_pets_by_tags_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'tags': 'csv', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1101,7 +1102,7 @@ def _find_pets_by_tags_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1131,14 +1132,14 @@ def get_pet_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Pet: """Find pet by ID @@ -1177,7 +1178,7 @@ def get_pet_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1200,14 +1201,14 @@ def get_pet_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Pet]: """Find pet by ID @@ -1246,7 +1247,7 @@ def get_pet_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1269,14 +1270,14 @@ def get_pet_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find pet by ID @@ -1315,7 +1316,7 @@ def get_pet_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Pet", '400': None, '404': None, @@ -1338,15 +1339,15 @@ def _get_pet_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1370,7 +1371,7 @@ def _get_pet_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -1399,14 +1400,14 @@ def update_pet( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Update an existing pet @@ -1445,7 +1446,7 @@ def update_pet( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1469,14 +1470,14 @@ def update_pet_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Update an existing pet @@ -1515,7 +1516,7 @@ def update_pet_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1539,14 +1540,14 @@ def update_pet_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Update an existing pet @@ -1585,7 +1586,7 @@ def update_pet_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '400': None, '404': None, @@ -1609,15 +1610,15 @@ def _update_pet_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1647,7 +1648,7 @@ def _update_pet_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth', 'http_signature_test' ] @@ -1679,14 +1680,14 @@ def update_pet_with_form( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updates a pet in the store with form data @@ -1731,7 +1732,7 @@ def update_pet_with_form( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1755,14 +1756,14 @@ def update_pet_with_form_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updates a pet in the store with form data @@ -1807,7 +1808,7 @@ def update_pet_with_form_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1831,14 +1832,14 @@ def update_pet_with_form_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updates a pet in the store with form data @@ -1883,7 +1884,7 @@ def update_pet_with_form_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': None, '405': None, } @@ -1907,15 +1908,15 @@ def _update_pet_with_form_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1948,7 +1949,7 @@ def _update_pet_with_form_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -1979,14 +1980,14 @@ def upload_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image @@ -2031,7 +2032,7 @@ def upload_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2054,14 +2055,14 @@ def upload_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image @@ -2106,7 +2107,7 @@ def upload_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2129,14 +2130,14 @@ def upload_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image @@ -2181,7 +2182,7 @@ def upload_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2204,15 +2205,15 @@ def _upload_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2252,7 +2253,7 @@ def _upload_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] @@ -2283,14 +2284,14 @@ def upload_file_with_required_file( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ModelApiResponse: """uploads an image (required) @@ -2335,7 +2336,7 @@ def upload_file_with_required_file( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2358,14 +2359,14 @@ def upload_file_with_required_file_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ModelApiResponse]: """uploads an image (required) @@ -2410,7 +2411,7 @@ def upload_file_with_required_file_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2433,14 +2434,14 @@ def upload_file_with_required_file_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """uploads an image (required) @@ -2485,7 +2486,7 @@ def upload_file_with_required_file_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "ModelApiResponse", } response_data = self.api_client.call_api( @@ -2508,15 +2509,15 @@ def _upload_file_with_required_file_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2556,7 +2557,7 @@ def _upload_file_with_required_file_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'petstore_auth' ] diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py index 316a6f0ab3f4..edb9dce2f565 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/store_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictInt, StrictStr from typing import Dict @@ -45,14 +46,14 @@ def delete_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete purchase order by ID @@ -91,7 +92,7 @@ def delete_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -113,14 +114,14 @@ def delete_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete purchase order by ID @@ -159,7 +160,7 @@ def delete_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -181,14 +182,14 @@ def delete_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete purchase order by ID @@ -227,7 +228,7 @@ def delete_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -249,15 +250,15 @@ def _delete_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -273,7 +274,7 @@ def _delete_order_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -300,14 +301,14 @@ def get_inventory( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Dict[str, int]: """Returns pet inventories by status @@ -343,7 +344,7 @@ def get_inventory( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -363,14 +364,14 @@ def get_inventory_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Dict[str, int]]: """Returns pet inventories by status @@ -406,7 +407,7 @@ def get_inventory_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -426,14 +427,14 @@ def get_inventory_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Returns pet inventories by status @@ -469,7 +470,7 @@ def get_inventory_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Dict[str, int]", } response_data = self.api_client.call_api( @@ -489,15 +490,15 @@ def _get_inventory_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -518,7 +519,7 @@ def _get_inventory_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ 'api_key' ] @@ -547,14 +548,14 @@ def get_order_by_id( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Find purchase order by ID @@ -593,7 +594,7 @@ def get_order_by_id( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -616,14 +617,14 @@ def get_order_by_id_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Find purchase order by ID @@ -662,7 +663,7 @@ def get_order_by_id_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -685,14 +686,14 @@ def get_order_by_id_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Find purchase order by ID @@ -731,7 +732,7 @@ def get_order_by_id_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, '404': None, @@ -754,15 +755,15 @@ def _get_order_by_id_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -786,7 +787,7 @@ def _get_order_by_id_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -814,14 +815,14 @@ def place_order( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Order: """Place an order for a pet @@ -860,7 +861,7 @@ def place_order( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -882,14 +883,14 @@ def place_order_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Order]: """Place an order for a pet @@ -928,7 +929,7 @@ def place_order_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -950,14 +951,14 @@ def place_order_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Place an order for a pet @@ -996,7 +997,7 @@ def place_order_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "Order", '400': None, } @@ -1018,15 +1019,15 @@ def _place_order_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1063,7 +1064,7 @@ def _place_order_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py index c0611ae9f27f..b19c4fb54a4f 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/user_api.py @@ -13,7 +13,8 @@ import warnings from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt -from typing import Any, Optional, Union, Annotated +from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Annotated from pydantic import Field, StrictStr from typing import List @@ -45,14 +46,14 @@ def create_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> None: """Create user @@ -91,7 +92,7 @@ def create_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -111,14 +112,14 @@ def create_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> ApiResponse[None]: """Create user @@ -157,7 +158,7 @@ def create_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -177,14 +178,14 @@ def create_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=4)] = 0, ) -> RESTResponseType: """Create user @@ -223,7 +224,7 @@ def create_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -249,15 +250,15 @@ def _create_user_serialize( ] _host = _hosts[_host_index] - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -286,7 +287,7 @@ def _create_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -314,14 +315,14 @@ def create_users_with_array_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -360,7 +361,7 @@ def create_users_with_array_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -380,14 +381,14 @@ def create_users_with_array_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -426,7 +427,7 @@ def create_users_with_array_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -446,14 +447,14 @@ def create_users_with_array_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -492,7 +493,7 @@ def create_users_with_array_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -512,16 +513,16 @@ def _create_users_with_array_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -550,7 +551,7 @@ def _create_users_with_array_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -578,14 +579,14 @@ def create_users_with_list_input( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Creates list of users with given input array @@ -624,7 +625,7 @@ def create_users_with_list_input( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -644,14 +645,14 @@ def create_users_with_list_input_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Creates list of users with given input array @@ -690,7 +691,7 @@ def create_users_with_list_input_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -710,14 +711,14 @@ def create_users_with_list_input_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Creates list of users with given input array @@ -756,7 +757,7 @@ def create_users_with_list_input_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -776,16 +777,16 @@ def _create_users_with_list_input_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { 'User': '', } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -814,7 +815,7 @@ def _create_users_with_list_input_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -842,14 +843,14 @@ def delete_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Delete user @@ -888,7 +889,7 @@ def delete_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -910,14 +911,14 @@ def delete_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Delete user @@ -956,7 +957,7 @@ def delete_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -978,14 +979,14 @@ def delete_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Delete user @@ -1024,7 +1025,7 @@ def delete_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1046,15 +1047,15 @@ def _delete_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1070,7 +1071,7 @@ def _delete_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1098,14 +1099,14 @@ def get_user_by_name( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> User: """Get user by user name @@ -1144,7 +1145,7 @@ def get_user_by_name( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1167,14 +1168,14 @@ def get_user_by_name_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[User]: """Get user by user name @@ -1213,7 +1214,7 @@ def get_user_by_name_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1236,14 +1237,14 @@ def get_user_by_name_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Get user by user name @@ -1282,7 +1283,7 @@ def get_user_by_name_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "User", '400': None, '404': None, @@ -1305,15 +1306,15 @@ def _get_user_by_name_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1337,7 +1338,7 @@ def _get_user_by_name_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1366,14 +1367,14 @@ def login_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> str: """Logs user into the system @@ -1415,7 +1416,7 @@ def login_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1438,14 +1439,14 @@ def login_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[str]: """Logs user into the system @@ -1487,7 +1488,7 @@ def login_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1510,14 +1511,14 @@ def login_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs user into the system @@ -1559,7 +1560,7 @@ def login_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '200': "str", '400': None, } @@ -1582,15 +1583,15 @@ def _login_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1620,7 +1621,7 @@ def _login_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1647,14 +1648,14 @@ def logout_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Logs out current logged in user session @@ -1690,7 +1691,7 @@ def logout_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1709,14 +1710,14 @@ def logout_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Logs out current logged in user session @@ -1752,7 +1753,7 @@ def logout_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1771,14 +1772,14 @@ def logout_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Logs out current logged in user session @@ -1814,7 +1815,7 @@ def logout_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { } response_data = self.api_client.call_api( *_param, @@ -1833,15 +1834,15 @@ def _logout_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -1855,7 +1856,7 @@ def _logout_user_serialize( # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( @@ -1884,14 +1885,14 @@ def update_user( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: """Updated user @@ -1933,7 +1934,7 @@ def update_user( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -1956,14 +1957,14 @@ def update_user_with_http_info( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: """Updated user @@ -2005,7 +2006,7 @@ def update_user_with_http_info( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2028,14 +2029,14 @@ def update_user_without_preload_content( _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], - tuple[ + Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, - _request_auth: Optional[dict[StrictStr, Any]] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[dict[StrictStr, Any]] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: """Updated user @@ -2077,7 +2078,7 @@ def update_user_without_preload_content( _host_index=_host_index ) - _response_types_map: dict[str, Optional[str]] = { + _response_types_map: Dict[str, Optional[str]] = { '400': None, '404': None, } @@ -2100,15 +2101,15 @@ def _update_user_serialize( _host = None - _collection_formats: dict[str, str] = { + _collection_formats: Dict[str, str] = { } - _path_params: dict[str, str] = {} - _query_params: list[tuple[str, str]] = [] - _header_params: dict[str, Optional[str]] = _headers or {} - _form_params: list[tuple[str, str]] = [] - _files: dict[ - str, Union[str, bytes, list[str], list[bytes], list[tuple[str, bytes]]] + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] ] = {} _body_params: Optional[bytes] = None @@ -2139,7 +2140,7 @@ def _update_user_serialize( _header_params['Content-Type'] = _default_content_type # authentication setting - _auth_settings: list[str] = [ + _auth_settings: List[str] = [ ] return self.api_client.param_serialize( diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index c37f6b52d77f..1d210a1670dd 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -24,7 +24,7 @@ import uuid from urllib.parse import quote -from typing import Optional, Union +from typing import Tuple, Optional, List, Dict, Union from pydantic import SecretStr from petstore_api.configuration import Configuration @@ -41,7 +41,7 @@ ServiceException ) -RequestSerialized = tuple[str, str, dict[str, str], Optional[str], list[str]] +RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] class ApiClient: """Generic API client for OpenAPI client library builds. @@ -286,7 +286,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]]=None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -435,16 +435,16 @@ def __deserialize(self, data, klass): return None if isinstance(klass, str): - if klass.startswith('list['): - m = re.match(r'list\[(.*)]', klass) - assert m is not None, "Malformed list type definition" + if klass.startswith('List['): + m = re.match(r'List\[(.*)]', klass) + assert m is not None, "Malformed List type definition" sub_kls = m.group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] - if klass.startswith('dict['): - m = re.match(r'dict\[([^,]*), (.*)]', klass) - assert m is not None, "Malformed dict type definition" + if klass.startswith('Dict['): + m = re.match(r'Dict\[([^,]*), (.*)]', klass) + assert m is not None, "Malformed Dict type definition" sub_kls = m.group(2) return {k: self.__deserialize(v, sub_kls) for k, v in data.items()} @@ -477,7 +477,7 @@ def parameters_to_tuples(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: Parameters as list of tuples, collections formatted """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -507,7 +507,7 @@ def parameters_to_url_query(self, params, collection_formats): :param dict collection_formats: Parameter collection formats :return: URL query string (e.g. a=Hello%20World&b=123) """ - new_params: list[tuple[str, str]] = [] + new_params: List[Tuple[str, str]] = [] if collection_formats is None: collection_formats = {} for k, v in params.items() if isinstance(params, dict) else params: @@ -541,7 +541,7 @@ def parameters_to_url_query(self, params, collection_formats): def files_parameters( self, - files: dict[str, Union[str, bytes, list[str], list[bytes], tuple[str, bytes]]], + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], ): """Builds form parameters. @@ -574,10 +574,10 @@ def files_parameters( ) return params - def select_header_accept(self, accepts: list[str]) -> Optional[str]: + def select_header_accept(self, accepts: List[str]) -> Optional[str]: """Returns `Accept` based on an array of accepts provided. - :param accepts: list of headers. + :param accepts: List of headers. :return: Accept (e.g. application/json). """ if not accepts: @@ -592,7 +592,7 @@ def select_header_accept(self, accepts: list[str]) -> Optional[str]: def select_header_content_type(self, content_types): """Returns `Content-Type` based on an array of content_types provided. - :param content_types: list of content-types. + :param content_types: List of content-types. :return: Content-Type (e.g. application/json). """ if not content_types: diff --git a/samples/openapi3/client/petstore/python/petstore_api/configuration.py b/samples/openapi3/client/petstore/python/petstore_api/configuration.py index 3137ff1f0c65..2d009246937e 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/configuration.py +++ b/samples/openapi3/client/petstore/python/petstore_api/configuration.py @@ -18,7 +18,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Literal, Optional, TypedDict, Union +from typing import Any, ClassVar, Dict, List Literal, Optional, TypedDict, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import NotRequired, Self @@ -35,7 +35,7 @@ 'minLength', 'pattern', 'maxItems', 'minItems' } -ServerVariablesT = dict[str, str] +ServerVariablesT = Dict[str, str] GenericAuthSetting = TypedDict( "GenericAuthSetting", @@ -132,13 +132,13 @@ class HostSettingVariable(TypedDict): description: str default_value: str - enum_values: list[str] + enum_values: List[str] class HostSetting(TypedDict): url: str description: str - variables: NotRequired[dict[str, HostSettingVariable]] + variables: NotRequired[Dict[str, HostSettingVariable]] class Configuration: @@ -148,11 +148,11 @@ class Configuration: :param ignore_operation_servers Boolean to ignore operation servers for the API client. Config will use `host` as the base url regardless of the operation servers. - :param api_key: dict to store API key(s). + :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. The dict value is the API key secret. - :param api_key_prefix: dict to store API prefix (e.g. Bearer). + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). The dict key is the name of the security scheme in the OAS specification. The dict value is an API key prefix when generating the auth data. :param username: Username for HTTP basic authentication. @@ -260,16 +260,16 @@ class Configuration: def __init__( self, host: Optional[str]=None, - api_key: Optional[dict[str, str]]=None, - api_key_prefix: Optional[dict[str, str]]=None, + api_key: Optional[Dict[str, str]]=None, + api_key_prefix: Optional[Dict[str, str]]=None, username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, signing_info: Optional[HttpSigningConfiguration]=None, server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[dict[int, int]]=None, - server_operation_variables: Optional[dict[int, ServerVariablesT]]=None, + server_operation_index: Optional[Dict[int, int]]=None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, @@ -411,7 +411,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -654,7 +654,7 @@ def to_debug_report(self) -> str: "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) - def get_host_settings(self) -> list[HostSetting]: + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -707,7 +707,7 @@ def get_host_from_settings( self, index: Optional[int], variables: Optional[ServerVariablesT]=None, - servers: Optional[list[HostSetting]]=None, + servers: Optional[List[HostSetting]]=None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py index e4860d83a3a2..85df560d9f37 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_any_type.py @@ -32,8 +32,8 @@ class AdditionalPropertiesAnyType(BaseModel): AdditionalPropertiesAnyType """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesAnyType(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py index 6b7761f5bd2f..b5e08aa86a4f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_class.py @@ -33,8 +33,8 @@ class AdditionalPropertiesClass(BaseModel): """ # noqa: E501 map_property: Optional[Dict[str, StrictStr]] = None map_of_map_property: Optional[Dict[str, Dict[str, StrictStr]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["map_property", "map_of_map_property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["map_property", "map_of_map_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class AdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py index 4426dc91ba3c..4acc98cef6d8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_object.py @@ -32,8 +32,8 @@ class AdditionalPropertiesObject(BaseModel): AdditionalPropertiesObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py index e9cc738c41e1..276fe21f1876 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/additional_properties_with_description_only.py @@ -32,8 +32,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): AdditionalPropertiesWithDescriptionOnly """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AdditionalPropertiesWithDescriptionOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py index babb65c478e7..8db6944f75ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_super_model.py @@ -32,8 +32,8 @@ class AllOfSuperModel(BaseModel): AllOfSuperModel """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class AllOfSuperModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py index f53a08cbf80a..120572007721 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/all_of_with_single_ref.py @@ -34,8 +34,8 @@ class AllOfWithSingleRef(BaseModel): """ # noqa: E501 username: Optional[StrictStr] = None single_ref_type: Optional[SingleRefType] = Field(default=None, alias="SingleRefType") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["username", "SingleRefType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["username", "SingleRefType"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class AllOfWithSingleRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py index fb1a4b786fc6..8568510ee341 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/animal.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/animal.py @@ -39,8 +39,8 @@ class Animal(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: Optional[StrictStr] = 'red' - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Animal(BaseModel): __discriminator_property_name: ClassVar[str] = 'className' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Cat': 'Cat','Dog': 'Dog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py index f817350224d6..e37e6f0d046e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py index 796377e20aa4..9b54902cf4f7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/any_of_pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py index 71b8e3fb2f54..de8ba7802883 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_model.py @@ -33,8 +33,8 @@ class ArrayOfArrayOfModel(BaseModel): ArrayOfArrayOfModel """ # noqa: E501 another_property: Optional[List[List[Tag]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["another_property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["another_property"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ArrayOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py index 9e99cb7b32ff..1e1d7f9045b0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): ArrayOfArrayOfNumberOnly """ # noqa: E501 array_array_number: Optional[List[List[StrictFloat]]] = Field(default=None, alias="ArrayArrayNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["ArrayArrayNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["ArrayArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py index dc1301ca0b52..85841f097156 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_of_number_only.py @@ -32,8 +32,8 @@ class ArrayOfNumberOnly(BaseModel): ArrayOfNumberOnly """ # noqa: E501 array_number: Optional[List[StrictFloat]] = Field(default=None, alias="ArrayNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["ArrayNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["ArrayNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ArrayOfNumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py index 41f4393117c6..45c6534000d4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/array_test.py @@ -37,8 +37,8 @@ class ArrayTest(BaseModel): array_of_nullable_float: Optional[List[Optional[StrictFloat]]] = None array_array_of_integer: Optional[List[List[StrictInt]]] = None array_array_of_model: Optional[List[List[ReadOnlyFirst]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["array_of_string", "array_of_nullable_float", "array_array_of_integer", "array_array_of_model"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class ArrayTest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py index 71d61aa8ce90..0f0e7cd5fb49 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/base_discriminator.py @@ -38,8 +38,8 @@ class BaseDiscriminator(BaseModel): BaseDiscriminator """ # noqa: E501 type_name: Optional[StrictStr] = Field(default=None, alias="_typeName") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName"] model_config = ConfigDict( populate_by_name=True, @@ -52,12 +52,12 @@ class BaseDiscriminator(BaseModel): __discriminator_property_name: ClassVar[str] = '_typeName' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'string': 'PrimitiveString','Info': 'Info' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -66,8 +66,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -79,7 +79,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py index c2a7cec0d209..c2cd8dbbb1e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/basque_pig.py @@ -33,8 +33,8 @@ class BasquePig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") color: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class BasquePig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py index 37f7c81a43c2..93ac4500d0fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/bathing.py @@ -42,8 +42,8 @@ class Bathing(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py index 0458520c52bf..805fe4108b51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/capitalization.py @@ -37,8 +37,8 @@ class Capitalization(BaseModel): capital_snake: Optional[StrictStr] = Field(default=None, alias="Capital_Snake") sca_eth_flow_points: Optional[StrictStr] = Field(default=None, alias="SCA_ETH_Flow_Points") att_name: Optional[StrictStr] = Field(default=None, description="Name of the pet ", alias="ATT_NAME") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class Capitalization(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py index 07850cabddfe..b68c93781b91 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/cat.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/cat.py @@ -33,8 +33,8 @@ class Cat(Animal): Cat """ # noqa: E501 declawed: Optional[StrictBool] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color", "declawed"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color", "declawed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Cat(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/category.py b/samples/openapi3/client/petstore/python/petstore_api/models/category.py index 138294ba8030..1ea75403b948 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/category.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/category.py @@ -33,8 +33,8 @@ class Category(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Category(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py index 2b4e43d147b9..e6f645e0a24c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_all_of_ref.py @@ -33,8 +33,8 @@ class CircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") second_circular_all_of_ref: Optional[List[SecondCircularAllOfRef]] = Field(default=None, alias="secondCircularAllOfRef") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name", "secondCircularAllOfRef"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name", "secondCircularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py index 8f3759942c1a..892d9711402f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/circular_reference_model.py @@ -33,8 +33,8 @@ class CircularReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[FirstRef] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class CircularReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py index 68f9f3e159c5..0853fb65bad8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/class_model.py @@ -32,8 +32,8 @@ class ClassModel(BaseModel): Model for testing model with \"_class\" property """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="_class") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_class"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_class"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ClassModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/client.py b/samples/openapi3/client/petstore/python/petstore_api/models/client.py index 46297a9eecb8..183726d18db3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/client.py @@ -32,8 +32,8 @@ class Client(BaseModel): Client """ # noqa: E501 client: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["client"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["client"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Client(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/color.py b/samples/openapi3/client/petstore/python/petstore_api/models/color.py index 0e177f19497f..ec7cc5950048 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/color.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/color.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py index aaab8be31a7e..2fc7149a5d87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature.py @@ -39,8 +39,8 @@ class Creature(BaseModel): """ # noqa: E501 info: CreatureInfo type: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["info", "type"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["info", "type"] model_config = ConfigDict( populate_by_name=True, @@ -53,12 +53,12 @@ class Creature(BaseModel): __discriminator_property_name: ClassVar[str] = 'type' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'Hunting__Dog': 'HuntingDog' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -67,8 +67,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py index 18f5ac2b20d5..2f4938fe02a0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/creature_info.py @@ -32,8 +32,8 @@ class CreatureInfo(BaseModel): CreatureInfo """ # noqa: E501 name: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class CreatureInfo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py index 3ad181c41e6e..89f884552e9f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/danish_pig.py @@ -33,8 +33,8 @@ class DanishPig(BaseModel): """ # noqa: E501 class_name: StrictStr = Field(alias="className") size: StrictInt - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "size"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "size"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DanishPig(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py index b6b8d87a791c..dd6cd83d3837 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/deprecated_object.py @@ -32,8 +32,8 @@ class DeprecatedObject(BaseModel): DeprecatedObject """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DeprecatedObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py index fd08b5a95ec4..868f74dcb5c7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_sub.py @@ -32,8 +32,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): """ DiscriminatorAllOfSub """ # noqa: E501 - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["elementType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class DiscriminatorAllOfSub(DiscriminatorAllOfSuper): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py index c84fd0837567..6278ab30f2d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/discriminator_all_of_super.py @@ -37,8 +37,8 @@ class DiscriminatorAllOfSuper(BaseModel): DiscriminatorAllOfSuper """ # noqa: E501 element_type: StrictStr = Field(alias="elementType") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["elementType"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["elementType"] model_config = ConfigDict( populate_by_name=True, @@ -51,12 +51,12 @@ class DiscriminatorAllOfSuper(BaseModel): __discriminator_property_name: ClassVar[str] = 'elementType' # discriminator mappings - __discriminator_value_class_map: ClassVar[dict[str, str]] = { + __discriminator_value_class_map: ClassVar[Dict[str, str]] = { 'DiscriminatorAllOfSub': 'DiscriminatorAllOfSub' } @classmethod - def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: + def get_discriminator_value(cls, obj: Dict[str, Any]) -> Optional[str]: """Returns the discriminator value (object type) of the data""" discriminator_value = obj[cls.__discriminator_property_name] if discriminator_value: @@ -65,8 +65,8 @@ def get_discriminator_value(cls, obj: dict[str, Any]) -> Optional[str]: return None @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -78,7 +78,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py index 6f3a8bf16a64..f5d54fc52e02 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dog.py @@ -33,8 +33,8 @@ class Dog(Animal): Dog """ # noqa: E501 breed: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["className", "color", "breed"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["className", "color", "breed"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Dog(Animal): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py index 6891dd199afa..8046e431efcc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/dummy_model.py @@ -33,8 +33,8 @@ class DummyModel(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SelfReferenceModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "self_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class DummyModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py index bcdb97590489..9058e733f38d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_arrays.py @@ -35,12 +35,12 @@ class EnumArrays(BaseModel): None, description="just_symbol of the EnumArrays" ) - array_enum: Optional[list[Literal['fish', 'crab']]] = Field( + array_enum: Optional[List[Literal['fish', 'crab']]] = Field( None, description="array_enum of the EnumArrays" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["just_symbol", "array_enum"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["just_symbol", "array_enum"] @field_validator('just_symbol') def just_symbol_validate_enum(cls, value): @@ -71,8 +71,8 @@ def array_enum_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -84,7 +84,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py index cea6ffb4cd0c..3e449adf0e6f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_ref_with_default_value.py @@ -33,8 +33,8 @@ class EnumRefWithDefaultValue(BaseModel): EnumRefWithDefaultValue """ # noqa: E501 report_format: Optional[DataOutputFormat] = DataOutputFormat.JSON - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["report_format"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["report_format"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class EnumRefWithDefaultValue(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py index 08e526ae4573..073dedc9bdc6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py @@ -73,8 +73,8 @@ class EnumTest(BaseModel): outer_enum_integer_default_value: Optional[OuterEnumIntegerDefaultValue] = Field(default=OuterEnumIntegerDefaultValue.NUMBER_0, alias="outerEnumIntegerDefaultValue") enum_number_vendor_ext: Optional[EnumNumberVendorExt] = Field(default=None, alias="enumNumberVendorExt") enum_string_vendor_ext: Optional[EnumStringVendorExt] = Field(default=None, alias="enumStringVendorExt") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enum_string", "enum_string_required", "enum_integer_default", "enum_integer", "enum_number", "enum_string_single_member", "enum_integer_single_member", "outerEnum", "outerEnumInteger", "outerEnumDefaultValue", "outerEnumIntegerDefaultValue", "enumNumberVendorExt", "enumStringVendorExt"] @field_validator('enum_string') def enum_string_validate_enum(cls, value): @@ -151,8 +151,8 @@ def enum_integer_single_member_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -164,7 +164,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py index bb03e56b8ba4..e09011847472 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/feeding.py @@ -42,8 +42,8 @@ class Feeding(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file.py b/samples/openapi3/client/petstore/python/petstore_api/models/file.py index 814fc4ece668..eac2fc3fa75f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file.py @@ -32,8 +32,8 @@ class File(BaseModel): Must be named `File` for test. """ # noqa: E501 source_uri: Optional[StrictStr] = Field(default=None, description="Test capitalization", alias="sourceURI") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["sourceURI"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["sourceURI"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class File(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py index d29a4bc3a0b9..87305783132d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/file_schema_test_class.py @@ -34,8 +34,8 @@ class FileSchemaTestClass(BaseModel): """ # noqa: E501 file: Optional[File] = None files: Optional[List[File]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["file", "files"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["file", "files"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class FileSchemaTestClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py index 432efb9e1d4a..aa09b8fc35d1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/first_ref.py @@ -33,8 +33,8 @@ class FirstRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None self_ref: Optional[SecondRef] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "self_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "self_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FirstRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py index 71e7e5c827f0..54b789dc9898 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo.py @@ -32,8 +32,8 @@ class Foo(BaseModel): Foo """ # noqa: E501 bar: Optional[StrictStr] = 'bar' - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Foo(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py index 3e41f5162438..57b8300cf68a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/foo_get_default_response.py @@ -33,8 +33,8 @@ class FooGetDefaultResponse(BaseModel): FooGetDefaultResponse """ # noqa: E501 string: Optional[Foo] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["string"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["string"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class FooGetDefaultResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py index a209834dc04f..0a0d3f749467 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/format_test.py @@ -52,8 +52,8 @@ class FormatTest(BaseModel): password: Annotated[str, Field(min_length=10, strict=True, max_length=64)] pattern_with_digits: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string that is a 10 digit number. Can have leading zeros.") pattern_with_digits_and_delimiter: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["integer", "int32", "int64", "number", "float", "double", "decimal", "string", "string_with_double_quote_pattern", "byte", "binary", "date", "dateTime", "uuid", "password", "pattern_with_digits", "pattern_with_digits_and_delimiter"] @field_validator('string') def string_validate_regular_expression(cls, value): @@ -103,8 +103,8 @@ def pattern_with_digits_and_delimiter_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -116,7 +116,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py index 2d16e060d401..c257362d962c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/has_only_read_only.py @@ -33,8 +33,8 @@ class HasOnlyReadOnly(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None foo: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar", "foo"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar", "foo"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class HasOnlyReadOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py index 79e5d7aa611e..ee3556ed4bd9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/health_check_result.py @@ -32,8 +32,8 @@ class HealthCheckResult(BaseModel): Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model. """ # noqa: E501 nullable_message: Optional[StrictStr] = Field(default=None, alias="NullableMessage") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["NullableMessage"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["NullableMessage"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class HealthCheckResult(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py index 797da2507599..ed6f42ca5e72 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/hunting_dog.py @@ -34,8 +34,8 @@ class HuntingDog(Creature): HuntingDog """ # noqa: E501 is_trained: Optional[StrictBool] = Field(default=None, alias="isTrained") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["info", "type", "isTrained"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["info", "type", "isTrained"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class HuntingDog(Creature): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/info.py b/samples/openapi3/client/petstore/python/petstore_api/models/info.py index 528ceadccfae..eb39bdbbf9b3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/info.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/info.py @@ -33,8 +33,8 @@ class Info(BaseDiscriminator): Info """ # noqa: E501 val: Optional[BaseDiscriminator] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName", "val"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName", "val"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Info(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py index bd03cd124b6c..8f9dccae1049 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/inner_dict_with_property.py @@ -32,8 +32,8 @@ class InnerDictWithProperty(BaseModel): InnerDictWithProperty """ # noqa: E501 a_property: Optional[Dict[str, Any]] = Field(default=None, alias="aProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["aProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["aProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class InnerDictWithProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py index 99d18a83c69f..6efebc64bb8e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/input_all_of.py @@ -33,8 +33,8 @@ class InputAllOf(BaseModel): InputAllOf """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["some_data"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class InputAllOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py index 041480fc4454..56f950d30c70 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/int_or_string.py @@ -15,7 +15,7 @@ from __future__ import annotations import pprint from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -50,8 +50,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py index 4d6440538fbe..dbb29d6bb664 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/list_class.py @@ -32,8 +32,8 @@ class ListClass(BaseModel): ListClass """ # noqa: E501 var_123_list: Optional[StrictStr] = Field(default=None, alias="123-list") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["123-list"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["123-list"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ListClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py index 56f7376400ed..a126c9d91a52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_of_array_of_model.py @@ -33,8 +33,8 @@ class MapOfArrayOfModel(BaseModel): MapOfArrayOfModel """ # noqa: E501 shop_id_to_org_online_lip_map: Optional[Dict[str, List[Tag]]] = Field(default=None, alias="shopIdToOrgOnlineLipMap") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["shopIdToOrgOnlineLipMap"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["shopIdToOrgOnlineLipMap"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class MapOfArrayOfModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py index 882dc263e8b9..46761c0c152c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/map_test.py @@ -38,8 +38,8 @@ class MapTest(BaseModel): ) direct_map: Optional[Dict[str, StrictBool]] = None indirect_map: Optional[Dict[str, StrictBool]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map"] @field_validator('map_of_enum_string') def map_of_enum_string_validate_enum(cls, value): @@ -60,8 +60,8 @@ def map_of_enum_string_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -73,7 +73,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py index ec2c0ee5f776..f48e64f4d4e1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/mixed_properties_and_additional_properties_class.py @@ -37,8 +37,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): uuid: Optional[UUID] = None date_time: Optional[datetime] = Field(default=None, alias="dateTime") map: Optional[Dict[str, Animal]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["uuid", "dateTime", "map"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uuid", "dateTime", "map"] model_config = ConfigDict( populate_by_name=True, @@ -48,8 +48,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -61,7 +61,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py index 67d1e0f19e33..0c8d37878e27 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model200_response.py @@ -33,8 +33,8 @@ class Model200Response(BaseModel): """ # noqa: E501 name: Optional[StrictInt] = None var_class: Optional[StrictStr] = Field(default=None, alias="class") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name", "class"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "class"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Model200Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py index 059861c9a1c6..7f8083a2c723 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_api_response.py @@ -34,8 +34,8 @@ class ModelApiResponse(BaseModel): code: Optional[StrictInt] = None type: Optional[StrictStr] = None message: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["code", "type", "message"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["code", "type", "message"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class ModelApiResponse(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py index 9bc84204184d..ade9abbc7c5a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_field.py @@ -32,8 +32,8 @@ class ModelField(BaseModel): ModelField """ # noqa: E501 var_field: Optional[StrictStr] = Field(default=None, alias="field") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["field"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["field"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelField(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py index 10ff4bc5fffc..dd0b7c0543db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/model_return.py @@ -32,8 +32,8 @@ class ModelReturn(BaseModel): Model for testing reserved words """ # noqa: E501 var_return: Optional[StrictInt] = Field(default=None, alias="return") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["return"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["return"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ModelReturn(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py index 681da26a2146..f6a8d5f85471 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/multi_arrays.py @@ -35,8 +35,8 @@ class MultiArrays(BaseModel): """ # noqa: E501 tags: Optional[List[Tag]] = None files: Optional[List[File]] = Field(default=None, description="Another array of objects in addition to tags (mypy check to not to reuse the same iterator)") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["tags", "files"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["tags", "files"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class MultiArrays(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/name.py b/samples/openapi3/client/petstore/python/petstore_api/models/name.py index e80b30d8b057..789ef0f1d4a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/name.py @@ -35,8 +35,8 @@ class Name(BaseModel): snake_case: Optional[StrictInt] = None var_property: Optional[StrictStr] = Field(default=None, alias="property") var_123_number: Optional[StrictInt] = Field(default=None, alias="123Number") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name", "snake_case", "property", "123Number"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name", "snake_case", "property", "123Number"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Name(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py index f4ba14002321..3a45254f66e8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_class.py @@ -45,8 +45,8 @@ class NullableClass(BaseModel): object_nullable_prop: Optional[Dict[str, Dict[str, Any]]] = None object_and_items_nullable_prop: Optional[Dict[str, Optional[Dict[str, Any]]]] = None object_items_nullable: Optional[Dict[str, Optional[Dict[str, Any]]]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["required_integer_prop", "integer_prop", "number_prop", "boolean_prop", "string_prop", "date_prop", "datetime_prop", "array_nullable_prop", "array_and_items_nullable_prop", "array_items_nullable", "object_nullable_prop", "object_and_items_nullable_prop", "object_items_nullable"] model_config = ConfigDict( populate_by_name=True, @@ -56,8 +56,8 @@ class NullableClass(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -69,7 +69,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py index c5d4a5b66cdb..02b7aad029f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/nullable_property.py @@ -34,8 +34,8 @@ class NullableProperty(BaseModel): """ # noqa: E501 id: StrictInt name: Optional[Annotated[str, Field(strict=True)]] - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -55,8 +55,8 @@ def name_validate_regular_expression(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -68,7 +68,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py index d2dd89400fa8..212c773d7c2c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/number_only.py @@ -32,8 +32,8 @@ class NumberOnly(BaseModel): NumberOnly """ # noqa: E501 just_number: Optional[StrictFloat] = Field(default=None, alias="JustNumber") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["JustNumber"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["JustNumber"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class NumberOnly(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py index 4bd8e91e5a18..b7f82ceecb7f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_to_test_additional_properties.py @@ -32,8 +32,8 @@ class ObjectToTestAdditionalProperties(BaseModel): Minimal object """ # noqa: E501 var_property: Optional[StrictBool] = Field(default=False, description="Property", alias="property") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["property"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["property"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class ObjectToTestAdditionalProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py index 062ce86cf36c..58177ea3b446 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/object_with_deprecated_fields.py @@ -36,8 +36,8 @@ class ObjectWithDeprecatedFields(BaseModel): id: Optional[StrictFloat] = None deprecated_ref: Optional[DeprecatedObject] = Field(default=None, alias="deprecatedRef") bars: Optional[List[StrictStr]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["uuid", "id", "deprecatedRef", "bars"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["uuid", "id", "deprecatedRef", "bars"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class ObjectWithDeprecatedFields(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py index 258c71f1a1fe..14c2747d90f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/one_of_enum_string.py @@ -17,7 +17,7 @@ from petstore_api.models.enum_string1 import EnumString1 from petstore_api.models.enum_string2 import EnumString2 from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/order.py b/samples/openapi3/client/petstore/python/petstore_api/models/order.py index 699ec96ce34a..f041cc53d7ee 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/order.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/order.py @@ -41,8 +41,8 @@ class Order(BaseModel): description="Order Status" ) complete: Optional[StrictBool] = False - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "petId", "quantity", "shipDate", "status", "complete"] @field_validator('status') def status_validate_enum(cls, value): @@ -62,8 +62,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py index c4251f7e2e00..3e3f8b2c937a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_composite.py @@ -34,8 +34,8 @@ class OuterComposite(BaseModel): my_number: Optional[StrictFloat] = None my_string: Optional[StrictStr] = None my_boolean: Optional[StrictBool] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["my_number", "my_string", "my_boolean"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["my_number", "my_string", "my_boolean"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class OuterComposite(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py index 59fa5e9e8d68..e57f5bced289 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_object_with_enum_property.py @@ -35,8 +35,8 @@ class OuterObjectWithEnumProperty(BaseModel): """ # noqa: E501 str_value: Optional[OuterEnum] = None value: OuterEnumInteger - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["str_value", "value"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["str_value", "value"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class OuterObjectWithEnumProperty(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py index 64082097b8e8..ad733ac8da5d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent.py @@ -33,8 +33,8 @@ class Parent(BaseModel): Parent """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["optionalDict"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Parent(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py index 102548dfd483..4478538d6f3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/parent_with_optional_dict.py @@ -33,8 +33,8 @@ class ParentWithOptionalDict(BaseModel): ParentWithOptionalDict """ # noqa: E501 optional_dict: Optional[Dict[str, InnerDictWithProperty]] = Field(default=None, alias="optionalDict") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["optionalDict"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["optionalDict"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ParentWithOptionalDict(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py index b0735f8ebc7f..c3a7db673d05 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py @@ -43,8 +43,8 @@ class Pet(BaseModel): None, description="pet status in the store" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "category", "name", "photoUrls", "tags", "status"] @field_validator('status') def status_validate_enum(cls, value): @@ -64,8 +64,8 @@ def status_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -77,7 +77,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py index adb1d8c256da..36715ff48b88 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pig.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pig.py @@ -17,7 +17,7 @@ from petstore_api.models.basque_pig import BasquePig from petstore_api.models.danish_pig import DanishPig from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -52,8 +52,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -65,7 +65,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py index f6374a7a04d0..dd567f0fe33a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pony_sizes.py @@ -33,8 +33,8 @@ class PonySizes(BaseModel): PonySizes """ # noqa: E501 type: Optional[Type] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["type"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PonySizes(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py index b2902161a1fd..66989c9df600 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/poop_cleaning.py @@ -42,8 +42,8 @@ class PoopCleaning(BaseModel): alias="function_name" ) content: StrictStr - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["task_name", "function_name", "content"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["task_name", "function_name", "content"] @field_validator('task_name') def task_name_validate_enum(cls, value): @@ -67,8 +67,8 @@ def function_name_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -80,7 +80,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py index 7a3aefcac9df..fbea28277e65 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/primitive_string.py @@ -33,8 +33,8 @@ class PrimitiveString(BaseDiscriminator): PrimitiveString """ # noqa: E501 value: Optional[StrictStr] = Field(default=None, alias="_value") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_typeName", "_value"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_typeName", "_value"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PrimitiveString(BaseDiscriminator): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py index 70756483156b..76ea44f26a87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_map.py @@ -33,8 +33,8 @@ class PropertyMap(BaseModel): PropertyMap """ # noqa: E501 some_data: Optional[Dict[str, Tag]] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["some_data"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["some_data"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class PropertyMap(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py index fba0f10540fc..057c7f6c1a4b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/property_name_collision.py @@ -34,8 +34,8 @@ class PropertyNameCollision(BaseModel): underscore_type: Optional[StrictStr] = Field(default=None, alias="_type") type: Optional[StrictStr] = None type_with_underscore: Optional[StrictStr] = Field(default=None, alias="type_") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_type", "type", "type_"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_type", "type", "type_"] model_config = ConfigDict( populate_by_name=True, @@ -45,8 +45,8 @@ class PropertyNameCollision(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -58,7 +58,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py index 9ead2b27d8fe..2cf760a02076 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/read_only_first.py @@ -33,8 +33,8 @@ class ReadOnlyFirst(BaseModel): """ # noqa: E501 bar: Optional[StrictStr] = None baz: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["bar", "baz"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["bar", "baz"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class ReadOnlyFirst(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py index a20742ece3fd..be7983dc2f20 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_circular_all_of_ref.py @@ -33,8 +33,8 @@ class SecondCircularAllOfRef(BaseModel): """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, alias="_name") circular_all_of_ref: Optional[List[CircularAllOfRef]] = Field(default=None, alias="circularAllOfRef") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["_name", "circularAllOfRef"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["_name", "circularAllOfRef"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondCircularAllOfRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py index 555705e34ea8..a10a60ccf21f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/second_ref.py @@ -33,8 +33,8 @@ class SecondRef(BaseModel): """ # noqa: E501 category: Optional[StrictStr] = None circular_ref: Optional[CircularReferenceModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["category", "circular_ref"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["category", "circular_ref"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SecondRef(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py index c43282d64850..4343e2220413 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/self_reference_model.py @@ -33,8 +33,8 @@ class SelfReferenceModel(BaseModel): """ # noqa: E501 size: Optional[StrictInt] = None nested: Optional[DummyModel] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class SelfReferenceModel(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py index 63ce4fe1e184..8c015def6b52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_model_name.py @@ -32,8 +32,8 @@ class SpecialModelName(BaseModel): SpecialModelName """ # noqa: E501 special_property_name: Optional[StrictInt] = Field(default=None, alias="$special[property.name]") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["$special[property.name]"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["$special[property.name]"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class SpecialModelName(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py index d094362fe10e..8b975e1994c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/special_name.py @@ -38,8 +38,8 @@ class SpecialName(BaseModel): None, description="pet status in the store" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["property", "async", "schema"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["property", "async", "schema"] @field_validator('var_schema') def var_schema_validate_enum(cls, value): @@ -59,8 +59,8 @@ def var_schema_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -72,7 +72,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py index a3431a14e3dd..2ef47be87be6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tag.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tag.py @@ -33,8 +33,8 @@ class Tag(BaseModel): """ # noqa: E501 id: Optional[StrictInt] = None name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class Tag(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task.py b/samples/openapi3/client/petstore/python/petstore_api/models/task.py index d227d8a38452..663316edfa32 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task.py @@ -35,8 +35,8 @@ class Task(BaseModel): """ # noqa: E501 id: UUID activity: TaskActivity - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "activity"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "activity"] model_config = ConfigDict( populate_by_name=True, @@ -46,8 +46,8 @@ class Task(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -59,7 +59,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py index f92328a9751d..c60e9f7c3576 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/task_activity.py @@ -18,7 +18,7 @@ from petstore_api.models.feeding import Feeding from petstore_api.models.poop_cleaning import PoopCleaning from pydantic import Field, RootModel -from typing import Any, Union +from typing import Any, Dict, List, Union # TODO: When dropping Python 3.10 support, remove fallback try: from typing import Self @@ -53,8 +53,8 @@ def __getattr__(self, name): raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the python dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the python Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -66,7 +66,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return self.model_dump_json(by_alias=True) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py index 705e62291011..5fee02f6f074 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model400_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): TestErrorResponsesWithModel400Response """ # noqa: E501 reason400: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["reason400"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["reason400"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel400Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py index d29ee076dc29..667c21b33ee7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_error_responses_with_model404_response.py @@ -32,8 +32,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): TestErrorResponsesWithModel404Response """ # noqa: E501 reason404: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["reason404"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["reason404"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestErrorResponsesWithModel404Response(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py index c708ef356815..c84888abb135 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_inline_freeform_additional_properties_request.py @@ -32,8 +32,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): TestInlineFreeformAdditionalPropertiesRequest """ # noqa: E501 some_property: Optional[StrictStr] = Field(default=None, alias="someProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["someProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["someProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestInlineFreeformAdditionalPropertiesRequest(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py index eb1d3f814063..11a7f8d8be53 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_model_with_enum_default.py @@ -41,8 +41,8 @@ class TestModelWithEnumDefault(BaseModel): None, description="test_inline_defined_enum_with_default of the TestModelWithEnumDefault" ) - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["test_enum", "test_string", "test_enum_with_default", "test_string_with_default", "test_inline_defined_enum_with_default"] @field_validator('test_inline_defined_enum_with_default') def test_inline_defined_enum_with_default_validate_enum(cls, value): @@ -62,8 +62,8 @@ def test_inline_defined_enum_with_default_validate_enum(cls, value): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -75,7 +75,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py index 49114938ade7..b1903937130e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/test_object_for_multipart_requests_request_marker.py @@ -32,8 +32,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): TestObjectForMultipartRequestsRequestMarker """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class TestObjectForMultipartRequestsRequestMarker(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py index 83e8d0251bc3..2fa9f7b85517 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/tiger.py @@ -32,8 +32,8 @@ class Tiger(BaseModel): Tiger """ # noqa: E501 skill: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["skill"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["skill"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class Tiger(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py index ab0656bb6e30..025fbcecb0a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_model_list_properties.py @@ -33,8 +33,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): UnnamedDictWithAdditionalModelListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[CreatureInfo]]] = Field(default=None, alias="dictProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["dictProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -44,8 +44,8 @@ class UnnamedDictWithAdditionalModelListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -57,7 +57,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py index 193ad8f9ef73..c8aa25e7e51f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/unnamed_dict_with_additional_string_list_properties.py @@ -32,8 +32,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): UnnamedDictWithAdditionalStringListProperties """ # noqa: E501 dict_property: Optional[Dict[str, List[StrictStr]]] = Field(default=None, alias="dictProperty") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["dictProperty"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["dictProperty"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UnnamedDictWithAdditionalStringListProperties(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py index e1f9c7966ff8..9c861c822ea2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/upload_file_with_additional_properties_request_object.py @@ -32,8 +32,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): Additional object """ # noqa: E501 name: Optional[StrictStr] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["name"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -43,8 +43,8 @@ class UploadFileWithAdditionalPropertiesRequestObject(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -56,7 +56,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/user.py b/samples/openapi3/client/petstore/python/petstore_api/models/user.py index 1fbbdbac65af..3c1d1f299a0c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/user.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/user.py @@ -39,8 +39,8 @@ class User(BaseModel): password: Optional[StrictStr] = None phone: Optional[StrictStr] = None user_status: Optional[StrictInt] = Field(default=None, description="User Status", alias="userStatus") - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus"] model_config = ConfigDict( populate_by_name=True, @@ -50,8 +50,8 @@ class User(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -63,7 +63,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py index 12547cf536c3..732dcf720ecc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/with_nested_one_of.py @@ -36,8 +36,8 @@ class WithNestedOneOf(BaseModel): size: Optional[StrictInt] = None nested_pig: Optional[Pig] = None nested_oneof_enum_string: Optional[OneOfEnumString] = None - additional_properties: dict[str, Any] = {} - __properties: ClassVar[list[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["size", "nested_pig", "nested_oneof_enum_string"] model_config = ConfigDict( populate_by_name=True, @@ -47,8 +47,8 @@ class WithNestedOneOf(BaseModel): @classmethod - def from_dict(cls, obj: dict[str, Any]) -> Self: - """Returns the object represented by the dict""" + def from_dict(cls, obj: Dict[str, Any]) -> Self: + """Returns the object represented by the Dict""" return cls.model_validate(obj, strict=True) @classmethod @@ -60,7 +60,7 @@ def to_json(self) -> str: """Returns the JSON representation of the actual instance""" return json.dumps(self.model_dump(by_alias=True)) - def to_dict(self) -> dict[str, Any]: + def to_dict(self) -> Dict[str, Any]: """Returns the dict representation of the actual instance""" return self.model_dump(by_alias=True) diff --git a/samples/openapi3/client/petstore/python/petstore_api/signing.py b/samples/openapi3/client/petstore/python/petstore_api/signing.py index c52fe689fc96..e0ef058f4677 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/signing.py +++ b/samples/openapi3/client/petstore/python/petstore_api/signing.py @@ -22,7 +22,7 @@ import os import re from time import time -from typing import Optional, Union +from typing import List, Optional, Union from urllib.parse import urlencode, urlparse # The constants below define a subset of HTTP headers that can be included in the @@ -128,7 +128,7 @@ def __init__(self, signing_scheme: str, private_key_path: str, private_key_passphrase: Union[None, str]=None, - signed_headers: Optional[list[str]]=None, + signed_headers: Optional[List[str]]=None, signing_algorithm: Optional[str]=None, hash_algorithm: Optional[str]=None, signature_max_validity: Optional[timedelta]=None, From 32dd292d901cfd7c561476b78b302b996318e2ef Mon Sep 17 00:00:00 2001 From: timonrieger Date: Mon, 9 Feb 2026 15:32:22 +0100 Subject: [PATCH 8/8] complete --- .../org/openapitools/codegen/languages/PythonClientCodegen.java | 2 +- .../python-disallowAdditionalPropertiesIfNotPresent/README.md | 2 +- samples/client/echo_api/python/README.md | 2 +- samples/openapi3/client/petstore/python-aiohttp/README.md | 2 +- samples/openapi3/client/petstore/python-httpx/README.md | 2 +- samples/openapi3/client/petstore/python-lazyImports/README.md | 2 +- samples/openapi3/client/petstore/python/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index affc72120c67..a1caa703f4d2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -442,7 +442,7 @@ public String generatePackageName(String packageName) { @Override public String generatorLanguageVersion() { - return "3.11+"; + return "3.9+"; } @Override diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md index cc6f86c14509..f60e13fd5284 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/samples/client/echo_api/python/README.md b/samples/client/echo_api/python/README.md index cc6f86c14509..f60e13fd5284 100644 --- a/samples/client/echo_api/python/README.md +++ b/samples/client/echo_api/python/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-aiohttp/README.md b/samples/openapi3/client/petstore/python-aiohttp/README.md index 2b441a18e530..2d639677cfe5 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/README.md +++ b/samples/openapi3/client/petstore/python-aiohttp/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-httpx/README.md b/samples/openapi3/client/petstore/python-httpx/README.md index 2b441a18e530..2d639677cfe5 100644 --- a/samples/openapi3/client/petstore/python-httpx/README.md +++ b/samples/openapi3/client/petstore/python-httpx/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-lazyImports/README.md b/samples/openapi3/client/petstore/python-lazyImports/README.md index a60c05ad93ef..1878ef1cf9e6 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/README.md +++ b/samples/openapi3/client/petstore/python-lazyImports/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python/README.md b/samples/openapi3/client/petstore/python/README.md index a60c05ad93ef..1878ef1cf9e6 100755 --- a/samples/openapi3/client/petstore/python/README.md +++ b/samples/openapi3/client/petstore/python/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.11+ +Python 3.9+ ## Installation & Usage ### pip install